4 Commits
FSI ... dev

Author SHA1 Message Date
575bd6ce75 fix bug reset thiet bi 2021-03-03 14:08:04 +07:00
6c7ecf7f26 update ngon ngu tieng Viet cho nhung cho tieng Anh 2021-02-18 17:46:41 +07:00
cb889f1084 fix bug idStaff co dau cach 2021-02-04 17:58:18 +07:00
b29904a2b5 hien thi anh mau moi nhat 2021-01-27 10:26:47 +07:00
7 changed files with 11 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ class CaptureLogsController extends Controller {
$t = date_format(date_create_from_format('H:i d/m/Y', $to), 'U'); $t = date_format(date_create_from_format('H:i d/m/Y', $to), 'U');
} }
$this->view->title = "Capture Log"; $this->view->title = "Lịch sử hệ thống";
$searchModel = new CaptureLogsSearch(); $searchModel = new CaptureLogsSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
if (!$all) if (!$all)

View File

@@ -338,8 +338,8 @@ class ConfigController extends Controller {
array_map('unlink', glob("/var/www/html/BiFace_Server_Lite/web/data/uploads/face/*.*")); array_map('unlink', glob("/var/www/html/BiFace_Server_Lite/web/data/uploads/face/*.*"));
try { try {
file_get_contents("http://localhost:2305/update-feature"); file_get_contents("http://localhost:2305/update-feature");
} catch (Exception $exc) { } catch (\Exception $exc) {
echo $exc->getTraceAsString(); // echo $exc->getTraceAsString();
} }
} }
return Url::to(['/config']); return Url::to(['/config']);

View File

@@ -39,7 +39,7 @@ class ControlLogsController extends Controller {
$t = date_format(date_create_from_format('H:i d/m/Y', $to), 'U'); $t = date_format(date_create_from_format('H:i d/m/Y', $to), 'U');
} }
$this->view->title = "Control Log"; $this->view->title = "Danh sách nhận diện";
$searchModel = new CaptureLogsSearch(); $searchModel = new CaptureLogsSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$dataProvider->query->andWhere(["<>", "capture_logs.staff_id", 0]); $dataProvider->query->andWhere(["<>", "capture_logs.staff_id", 0]);

View File

@@ -34,7 +34,7 @@ class ListManagementController extends Controller {
public function actionIndex($from = "", $to = "", $name = "", $type = "all", $gender = "all", $id = "") { public function actionIndex($from = "", $to = "", $name = "", $type = "all", $gender = "all", $id = "") {
$f = date_format(date_create_from_format('H:i d/m/Y', "00:00 " . date("d/m/Y")), 'U'); $f = date_format(date_create_from_format('H:i d/m/Y', "00:00 " . date("d/m/Y")), 'U');
$t = date_format(date_create_from_format('H:i d/m/Y', "23:59 " . date("d/m/Y")), 'U'); $t = date_format(date_create_from_format('H:i d/m/Y', "23:59 " . date("d/m/Y")), 'U');
$this->view->title = "List management"; $this->view->title = "Quản lý mẫu";
$searchModel = new ListManagementSearch(); $searchModel = new ListManagementSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
if ($from !== "" && $to !== "") { if ($from !== "" && $to !== "") {

View File

@@ -95,7 +95,7 @@ class CaptureLogsGrid {
if ($staff) { if ($staff) {
$images = json_decode($staff->image, true); $images = json_decode($staff->image, true);
if (count($images) > 0) if (count($images) > 0)
return Html::img("/data/uploads/face/" . $images[0]['url'], [ return Html::img("/data/uploads/face/" . $images[count($images) - 1]['url'], [
"class" => "img-thumbnail", "class" => "img-thumbnail",
"style" => "width: 150px;height:150px;" "style" => "width: 150px;height:150px;"
]); ]);

View File

@@ -48,17 +48,17 @@ use yii\widgets\ActiveForm;
</li> </li>
<li class="<?php if (Yii::$app->controller->id == "list-management") echo "active"; ?>"> <li class="<?php if (Yii::$app->controller->id == "list-management") echo "active"; ?>">
<a href="<?php echo yii\helpers\Url::to(['/list-management']); ?>"> <a href="<?php echo yii\helpers\Url::to(['/list-management']); ?>">
<i class="fa fa-list"></i> List Management <i class="fa fa-list"></i> Quản lý mẫu
</a> </a>
</li> </li>
<li class="<?php if (Yii::$app->controller->id == "capture-logs") echo "active"; ?>"> <li class="<?php if (Yii::$app->controller->id == "capture-logs") echo "active"; ?>">
<a href="<?php echo yii\helpers\Url::to(['/capture-logs']); ?>"> <a href="<?php echo yii\helpers\Url::to(['/capture-logs']); ?>">
<i class="fa fa-camera"></i> Capture log <i class="fa fa-camera"></i> Lịch sử hệ thống
</a> </a>
</li> </li>
<li class="<?php if (Yii::$app->controller->id == "control-logs") echo "active"; ?>"> <li class="<?php if (Yii::$app->controller->id == "control-logs") echo "active"; ?>">
<a href="<?php echo yii\helpers\Url::to(['/control-logs']); ?>"> <a href="<?php echo yii\helpers\Url::to(['/control-logs']); ?>">
<i class="fa fa-database"></i> Control log <i class="fa fa-database"></i> Danh sách nhận diện
</a> </a>
</li> </li>
</ul> </ul>

View File

@@ -30,9 +30,9 @@
</thead> </thead>
<tbody id="sync-lists"> <tbody id="sync-lists">
{foreach from=$datas item=arr} {foreach from=$datas item=arr}
<tr id="filters-{$arr.code}" onclick="choooseToSync(this);" style="cursor: pointer;" class="filters {if !in_array($arr.idStaff,$allID)}not-in-list{/if}" data-stt="false" data-id="{$arr.idStaff}"> <tr id="filters-{$arr.code}" onclick="choooseToSync(this);" style="cursor: pointer;" class="filters {if !in_array($arr.idStaff,$allID)}not-in-list{/if}" data-stt="false" data-id="{trim($arr.idStaff)}">
<td> <td>
<div id="full-data-{$arr.idStaff}" class="hidden">{json_encode($arr)}</div> <div id="full-data-{trim($arr.idStaff)}" class="hidden">{json_encode($arr)}</div>
{$arr.idStaff} {$arr.idStaff}
{if in_array($arr.idStaff,$allID)} {if in_array($arr.idStaff,$allID)}
<i class="fa fa-check-circle text-green"></i> <i class="fa fa-check-circle text-green"></i>