update system information

This commit is contained in:
2023-06-29 13:49:03 +07:00
parent e4e080266a
commit c29719d73e
8 changed files with 136 additions and 4 deletions

View File

@@ -0,0 +1,58 @@
{extends file=$smarty.current_dir|cat:'/../extends.tpl'}
{use class="yii\helpers\Url"}
{use class="app\assets\ConfigAsset"}
{ConfigAsset::register($this)|void}
{block name='content'}
<style>
.input-group-addon{
width: 120px;
font-weight: bold;
}
.input-group{
width: 100%;
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #d1d1d1;
}
</style>
<div class="container-fluid">
<br>
<div class="row">
<div class="col-md-3 col-md-push-1">
<table class="table table-bordered table-striped" style="background: #fff;">
<thead>
<tr style="background-color: #3c8dbc;color:#fff;">
<th colspan="2">{Yii::t("app", "THONG_TIN_HE_THONG")|upper}</th>
</tr>
</thead>
<tbody>
<tr>
<th>CPU</th>
<td>ARM Mali-450 penta-core</td>
</tr>
<tr>
<th>MemTotal</th>
<td>2.0 GiB</td>
</tr>
<tr>
<th>DiskTotal</th>
<td>16.0 GiB</td>
</tr>
<tr>
<th>Software version number</th>
<td>{$version}</td>
</tr>
<tr>
<th>Build time</th>
<td>{$build_time}</td>
</tr>
</tbody>
</table>
<button class="btn btn-danger" onclick="reboot(this);" data-href="{Url::to(['system-info'])}">
<i class="fa fa-refresh"></i> {Yii::t("app","REBOOT")}
</button>
</div>
</div>
</div>
</div>
{/block}

View File

@@ -33,6 +33,8 @@
<input type="hidden" name="HAY_CHON_DOI_TUONG_DE_GAN_LICH_TRINH" value="{Yii::t("app", "HAY_CHON_DOI_TUONG_DE_GAN_LICH_TRINH")}">
<input type="hidden" name="BAN_CO_CHAC_CHAN_MUON_XOA_LICH_TRINH_NAY_KHONG" value="{Yii::t("app", "BAN_CO_CHAC_CHAN_MUON_XOA_LICH_TRINH_NAY_KHONG")}">
<input type="hidden" name="BAN_CO_CHAC_CHAN_MUON_DOI_IP_KHONG" value="{Yii::t("app", "BAN_CO_CHAC_CHAN_MUON_DOI_IP_KHONG")}">
<input type="hidden" name="BAN_CO_CHAC_CHAN_MUON_REBOOT_KHONG" value="{Yii::t("app", "BAN_CO_CHAC_CHAN_MUON_REBOOT_KHONG")}">
<div id="blocking" class="fade modal" role="dialog" tabindex="-1">
<div class="modal-dialog" style="top: 50%;margin-top: -45px;">
@@ -47,6 +49,19 @@
</div>
</div>
</div>
<div id="reboot-blocking" class="fade modal" role="dialog" tabindex="-1">
<div class="modal-dialog" style="top: 50%;margin-top: -45px;">
<div class="modal-content" style="background-color: transparent;box-shadow: none;">
<div class="modal-body">
<div id='modelContent' class="text-center">
<i class="fa fa-spinner fa-pulse fa-5x fa-fw" style="color: #fff;"></i>
<br>
<b style="color: #fff;font-size: 25px;">Đang khởi động lại thiết bị, vui lòng chờ trong vài phút và tải lại trang!</b>
</div>
</div>
</div>
</div>
</div>
<div id="uploadBlock" class="fade modal" role="dialog" tabindex="-1">
<div class="modal-dialog" style="top: 50%;margin-top: -45px;">
<div class="modal-content" style="background-color: transparent;box-shadow: none;">