<?php
/* Smarty version 4.5.3, created on 2024-10-16 17:27:21
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/auth.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_670fcd49b653d2_49371632',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'fb24ac3cde4ed532de2874133d9d7e66ec28191b' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/auth.tpl',
      1 => 1716650267,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_670fcd49b653d2_49371632 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html class="js">
	<head>

		<title>Авторизация</title>
		<meta charset="utf-8">
		<base href="<?php echo $_smarty_tpl->tpl_vars['config']->value->root_url;?>
/admin/"/>
	    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

			    <link rel="shortcut icon" href="/admin/design/images/favicon.png">

				<link href="/admin/design/css/bundle.css" rel="stylesheet">
	    <link href="/admin/design/css/color.css" rel="stylesheet">
		<link href="/admin/design/css/tabler.css" rel="stylesheet">
	    <link href="/admin/design/css/system.css" rel="stylesheet">
	</head>
	<body class="nk-body npc-default pg-auth">

			    <div class="preloader position-absolute">
		    <div class="d-flex justify-content-center position-fixed preloader-block">
		    	<div class="spinner-border text-primary" role="status">
		    		<span class="sr-only">Загрузка...</span>
		    	</div>
		    </div>
	    </div>

	    		<div class="nk-app-root">
	        <div class="nk-main ">
	            <div class="nk-wrap nk-wrap-nosidebar">

	            		            	<div class="nk-content ">
	                    <div class="nk-block nk-block-middle nk-auth-body wide-xs">

	                        	                        <div class="brand-logo pb-2 center">
	                            <div class="nk-header-app-name align-self-stretch">
	                                <div class="nk-header-app-logo">
	                                    <em class="icon bg-purple-dim">
	                                    	
											<svg xmlns="http://www.w3.org/2000/svg" id="logo" width="19" viewBox="0 0 30 30">
												<path xmlns="http://www.w3.org/2000/svg" class="st1" d="M19.78,0H11.33V6.56h0v9h0c0,.06,0,.13,0,.19a3.84,3.84,0,1,0,1.51-3V6.05a10,10,0,1,1-7.65,9.71c0-.17,0-.33,0-.49h0V0H1.49A1.49,1.49,0,0,0,0,1.49V20.22A10.34,10.34,0,0,0,9.72,30H19.78A10.25,10.25,0,0,0,30,19.78V10.22A10.25,10.25,0,0,0,19.78,0Z"/>
	                                    	</svg>
	                                    	
	                                    </em>
	                                </div>
	                                <div class="nk-header-app-info">
	                                    <span class="lead-text">
	                                    	Buyers CMS
	                                    </span>
	                                </div>
	                            </div>
	                        </div>


	                        <div class="card card-bordered">
	                            <div class="card-inner card-inner-lg">
	                                <div class="nk-block-head">
	                                    <div class="nk-block-head-content">
	                                        <h4 class="nk-block-title js-title">Авторизация</h4>
	                                        <div class="nk-block-des">
	                                            <p class="js-subtitle">Войдите в систему используя свой email и пароль.</p>
	                                        </div>
	                                    </div>
	                                </div>

                                    <?php if ($_smarty_tpl->tpl_vars['error']->value == 'mailsent_error') {?>
                                    <div class="alert alert-fill alert-danger alert-icon">
                                        <em class="icon ti ti-circle-x"></em>
                                        Ошибка при отправке почты
                                    </div>
                                    <?php } elseif ($_smarty_tpl->tpl_vars['error']->value == 'invalid_login') {?>
                                    <div class="alert alert-fill alert-danger alert-icon">
                                        <em class="icon ti ti-circle-x"></em>
                                        Неверный логин или пароль
                                    </div>
                                    <?php }?>

                                    <?php if (!empty($_smarty_tpl->tpl_vars['success']->value)) {?>
                                    <div class="alert alert-fill alert-success alert-icon">
                                        <em class="icon ti ti-circle-check"></em>
                                        Письмо отправлено
                                    </div>
                                    <?php }?>

	                                <form method="post" action="/admin/">
	                                    <div class="form-group">
	                                        <div class="form-label-group">
	                                            <label class="form-label" for="email">Email</label>
	                                        </div>
	                                        <input type="email" value="<?php echo $_POST['email'];?>
" name="email" id="email" class="form-control form-control-lg" required>
	                                    </div>
	                                    <div class="form-group js-password">
	                                        <div class="form-label-group">
	                                            <label class="form-label" for="password">Пароль</label>
	                                        </div>
	                                        <div class="form-control-wrap">
	                                            <a href="#" class="form-icon form-icon-right passcode-switch" data-target="password">
	                                                <em class="passcode-icon icon-show icon ti ti-eye"></em>
	                                                <em class="passcode-icon icon-hide icon ti ti-eye-off"></em>
	                                            </a>
	                                            <input type="password" value="<?php echo $_POST['password'];?>
" name="password" id="password" class="form-control form-control-lg">
	                                        </div>
	                                    </div>
	                                    <div class="form-group d-flex flex-nowrap justify-between mb-2">
	                                        <div class="custom-control custom-control-sm custom-checkbox">
	                                            <input type="checkbox" name="reset_password" value="Y" <?php if (!empty($_POST['reset_password'])) {?>checked<?php }?> class="custom-control-input" id="reset_password">
	                                            <label class="custom-control-label" for="reset_password">Восстановить пароль</label>
	                                        </div>
	                                    </div>
	                                    <div class="error text-danger"></div>
	                                    <div class="form-group">
	                                        <button type="submit" class="btn btn-lg btn-primary btn-block js-submit">Авторизоваться</button>
	                                    </div>
	                                    <input type="hidden" name="auth" value="login">
	                                </form>
	                            </div>

	                        </div>
	                    </div>
	                </div>

	            </div>
	        </div>
	    </div>

	    	    <?php echo '<script'; ?>
 src="/admin/design/js/bundle.js"><?php echo '</script'; ?>
>
	    <?php echo '<script'; ?>
 src="/admin/design/js/scripts.js"><?php echo '</script'; ?>
>
	    <?php echo '<script'; ?>
 src="/admin/design/js/login.js"><?php echo '</script'; ?>
>
	</body>
</html>
<?php }
}
