<?php
/* Smarty version 3.1.29, created on 2016-11-16 02:17:01
  from "/var/www/plfesycd/data/www/freyamu.ru/views/templates/default/admin/modules/vote.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_582bb38d99b077_65471622',
  'file_dependency' => 
  array (
    '054442649bbb0c7651eb7a3db48ebb49fdc062b5' => 
    array (
      0 => '/var/www/plfesycd/data/www/freyamu.ru/views/templates/default/admin/modules/vote.tpl',
      1 => 1479256536,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_582bb38d99b077_65471622 ($_smarty_tpl) {
?>
<h1>Vote</h1>

    <table width="70%">
        <td width="50%">
            <form action="/admin/modules/vote" method="post">
            <table>
                <tr><th colspan="2">MMOTop</th></tr>
                <tr>
                    <td>Enable</td>
                    <td>
                        <?php if ($_smarty_tpl->tpl_vars['Config']->value['MMOTop']['Enable']) {?>
                            <input name="MMOTopEnable" id="MMOTopEnable" type="checkbox" checked/>
                        <?php } else { ?>
                            <input name="MMOTopEnable" id="MMOTopEnable" type="checkbox"/>
                        <?php }?>
                    </td>

                </tr>
                <tr>
                    <td>Link</td>
                    <td><input name="Link" id="Link" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['MMOTop']['Link'];?>
" type="url"/></td>
                </tr>
                <tr><td colspan="2">Reward to Reset(Normal Type)</td></tr>
                <?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'] != '') {?>
                        <tr>
                            <td>
                                Valute <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
(<?php echo $_smarty_tpl->tpl_vars['val']->value['Name'];?>
)
                            </td>
                            <td>
                                <input name="val_mmotop_normal_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['MMOTop']['Reward']['Normal']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
" type="text">
                            </td>
                        </tr>
                    <?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;
}
?>

                <tr>
                <tr><td colspan="2">Reward to Reset(SMS Type)</td></tr>
                <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_val_1_saved_item = isset($_smarty_tpl->tpl_vars['val']) ? $_smarty_tpl->tpl_vars['val'] : false;
$__foreach_val_1_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_1_saved_local_item = $_smarty_tpl->tpl_vars['val'];
?>
                    <?php if ($_smarty_tpl->tpl_vars['val']->value['Name'] != '') {?>
                        <tr>
                            <td>
                                Valute <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
(<?php echo $_smarty_tpl->tpl_vars['val']->value['Name'];?>
)
                            </td>
                            <td>
                                <input name="val_mmotop_sms_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['MMOTop']['Reward']['SMS']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
" type="text">
                            </td>
                        </tr>
                    <?php }?>
                <?php
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_1_saved_local_item;
}
if ($__foreach_val_1_saved_item) {
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_1_saved_item;
}
if ($__foreach_val_1_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_val_1_saved_key;
}
?>

                <tr>
                <tr>
                    <td colspan="2"><button class="def_adm_btn" name="mmotop_vote_btn">Save</button></td>
                </tr>
            </table>
            </form>
        </td>
        <td width="50%">
            <form action="/admin/modules/vote" method="post">
                <table>
                    <tr><th colspan="2">QTop</th></tr>
                    <tr>
                        <td>Enable</td>
                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['Config']->value['QTop']['Enable']) {?>
                                <input name="QTopEnable" id="QTopEnable" type="checkbox" checked/>
                            <?php } else { ?>
                                <input name="QTopEnable" id="QTopEnable" type="checkbox"/>
                            <?php }?>
                        </td>

                    </tr>
                    <tr>
                        <td>Link</td>
                        <td><input name="Link" id="Link" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['QTop']['Link'];?>
" type="url"/></td>
                    </tr>
                    <tr><td colspan="2">Reward to Reset(Normal Type)</td></tr>
                    <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_val_2_saved_item = isset($_smarty_tpl->tpl_vars['val']) ? $_smarty_tpl->tpl_vars['val'] : false;
$__foreach_val_2_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_2_saved_local_item = $_smarty_tpl->tpl_vars['val'];
?>
                        <?php if ($_smarty_tpl->tpl_vars['val']->value['Name'] != '') {?>
                            <tr>
                                <td>
                                    Valute <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
(<?php echo $_smarty_tpl->tpl_vars['val']->value['Name'];?>
)
                                </td>
                                <td>
                                    <input name="val_qtop_normal_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['QTop']['Reward']['Normal']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
" type="text">
                                </td>
                            </tr>
                        <?php }?>
                    <?php
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_2_saved_local_item;
}
if ($__foreach_val_2_saved_item) {
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_2_saved_item;
}
if ($__foreach_val_2_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_val_2_saved_key;
}
?>

                    <tr>
                    <tr><td colspan="2">Reward to Reset(SMS Type)</td></tr>
                    <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_val_3_saved_item = isset($_smarty_tpl->tpl_vars['val']) ? $_smarty_tpl->tpl_vars['val'] : false;
$__foreach_val_3_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_3_saved_local_item = $_smarty_tpl->tpl_vars['val'];
?>
                        <?php if ($_smarty_tpl->tpl_vars['val']->value['Name'] != '') {?>
                            <tr>
                                <td>
                                    Valute <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
(<?php echo $_smarty_tpl->tpl_vars['val']->value['Name'];?>
)
                                </td>
                                <td>
                                    <input name="val_qtop_sms_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['QTop']['Reward']['Normal']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
" type="text">
                                </td>
                            </tr>
                        <?php }?>
                    <?php
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_3_saved_local_item;
}
if ($__foreach_val_3_saved_item) {
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_3_saved_item;
}
if ($__foreach_val_3_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_val_3_saved_key;
}
?>

                    <tr>
                    <tr>
                        <td colspan="2"><button class="def_adm_btn" name="qtop_vote_btn">Save</button></td>
                    </tr>
                </table>
            </form>
        </td>
    </table><?php }
}
