HEX
Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 mod_fcgid/2.3.9 PHP/5.4.16
System: Linux dvm.vladweb.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: region-gk.ru (1016)
PHP: 8.2.27
Disabled: NONE
Upload Files
File: /home/temp/yarusvl.ru/compiled/orienta/af88a6cec4519490bf3afcba6fc17489e52a8fd2_0.file.user.tpl.php
<?php
/* Smarty version 3.1.34-dev-7, created on 2022-07-20 16:40:58
  from '/var/www/yarusvl.ru/data/www/test.yarusvl.ru/tpls/orienta/html/user.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_62d7a37a662849_00091827',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'af88a6cec4519490bf3afcba6fc17489e52a8fd2' => 
    array (
      0 => '/var/www/yarusvl.ru/data/www/test.yarusvl.ru/tpls/orienta/html/user.tpl',
      1 => 1617950471,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_62d7a37a662849_00091827 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('meta_title', $_smarty_tpl->tpl_vars['lang']->value->user_title ,false ,2);?>

<h1 class="h1">
    <span data-language="user_header"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_header;?>
</span>
</h1>

<div class="block padding">
    <div class="row">
        <div class="col-lg-5">

                        <?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
                <div class="message_error">
                    <?php if ($_smarty_tpl->tpl_vars['error']->value == 'empty_name') {?>
                        <span data-language="form_enter_name"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_enter_name;?>
</span>
                    <?php } elseif ($_smarty_tpl->tpl_vars['error']->value == 'empty_email') {?>
                        <span data-language="form_enter_email"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_enter_email;?>
</span>
                    <?php } elseif ($_smarty_tpl->tpl_vars['error']->value == 'empty_password') {?>
                        <span data-language="form_enter_password"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_enter_password;?>
</span>
                    <?php } elseif ($_smarty_tpl->tpl_vars['error']->value == 'user_exists') {?>
                        <span data-language="register_user_registered"><?php echo $_smarty_tpl->tpl_vars['lang']->value->register_user_registered;?>
</span>
                    <?php } else { ?>
                        <?php echo $_smarty_tpl->tpl_vars['error']->value;?>

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

            <form method="post" class="fn_validate_register">

                                <div class="form_group">
                    <input class="form_input placeholder_focus" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="name" type="text" data-language="form_name" />
                    <span class="form_placeholder"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_name;?>
*</span>
                </div>

                                <div class="form_group">
                    <input class="form_input placeholder_focus" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['email']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="email" type="text" data-language="form_email" />
                    <span class="form_placeholder"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_email;?>
*</span>
                </div>

                                <div class="form_group">
                    <input class="form_input placeholder_focus" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['phone']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="phone" type="text" data-language="form_phone" />
                    <span class="form_placeholder"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_phone;?>
</span>
                </div>

                                <div class="form_group">
                    <input class="form_input placeholder_focus" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="address" type="text" data-language="form_address" />
                    <span class="form_placeholder"><?php echo $_smarty_tpl->tpl_vars['lang']->value->form_address;?>
</span>
                </div>

                                <div class="form_group">
                    <p class="change_pass" onclick="$('#password').toggle();return false;"><span data-language="user_change_password"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_change_password;?>
</span></p>

                    <input class="form_input " id="password" value="" name="password" type="password" style="display:none;" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value->user_change_password;?>
"/>
                </div>

                <div class="form_group">
                                        <input type="submit" class="btn btn-paddi btn-danger" name="user_save" data-language="form_save" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value->form_save;?>
">

                                        <a href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;?>
user/logout" class="btn btn-paddi btn-default fright" data-language="user_logout"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_logout;?>
</a>
                </div>
            </form>
        </div>

                <?php if ($_smarty_tpl->tpl_vars['orders']->value) {?>
            <div class="col-lg-7">

                <?php if (!empty($_smarty_tpl->tpl_vars['user_data']->value->group_name)) {?>

                    <b>&nbsp;&nbsp;&nbsp;Статус: </b><span style="color: #c9302c">
                            <?php echo $_smarty_tpl->tpl_vars['user_data']->value->group_name;?>
   <?php if (!empty($_smarty_tpl->tpl_vars['user_data']->value->group_id) && $_smarty_tpl->tpl_vars['user_data']->value->group_id == 4) {?>
                                                                                 ( вы видите оптовые цены на товар )
                        </span>
                                                      <br>
                                                  <?php }?>
                 <br> <br>
                <?php }?>



                <table class="table">
                    <thead>
                        <tr>
                            <th>
                                <span data-language="user_number_of_order"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_number_of_order;?>
</span>
                            </th>
                            <th>
                                <span data-language="user_order_date"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_order_date;?>
</span>
                            </th>
                            <th>
                                <span data-language="user_order_status"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_order_status;?>
</span>
                            </th>
                        </tr>
                    </thead>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['orders']->value, 'order');
$_smarty_tpl->tpl_vars['order']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['order']->value) {
$_smarty_tpl->tpl_vars['order']->do_else = false;
?>
                        <tr>
                                                        <td>
                                <a href='<?php echo $_smarty_tpl->tpl_vars['language']->value->label;?>
/order/<?php echo $_smarty_tpl->tpl_vars['order']->value->url;?>
'><span data-language="user_order_number"><?php echo $_smarty_tpl->tpl_vars['lang']->value->user_order_number;?>
</span><?php echo $_smarty_tpl->tpl_vars['order']->value->id;?>
</a>
                            </td>

                                                        <td><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'date' ][ 0 ], array( $_smarty_tpl->tpl_vars['order']->value->date ));?>
</td>

                                                        <td>
                                <?php if ($_smarty_tpl->tpl_vars['order']->value->paid == 1) {?>
                                    <span data-language="status_paid"><?php echo $_smarty_tpl->tpl_vars['lang']->value->status_paid;?>
</span>,
                                <?php }?>
                                <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['orders_status']->value[$_smarty_tpl->tpl_vars['order']->value->status_id]->name, ENT_QUOTES, 'UTF-8', true);?>

                            </td>
                        </tr>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </table>
            </div>
        <?php }?>
    </div>
</div>
<?php }
}