<?php /* Smarty version Smarty-3.1.19, created on 2018-10-13 14:38:56
         compiled from "/home/tnsmborg/public_html/admin/templates/default/currencies.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10789270835bc23bc047c597-43880425%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '42e5abff6794b8b21d1dd669090366317abe66a1' => 
    array (
      0 => '/home/tnsmborg/public_html/admin/templates/default/currencies.tpl',
      1 => 1528949094,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10789270835bc23bc047c597-43880425',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'core' => 0,
    'currencies' => 0,
    'entry' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5bc23bc04cbd28_23690049',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5bc23bc04cbd28_23690049')) {function content_5bc23bc04cbd28_23690049($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_radio_switcher')) include '/home/tnsmborg/public_html/includes/smarty/intelli_plugins/function.html_radio_switcher.php';
?><?php if (iaCore::ACTION_READ==$_smarty_tpl->tpl_vars['core']->value['page']['info']['action']) {?>
    <div class="widget widget-default">
        <div class="widget-content">
            <table cellspacing="0" cellpadding="0" class="table table-light">
                <thead>
                <tr>
                    <th width="30"></th>
                    <th><?php echo iaSmarty::lang(array('key'=>'currency'),$_smarty_tpl);?>
</th>
                    <th><?php echo iaSmarty::lang(array('key'=>'format_example'),$_smarty_tpl);?>
</th>
                    <th width="80"><?php echo iaSmarty::lang(array('key'=>'default'),$_smarty_tpl);?>
</th>
                    <th width="120"><?php echo iaSmarty::lang(array('key'=>'status'),$_smarty_tpl);?>
</th>
                    <th width="160"></th>
                </tr>
                </thead>
                <tbody id="js-currencies-list">
                <?php  $_smarty_tpl->tpl_vars['entry'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['entry']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['entry']->key => $_smarty_tpl->tpl_vars['entry']->value) {
$_smarty_tpl->tpl_vars['entry']->_loop = true;
?>
                    <tr>
                        <td>
                            <span class="btn btn-default uploads-list-item__drag-handle"><i class="i-list-2"></i></span>
                        </td>
                        <td>
                            <strong class="js-currency-code"><?php echo $_smarty_tpl->tpl_vars['entry']->value['code'];?>
</strong> - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['entry']->value['title'], ENT_QUOTES, 'UTF-8', true);?>

                        </td>
                        <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['entry']->value['format'], ENT_QUOTES, 'UTF-8', true);?>
</td>
                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['entry']->value['default']) {?>
                                <span class="btn btn-xs disabled"><i class="i-checkmark"></i></span>
                            <?php } elseif (iaCore::STATUS_ACTIVE==$_smarty_tpl->tpl_vars['entry']->value['status']) {?>
                                <a class="btn btn-success btn-xs" href="<?php echo @constant('IA_ADMIN_URL');?>
currencies/default/<?php echo $_smarty_tpl->tpl_vars['entry']->value['code'];?>
/"><i class="i-checkmark"></i></a>
                            <?php }?>
                        </td>
                        <td><?php echo iaSmarty::lang(array('key'=>$_smarty_tpl->tpl_vars['entry']->value['status']),$_smarty_tpl);?>
</td>
                        <td>
                            <a class="btn btn-default btn-xs" href="<?php echo @constant('IA_ADMIN_URL');?>
currencies/edit/<?php echo $_smarty_tpl->tpl_vars['entry']->value['code'];?>
/"><i class="i-cog"></i> <?php echo iaSmarty::lang(array('key'=>'settings'),$_smarty_tpl);?>
</a>

                            <?php if (count($_smarty_tpl->tpl_vars['currencies']->value)>1&&!$_smarty_tpl->tpl_vars['entry']->value['default']) {?>
                                <button type="button" class="btn btn-danger btn-xs js-cmd-delete" data-href="<?php echo @constant('IA_ADMIN_URL');?>
currencies/delete/<?php echo $_smarty_tpl->tpl_vars['entry']->value['code'];?>
/"><i class="i-close"></i> <?php echo iaSmarty::lang(array('key'=>'delete'),$_smarty_tpl);?>
</button>
                            <?php }?>
                        </td>
                    </tr>
                <?php } ?>
                </tbody>
            </table>
        </div>
    </div>
    <?php echo iaSmarty::ia_print_js(array('files'=>'admin/currencies'),$_smarty_tpl);?>

<?php } else { ?>
    <form method="post" enctype="multipart/form-data" class="sap-form form-horizontal">
        <?php echo iaSmarty::preventCsrf(array(),$_smarty_tpl);?>


        <div class="wrap-list">
            <div class="wrap-group">
                <div class="wrap-group-heading"><?php echo iaSmarty::lang(array('key'=>'general'),$_smarty_tpl);?>
</div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-code"><?php echo iaSmarty::lang(array('key'=>'code'),$_smarty_tpl);?>
 <?php echo iaSmarty::lang(array('key'=>'field_required'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-2">
                        <input type="text" name="code" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['code'], ENT_QUOTES, 'UTF-8', true);?>
" id="input-code" maxlength="3">
                    </div>
                </div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-title"><?php echo iaSmarty::lang(array('key'=>'title'),$_smarty_tpl);?>
 <?php echo iaSmarty::lang(array('key'=>'field_required'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-4">
                        <input type="text" name="title" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
" id="input-title" maxlength="30">
                    </div>
                </div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-sym"><?php echo iaSmarty::lang(array('key'=>'currency_symbol'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-2">
                        <input type="text" name="symbol" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['symbol'], ENT_QUOTES, 'UTF-8', true);?>
" id="input-sym" maxlength="5">
                    </div>
                    <div class="col col-lg-2">
                        <select name="sym_pos">
                            <option value="pre"<?php if ('pre'==$_smarty_tpl->tpl_vars['item']->value['sym_pos']) {?> selected<?php }?>><?php echo iaSmarty::lang(array('key'=>'currency_symbol_position_before'),$_smarty_tpl);?>
</option>
                            <option value="post"<?php if ('post'==$_smarty_tpl->tpl_vars['item']->value['sym_pos']) {?> selected<?php }?>><?php echo iaSmarty::lang(array('key'=>'currency_symbol_position_after'),$_smarty_tpl);?>
</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="wrap-group">
                <div class="wrap-group-heading"><?php echo iaSmarty::lang(array('key'=>'rate'),$_smarty_tpl);?>
</div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-rate"><?php echo iaSmarty::lang(array('key'=>'exchange_rate'),$_smarty_tpl);?>
 <?php echo iaSmarty::lang(array('key'=>'field_required'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-4">
                        <input type="text" name="rate" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['rate'];?>
" id="input-rate" maxlength="8">
                    </div>
                </div>
            </div>

            <div class="wrap-group">
                <div class="wrap-group-heading"><?php echo iaSmarty::lang(array('key'=>'format'),$_smarty_tpl);?>
</div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-num-decimals"><?php echo iaSmarty::lang(array('key'=>'number_of_decimal_places'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-1">
                        <input type="text" name="fmt_num_decimals" value="<?php echo intval($_smarty_tpl->tpl_vars['item']->value['fmt_num_decimals']);?>
" id="input-num-decimals" maxlength="2">
                    </div>
                </div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-dec-point"><?php echo iaSmarty::lang(array('key'=>'decimal_point'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-1">
                        <input type="text" name="fmt_dec_point" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['fmt_dec_point'], ENT_QUOTES, 'UTF-8', true);?>
" id="input-dec-point" maxlength="1">
                    </div>
                </div>

                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-thousand-sep"><?php echo iaSmarty::lang(array('key'=>'thousand_separator'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-1">
                        <input type="text" name="fmt_thousand_sep" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['fmt_thousand_sep'], ENT_QUOTES, 'UTF-8', true);?>
" id="input-thousand-sep" maxlength="1">
                    </div>
                </div>
            </div>

            <?php $_smarty_tpl->_capture_stack[0][] = array('systems', null, 'fieldset_before'); ob_start(); ?>
                <div class="row">
                    <div class="col col-lg-2">
                        <label class="control-label" for="input-default"><?php echo iaSmarty::lang(array('key'=>'default'),$_smarty_tpl);?>
</label>
                    </div>
                    <div class="col col-lg-4">
                        <?php echo smarty_function_html_radio_switcher(array('value'=>$_smarty_tpl->tpl_vars['item']->value['default'],'name'=>'default'),$_smarty_tpl);?>

                    </div>
                </div>
            <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, array("$_capture_buffer" => ob_get_contents()), true);
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>

            <?php echo $_smarty_tpl->getSubTemplate ('fields-system.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

        </div>
    </form>
<?php }?><?php }} ?>
