You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Malio/resources/views/malio/user/detect_log.tpl

83 lines
2.8 KiB
Smarty

<!DOCTYPE html>
<html lang="en">
<head>
{include file='user/head.tpl'}
<title>{$i18n->get('audit-logs')} &mdash; {$config["appName"]}</title>
</head>
<body>
<div id="app">
<div class="main-wrapper">
{include file='user/navbar.tpl'}
<!-- Main Content -->
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>{$i18n->get('audit-logs')}</h1>
</div>
<div class="section-body">
<h2 class="section-title">{$i18n->get('notice')}</h2>
<p class="section-lead">{$i18n->get('audit-logs-notice')}</p>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h4>{$i18n->get('logs')}</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped">
<tr>
<th>ID</th>
<th>{$i18n->get('name')}</th>
<th>{$i18n->get('description')}</th>
<th>{$i18n->get('regex')}</th>
<th>{$i18n->get('type')}</th>
</tr>
{foreach $logs as $log}
{if $log->DetectRule() != null}
<tr>
<td>#{$log->id}</td>
<td>{$log->node_id}</td>
<td>{$log->Node()->name}</td>
<td>{$log->list_id}</td>
<td>{$log->DetectRule()->name}</td>
<td>{$log->DetectRule()->text}</td>
<td>{$log->DetectRule()->regex}</td>
{if $log->DetectRule()->type == 1}
<td>数据包明文匹配</td>
{/if}
{if $log->DetectRule()->type == 2}
<td>数据包 hex 匹配</td>
{/if}
<td>{date('Y-m-d H:i:s',$log->datetime)}</td>
</tr>
{/if}
{/foreach}
</table>
</div>
{if $rules != null}
<div class="pagination-render float-right">
{$rules->render()}
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{include file='user/footer.tpl'}
</div>
</div>
{include file='user/scripts.tpl'}
</body>
</html>