<?php
/* Smarty version 3.1.29, created on 2016-07-21 22:04:22
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/default/admin/modules/referralsystem.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_579138d6195ec6_63328467',
  'file_dependency' => 
  array (
    '6f8b1a80c1f56bef82aa521274bea64e235b5a8f' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/default/admin/modules/referralsystem.tpl',
      1 => 1468447072,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_579138d6195ec6_63328467 ($_smarty_tpl) {
?>
<h1>Referral System</h1>
<form action="/admin/modules/referral" 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>Count Step(Max:5)</td>
            <td><input name="CountStep" id="CountStep" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['CountStep'];?>
" type="text"/></td>
        </tr>
        <tr><td colspan="2">Step 1</td></tr>
        <tr>
            <td>Need Reset</td>
            <td><input type="text" name="NeedReset_1" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][1]['NeedReset'];?>
"></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="step_1_val_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][1]['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><td colspan="2">Step 2</td></tr>
        <tr>
            <td>Need Reset</td>
            <td><input type="text" name="NeedReset_2" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][2]['NeedReset'];?>
"></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="step_2_val_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][2]['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><td colspan="2">Step 3</td></tr>
        <tr>
            <td>Need Reset</td>
            <td><input type="text" name="NeedReset_3" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][3]['NeedReset'];?>
"></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="step_3_val_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][3]['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><td colspan="2">Step 4</td></tr>
        <tr>
            <td>Need Reset</td>
            <td><input type="text" name="NeedReset_4" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][4]['NeedReset'];?>
"></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="step_4_val_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][4]['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><td colspan="2">Step 5</td></tr>
        <tr>
            <td>Need Reset</td>
            <td><input type="text" name="NeedReset_5" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][5]['NeedReset'];?>
"></td>
        </tr>
        <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_val_4_saved_item = isset($_smarty_tpl->tpl_vars['val']) ? $_smarty_tpl->tpl_vars['val'] : false;
$__foreach_val_4_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_4_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="step_5_val_reward_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['Config']->value['Steps'][5]['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
" type="text">
                    </td>
                </tr>
            <?php }?>
        <?php
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_4_saved_local_item;
}
if ($__foreach_val_4_saved_item) {
$_smarty_tpl->tpl_vars['val'] = $__foreach_val_4_saved_item;
}
if ($__foreach_val_4_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_val_4_saved_key;
}
?>
        <tr>
            <td colspan="2">
                <button class="def_adm_btn" name="referralsystem_btn">Save</button>
            </td>
        </tr>
    </table>
</form><?php }
}
