get logs from device
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
<input type='hidden' name='get_data_sync_url' value="{Url::to(['get-data-sync'])}">
|
||||
<input type='hidden' name='sync_schedule_url' value="{Url::to(['sync-schedule'])}">
|
||||
<input type='hidden' name='sync_staffs_url' value="{Url::to(['sync-staffs'])}">
|
||||
<input type='hidden' name='get_logs_sync_url' value="{Url::to(['sync-logs'])}">
|
||||
<div class="" style="font-size: 15px;">
|
||||
<label class="action-button" onclick="common.form(this, 'device');" data-href="{Url::to(['create'])}">
|
||||
<i class="fa fa-plus-square fa-1-5x"></i> Thêm
|
||||
@@ -19,11 +20,14 @@
|
||||
<label class="action-button" onclick="_delete(this);" data-href="{Url::to(['delete'])}">
|
||||
<i class="fa fa-trash fa-1-5x"></i> Xóa
|
||||
</label>
|
||||
<label class="action-button" onclick="_getLogs(this);" data-href="{Url::to(['get-logs'])}">
|
||||
<i class="fa fa-exchange fa-1-5x"></i> Lấy các sự kiện
|
||||
</label>
|
||||
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['change-ip'])}">
|
||||
<i class="fa fa-pencil fa-1-5x"></i> Thay đổi địa chỉ IP
|
||||
</label>
|
||||
<label class="action-button" onclick="_sync(this);" data-href="{Url::to(['sync'])}">
|
||||
<i class="fa fa-exchange fa-1-5x"></i> Đồng bộ dữ liệu đến thiết bị
|
||||
<i class="fa fa-refresh fa-1-5x"></i> Đồng bộ dữ liệu đến thiết bị
|
||||
</label>
|
||||
<label class="action-button" onclick="_export(this);" data-href="{Url::to(['export'])}">
|
||||
<i class="fa fa-download fa-1-5x"></i> Xuất
|
||||
|
||||
13
views/device/logs.tpl
Normal file
13
views/device/logs.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
<div class="well" style="height: 300px;overflow-y: scroll;" id="logs-response">
|
||||
|
||||
</div>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-primary progress-bar-striped" id='progress' role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
|
||||
0%
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<button class="btn btn-default" data-dismiss="modal" disabled="" id="close-modal">
|
||||
<span class="fa fa-remove"></span> Đóng
|
||||
</button>
|
||||
</div>
|
||||
38
views/logs/index.tpl
Normal file
38
views/logs/index.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{extends file=$smarty.current_dir|cat:'/../extends.tpl'}
|
||||
{use class="yii\helpers\Url"}
|
||||
{use class="yii\grid\GridView"}
|
||||
{use class="yii\widgets\Pjax" type="block"}
|
||||
{use class="app\assets\DepartmentAsset"}
|
||||
{DepartmentAsset::register($this)|void}
|
||||
{block name='content'}
|
||||
<div class="logs-index">
|
||||
<div class="" style="font-size: 15px;">
|
||||
<label class="action-button" onclick="common.form(this, '');" data-href="{Url::to(['tree'])}">
|
||||
<i class="fa fa-sitemap fa-1-5x"></i> Cây thư mục
|
||||
</label>
|
||||
<label class="action-button" onclick="_logs(this);" data-href="{Url::to(['logs'])}">
|
||||
<i class="fa fa-file fa-1-5x"></i> Ghi nhận hệ thống
|
||||
</label>
|
||||
</div>
|
||||
{Pjax id="department-list"}
|
||||
{GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'filterModel' => $searchModel,
|
||||
'layout'=> \app\helpers\CommonGrid::getLayout(),
|
||||
'tableOptions' => [
|
||||
'class' => 'table table-striped table-bordered table-hover',
|
||||
'style' => 'background:#fff;min-width:700px;'
|
||||
],
|
||||
'columns' => [
|
||||
[
|
||||
'class' => 'yii\grid\SerialColumn',
|
||||
'contentOptions' => ['class' => 'text-center'],
|
||||
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%']
|
||||
],
|
||||
'time',
|
||||
'staff_id'
|
||||
]
|
||||
])}
|
||||
{/Pjax}
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user