<?php
/* Smarty version 3.1.29, created on 2017-06-21 15:03:06
  from "/var/www/h3ysh156/data/www/freyamu.ru/views/templates/default/admin/modules/charmarket.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_594a7c9ab6a4c9_93659187',
  'file_dependency' => 
  array (
    'cd2896574245d1a352a86b2a28c4011640f34c53' => 
    array (
      0 => '/var/www/h3ysh156/data/www/freyamu.ru/views/templates/default/admin/modules/charmarket.tpl',
      1 => 1479256536,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_594a7c9ab6a4c9_93659187 ($_smarty_tpl) {
?>
<h1>Character Market</h1>
<form action="/admin/modules/charmarket" method="post">
    <table>
        <tr>
            <td>Enable</td>
            <td>
                <?php if ($_smarty_tpl->tpl_vars['Config']->value['Enable']) {?>
                    <input name="Enable" id="Enable" type="checkbox" checked/>
                <?php } else { ?>
                    <input name="Enable" id="Enable" type="checkbox"/>
                <?php }?>
            </td>
        </tr>
        <tr>
            <td>Check Email(to sell)</td>
            <td>
                <?php if ($_smarty_tpl->tpl_vars['Config']->value['CheckEmail']) {?>
                    <input name="CheckEmail" id="CheckEmail" type="checkbox" checked/>
                <?php } else { ?>
                    <input name="CheckEmail" id="CheckEmail" type="checkbox"/>
                <?php }?>
            </td>
        </tr>
        <tr>
            <td>Valute (Default: <?php echo $_smarty_tpl->tpl_vars['Valutes']->value[0]['Name'];?>
) Need only account valutes</td>
            <td>
                <select name="main_valute" id="main_valute">
                    <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_val_0_saved_item = isset($_smarty_tpl->tpl_vars['val']) ? $_smarty_tpl->tpl_vars['val'] : false;
$__foreach_val_0_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['val'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['val']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
$__foreach_val_0_saved_local_item = $_smarty_tpl->tpl_vars['val'];
?>
                        <?php if ($_smarty_tpl->tpl_vars['val']->value['Name'] != '' && $_smarty_tpl->tpl_vars['val']->value['AccountNameColumn'] != '') {?>
                            <?php if ($_smarty_tpl->tpl_vars['Config']->value['Valute'] == $_smarty_tpl->tpl_vars['i']->value) {?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" selected><?php echo $_smarty_tpl->tpl_vars['val']->value['Name'];?>
</option>
                            <?php } else { ?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value['Name'];?>
</option>
                            <?php }?>
                        <?php }?>
                    <?php
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_0_saved_local_item;
}
if ($__foreach_val_0_saved_item) {
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_0_saved_item;
}
if ($__foreach_val_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_val_0_saved_key;
}
?>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <button class="def_adm_btn" name="charmarket_btn">Save</button>
            </td>
        </tr>
    </table>
</form><?php }
}
