<?php
/* Smarty version 3.1.29, created on 2017-08-13 16:54:12
  from "/var/www/isbvqaph/data/www/freyamu.ru/views/templates/Freyamu/cabinet/settings.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_59905a0419f082_29578638',
  'file_dependency' => 
  array (
    'c838000998ce3c813bbf711fb41ac2b322898e8f' => 
    array (
      0 => '/var/www/isbvqaph/data/www/freyamu.ru/views/templates/Freyamu/cabinet/settings.tpl',
      1 => 1502467680,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_59905a0419f082_29578638 ($_smarty_tpl) {
?>
<div class="section_view col-md-8"><section class="widget">
            <header>
                <h4>
                    <i class="fa fa-wrench"></i>
                    Скрытие информации
                </h4>
            </header>
            <div class="body">
            <?php echo '<script'; ?>
 src="/web/templates/default/js/ajax.js"><?php echo '</script'; ?>
>
                <form class="form-horizontal" method="post" action="/cabinet/settings">

                    <fieldset>
                        <legend class="section">Введите количество часов на которое нужно скрыть информацию о вашем персонаже!</legend>
                        <div class="control-group">
                            <label class="control-label" for="hideinfo_selected_char">Выберите персонажа</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                     <select class="form-control" name="selected_char" id="hideinfo_selected_char">
                                        <?php
$_from = $_smarty_tpl->tpl_vars['Chars']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_char_0_saved_item = isset($_smarty_tpl->tpl_vars['char']) ? $_smarty_tpl->tpl_vars['char'] : false;
$_smarty_tpl->tpl_vars['char'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['char']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['char']->value) {
$_smarty_tpl->tpl_vars['char']->_loop = true;
$__foreach_char_0_saved_local_item = $_smarty_tpl->tpl_vars['char'];
?>
                                            <?php if ($_smarty_tpl->tpl_vars['char']->value != '') {?>
                                                <?php if ($_smarty_tpl->tpl_vars['char']->value == $_smarty_tpl->tpl_vars['ActiveChar']->value) {?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
" selected><?php echo $_smarty_tpl->tpl_vars['char']->value;?>
</option>
                                                <?php } else { ?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['char']->value;?>
</option>
                                                <?php }?>
                                            <?php }?>
                                        <?php
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_0_saved_local_item;
}
if ($__foreach_char_0_saved_item) {
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_0_saved_item;
}
?>
                                    </select>
                                </div>
                            </div>
                        </div> <div class="control-group">
                            <label class="control-label" for="count_hour">Введите кол-во часов</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-keyboard-o"></i></span>
                                    <input type="number" value="1" name="count_hour_hideinfo" class="form-control" id="count_hour" placeholder="Hour">
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" style="width: 100%; text-align: center;">
                            Стоимость скрытия информации <br>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(0, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                                    <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_valute_1_saved_item = isset($_smarty_tpl->tpl_vars['valute']) ? $_smarty_tpl->tpl_vars['valute'] : false;
$_smarty_tpl->tpl_vars['valute'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['valute']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['valute']->value) {
$_smarty_tpl->tpl_vars['valute']->_loop = true;
$__foreach_valute_1_saved_local_item = $_smarty_tpl->tpl_vars['valute'];
?>
                                        <?php if (($_smarty_tpl->tpl_vars['valute']->value['Name'] != '' && $_smarty_tpl->tpl_vars['NeedToHide']->value['Take']['Valutes'][$_smarty_tpl->tpl_vars['i']->value] > 0)) {?>
                                            <p id="valute_id_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['valute']->value['Name'];?>
: <span><?php echo $_smarty_tpl->tpl_vars['NeedToHide']->value['Take']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
</span> </p>
                                        <?php }?>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable($_smarty_tpl->tpl_vars['i']->value+1, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                                    <?php
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_1_saved_local_item;
}
if ($__foreach_valute_1_saved_item) {
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_1_saved_item;
}
?>
                            </label>
                
                        </div>
                    </fieldset>
                    <div class="form-actions">
                        <div style="text-align: center;">
                            <button type="submit" name="btn_hideinfo" class="btn btn-primary submit-btn">Скрыть</button>
                        </div>
                    </div>
                </form>
            </div>
        </section>
         
        <div id="key" style="display: none;">no</div>
        <?php echo '<script'; ?>
>

            $(document).ready(function () {
                var key = $("#key").html();
                if(key == 'no')
                    $('.key-hwid').hide();
                $(".key-hwid").tooltip();
            });

        <?php echo '</script'; ?>
></div>
        <div class="section_view col-md-8"><section class="widget">
            <header>
                <h4>
                    <i class="fa fa-unlock-alt"></i>
                    Сменить пароль
                </h4>
            </header>
            <div class="body">
                <form name="forgot" class="form-horizontal" method="post" action="/cabinet/settings">
                    <fieldset>
                        <legend class="section">Внимание! Не создавайте пароли аналогичные тем которые вы делали на других серверах, серьезно относитесь к безопасности вашего аккаунта!</legend>
                        <div class="control-group">
                            <label class="control-label" for="password-field">Старый пароль</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                                    <input type="password" name="old_pass" class="form-control" id="password-field" placeholder="Password">
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="password-field">Новый пароль</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                                    <input type="password" name="new_pass" class="form-control" id="password-field" placeholder="Password">
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="password-field">Подтверждение пароля</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-lock"></i></span>
                                    <input type="password" name="r_new_pass" class="form-control" id="password-field" placeholder="Password">
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-actions">
                        <div class="show_forgot"></div>
                        <div>
                            <center><button type="submit" name="btn_new_pass" class="btn btn-primary submit-btn">Применить</button></center>
                        </div>
                    </div>
                </form>
            </div>
        </section>

    </div>
    

<!--
<div class="section_view col-md-6"><section class="widget">
            <header>
                <h4>
                    <i class="fa fa-wrench"></i>
                    Смена класса
                </h4>
            </header>
            <div class="body">
            <?php echo '<script'; ?>
 src="/web/templates/default/js/ajax.js"><?php echo '</script'; ?>
>
                <form class="form-horizontal" method="post" action="/cabinet/settings">
                <center><legend class="section" class="section"><font color="#bf7300">Важно! Персонаж должен быть</font> <b><font color="#ff4646">Offline</b></font></legend></center>
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label" for="hideinfo_selected_char">Выберите персонажа</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                     <select class="form-control" name="selected_char" id="selected_class">
                                        <?php
$_from = $_smarty_tpl->tpl_vars['Chars']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_char_2_saved_item = isset($_smarty_tpl->tpl_vars['char']) ? $_smarty_tpl->tpl_vars['char'] : false;
$_smarty_tpl->tpl_vars['char'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['char']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['char']->value) {
$_smarty_tpl->tpl_vars['char']->_loop = true;
$__foreach_char_2_saved_local_item = $_smarty_tpl->tpl_vars['char'];
?>
                                            <?php if ($_smarty_tpl->tpl_vars['char']->value != '') {?>
                                                <?php if ($_smarty_tpl->tpl_vars['char']->value == $_smarty_tpl->tpl_vars['ActiveChar']->value) {?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
" selected><?php echo $_smarty_tpl->tpl_vars['char']->value;?>
</option>
                                                <?php } else { ?>
                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['char']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['char']->value;?>
</option>
                                                <?php }?>
                                            <?php }?>
                                        <?php
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_2_saved_local_item;
}
if ($__foreach_char_2_saved_item) {
$_smarty_tpl->tpl_vars['char'] = $__foreach_char_2_saved_item;
}
?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="selected_class">Выберите класс</label>
                            <div class="controls form-group">
                                <div class="input-group col-sm-8">
                                    <span class="input-group-addon"><i class="fa fa-user"></i></span>
                                     <select class="form-control" name="selected_class">
                                       <?php
$_from = $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['Classes'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_need_3_saved_item = isset($_smarty_tpl->tpl_vars['need']) ? $_smarty_tpl->tpl_vars['need'] : false;
$__foreach_need_3_saved_key = isset($_smarty_tpl->tpl_vars['class']) ? $_smarty_tpl->tpl_vars['class'] : false;
$_smarty_tpl->tpl_vars['need'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['class'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['need']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['class']->value => $_smarty_tpl->tpl_vars['need']->value) {
$_smarty_tpl->tpl_vars['need']->_loop = true;
$__foreach_need_3_saved_local_item = $_smarty_tpl->tpl_vars['need'];
?>

                                            <?php if ($_smarty_tpl->tpl_vars['need']->value) {?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['class']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['class']->value;?>
</option>
                                            <?php }?>

                                        <?php
$_smarty_tpl->tpl_vars['need'] = $__foreach_need_3_saved_local_item;
}
if ($__foreach_need_3_saved_item) {
$_smarty_tpl->tpl_vars['need'] = $__foreach_need_3_saved_item;
}
if ($__foreach_need_3_saved_key) {
$_smarty_tpl->tpl_vars['class'] = $__foreach_need_3_saved_key;
}
?>
                                    </select>
                                </div>
                            </div>
                        </div> 
                        <div class="control-group">
                            <label class="control-label" style="width: 49%; text-align: center;">
                            Стоимость смены класса <br>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(0, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                                    <?php
$_from = $_smarty_tpl->tpl_vars['Valutes']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_valute_4_saved_item = isset($_smarty_tpl->tpl_vars['valute']) ? $_smarty_tpl->tpl_vars['valute'] : false;
$_smarty_tpl->tpl_vars['valute'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['valute']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['valute']->value) {
$_smarty_tpl->tpl_vars['valute']->_loop = true;
$__foreach_valute_4_saved_local_item = $_smarty_tpl->tpl_vars['valute'];
?>
                                        <?php if (($_smarty_tpl->tpl_vars['valute']->value['Name'] != '' && $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['Take']['Valutes'][$_smarty_tpl->tpl_vars['i']->value] > 0)) {?>
                                            <p id="valute_id_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['valute']->value['Name'];?>
: <span><?php echo $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['Take']['Valutes'][$_smarty_tpl->tpl_vars['i']->value];?>
</span> </p>
                                        <?php }?>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable($_smarty_tpl->tpl_vars['i']->value+1, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                                    <?php
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_4_saved_local_item;
}
if ($__foreach_valute_4_saved_item) {
$_smarty_tpl->tpl_vars['valute'] = $__foreach_valute_4_saved_item;
}
?>
                            </label>
                 <label class="control-label" style="width: 49%; text-align: center;">
                            <p>Нужен левел: <?php echo $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['NeedLevel'];?>
</p>
                            <p>Нужен ресет: <?php echo $_smarty_tpl->tpl_vars['NeedToChangeClass']->value['NeedReset'];?>
</p>
                            </label>
                
                        </div>
                    </fieldset>
                    <div>
                        <div style="text-align: center;">
                            <button type="submit" name="btn_new_class" class="btn btn-primary submit-btn">Сменить</button>
                        </div>
                    </div>
                </form>
            </div>
        </section>
-->
   
    </div>
    <?php
$_from = $_smarty_tpl->tpl_vars['Messages']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_message_5_saved_item = isset($_smarty_tpl->tpl_vars['message']) ? $_smarty_tpl->tpl_vars['message'] : false;
$_smarty_tpl->tpl_vars['message'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['message']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['message']->value) {
$_smarty_tpl->tpl_vars['message']->_loop = true;
$__foreach_message_5_saved_local_item = $_smarty_tpl->tpl_vars['message'];
?>
    <?php echo '<script'; ?>
>
        $.fn.notij( "<?php echo $_smarty_tpl->tpl_vars['message']->value;?>
" ,{ 'type':'error' });
    <?php echo '</script'; ?>
>
<?php
$_smarty_tpl->tpl_vars['message'] = $__foreach_message_5_saved_local_item;
}
if ($__foreach_message_5_saved_item) {
$_smarty_tpl->tpl_vars['message'] = $__foreach_message_5_saved_item;
}
}
}
