99 lines
3.5 KiB
PHP
99 lines
3.5 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-13 16:33:31
|
||
compiled from "tpl/tpl_setting_logs.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:381549386256d12ba486d9-78813547%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'5a572311f65f92d064c9b06549d6b232ccd8b3d2' =>
|
||
array (
|
||
0 => 'tpl/tpl_setting_logs.html',
|
||
1 => 1612207608,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '381549386256d12ba486d9-78813547',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'logs' => 0,
|
||
'search_fio' => 0,
|
||
'data1' => 0,
|
||
'data2' => 0,
|
||
'log' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_6256d12ba74e34_06716811',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_6256d12ba74e34_06716811')) {function content_6256d12ba74e34_06716811($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Просмотр логов сайта</h3>
|
||
<ul class="breadcrumb">
|
||
<li><a href="/">Главная</a><span class="divider">/</span></li>
|
||
<li class="active"><a href="/alneo/logs/">Логи сайта</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget green">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Логи сайта </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<?php if (count($_smarty_tpl->tpl_vars['logs']->value)>0){?>
|
||
<h3>Статистика использования ресурса</h3>
|
||
<form method="POST">
|
||
<input type="TEXT" name="search_fio" value="<?php echo $_smarty_tpl->tpl_vars['search_fio']->value;?>
|
||
">или/и
|
||
<input type="TEXT" name="search_data1" value="<?php if ($_smarty_tpl->tpl_vars['data1']->value==0){?><?php echo date('H:i:s d.m.Y');?>
|
||
<?php }else{ ?><?php echo date('H:i:s d.m.Y',$_smarty_tpl->tpl_vars['data1']->value);?>
|
||
<?php }?>" placeholder="Начальная дата">
|
||
<input type="TEXT" name="search_data2" value="<?php if ($_smarty_tpl->tpl_vars['data2']->value==0){?><?php echo date('H:i:s d.m.Y');?>
|
||
<?php }else{ ?><?php echo date('H:i:s d.m.Y',$_smarty_tpl->tpl_vars['data2']->value);?>
|
||
<?php }?>" placeholder="Конечная дата">
|
||
|
||
<input type="SUBMIT" name="search_go" value="Искать">
|
||
</form>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="20%">Дата</th>
|
||
<th width="80%">Событие</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['log'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['log']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['logs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['log']->key => $_smarty_tpl->tpl_vars['log']->value){
|
||
$_smarty_tpl->tpl_vars['log']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['data_c'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['log']->value['message'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<?php }} ?>
|