<?php
/* Smarty version 4.5.3, created on 2024-10-26 08:03:27
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/clear.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_671c781f1530d2_30094636',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '205c81fee5eec52e64ce4ca489fc70fc620e7ad3' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/clear.tpl',
      1 => 1729072195,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_671c781f1530d2_30094636 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('meta_title', 'Очистка' ,false ,8);?>

<div class="container-fluid">

	    <div class="nk-block-head nk-block-head-sm">
        <div class="nk-block-between">

        	            <div class="nk-block-head-content">
                <h3 class="nk-block-title page-title">
                	Очистка
                </h3>
                <div class="nk-block-des text-soft">
                    <p>Автоматизированная система очистки.</p>
                </div>
            </div>

                        <div class="nk-block-head-content">
    			<div class="toggle-wrap nk-block-tools-toggle">

    				    				<a href="#" class="btn btn-icon btn-trigger toggle-expand mr-n1" data-target="pageMenu">
    					<em class="icon ti ti-menu"></em>
    				</a>

    				    				<div class="toggle-expand-content" data-content="pageMenu">
    					<ul class="nk-block-tools g-3">

    						    						<?php if ($_GET['return']) {?>
    						<li>
    							<a href="<?php echo $_GET['return'];?>
" class="btn btn-white btn-outline-light">
    								<em class="icon ti ti-arrow-back-up"></em>
    								<span>Вернуться</span>
    							</a>
    						</li>
    						<?php }?>

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

        </div>
    </div>

        <div class="pb-2">
        <div class="example-alert">
            <div class="alert alert-fill alert-info alert-icon">
                <em class="icon ti ti-alert-circle"></em>
                Внимание! Перед очисткой рекомендуем создать резервную копию в разделе <a href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'BackupAdmin'),$_smarty_tpl ) );?>
" class="alert-link">Бекап</a> для возможности возврата данных.
            </div>
        </div>
    </div>

        <?php if ($_GET['message_success']) {?>
    <div class="pb-2">
    	<div class="alert alert-fill alert-success alert-icon">
    		<em class="icon ti ti-circle-check"></em>
    		<?php if ($_GET['message_success'] == 'cleared') {?>Очистка завершена успешно<?php } else {
echo $_GET['message_success'];
}?>.
    	</div>
    </div>
    <?php }?>

        <?php if ($_smarty_tpl->tpl_vars['message_error']->value) {?>
    <div class="pb-2">
    	<div class="alert alert-fill alert-danger alert-icon">
    		<em class="icon ti ti-circle-x"></em>
    		<?php echo $_smarty_tpl->tpl_vars['message_error']->value;?>
.
    	</div>
    </div>
    <?php }?>

        <div class="nk-block">
    	<div class="card card-bordered">
    		<div class="card-content">

    			    			<form method="post" enctype="multipart/form-data">

    				    				<div class="card-inner">


    					<div class="nk-block">
    						<div class="nk-block-head">
    							<h5 class="title">Очистка</h5>
                                <p>Выберите, какие разделы вы хотите очистить.</p>
    						</div>
    						<div class="gy-3">
                                <div class="row g-3 align-center js-clear-list">
                                    <div class="col-lg-5 col-6">
                                        <div class="form-group">
                                            <label class="form-label" for="clear_resizes">Кеш изображений</label>
                                            <span class="form-note">Очистить кеш изображений.</span>
                                        </div>
                                    </div>
                                    <div class="col-lg-7 col-6">
                                        <div class="form-group">
                                            <div class="custom-control custom-switch">
                                                <input type="checkbox" name="resizes" value="1" class="custom-control-input" id="clear_resizes">
                                                <label class="custom-control-label" for="clear_resizes"></label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row g-3 align-center js-clear-list">
                                    <div class="col-lg-5 col-6">
                                        <div class="form-group">
                                            <label class="form-label" for="clear_templates">Кеш шаблона</label>
                                            <span class="form-note">Очистить кеш шаблона.</span>
                                        </div>
                                    </div>
                                    <div class="col-lg-7 col-6">
                                        <div class="form-group">
                                            <div class="custom-control custom-switch">
                                                <input type="checkbox" name="templates" value="1" class="custom-control-input" id="clear_templates">
                                                <label class="custom-control-label" for="clear_templates"></label>
                                            </div>
                                        </div>
                                    </div>
                                </div>


    							<div class="row g-3">
    								<div class="col-lg-7 offset-lg-5">
    									<div class="form-group mt-2">
    										<button type="submit" class="btn btn-success">Очистить</button>
    									</div>
    								</div>
    							</div>
    						</div>
    					</div>

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

</div>
<?php }
}
