init Area full CRUD
This commit is contained in:
23
widgets/views/system-logs-view.tpl
Normal file
23
widgets/views/system-logs-view.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<table style="width: 100%;" class="table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Người dùng</th>
|
||||
<th>Thời gian</th>
|
||||
<th>Hành động</th>
|
||||
<th>Chi tiết</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{$count=1}
|
||||
{foreach from=$logs item=l}
|
||||
<tr>
|
||||
<td>{$count++}</td>
|
||||
<td>{$userArray[$l->user_id]|default:""}</td>
|
||||
<td>{$l->time|date_format:"%H:%M:%S %d/%m/%Y"}</td>
|
||||
<td>{$l->action}</td>
|
||||
<td>{$l->description}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -3,7 +3,7 @@
|
||||
<i class="fa fa-minus-square-o" onclick="common.tree(this);" data="{$l->code}" data-stt="true"></i>
|
||||
<span class="tree-drop">{$l->code}-{$l->name}</span>
|
||||
<div id="sub-tree-{$l->code}" style="padding-left: 20px;">
|
||||
{\app\widgets\Department::widget(["pid"=>$l->code])}
|
||||
{\app\widgets\TreeSub::widget(["pid"=>$l->code,"model"=>$model])}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
7
widgets/views/tree.tpl
Normal file
7
widgets/views/tree.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<div style="cursor: pointer;">
|
||||
<i class="fa fa-minus-square-o" onclick="common.tree(this);" data="1" data-stt="true"></i>
|
||||
<b class="tree tree-drop" data="0">{$root->code}-{$root->name}</b>
|
||||
<div id="sub-tree-1" style="padding-left: 20px;">
|
||||
{\app\widgets\TreeSub::widget(["pid"=>1,"model"=>$model])}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user