Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 575bd6ce75 | |||
| 6c7ecf7f26 | |||
| cb889f1084 | |||
| b29904a2b5 |
@@ -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)
|
||||||
|
|||||||
@@ -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']);
|
||||||
|
|||||||
@@ -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]);
|
||||||
|
|||||||
@@ -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 !== "") {
|
||||||
|
|||||||
@@ -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;"
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user