update biface local

This commit is contained in:
2020-12-01 16:47:43 +07:00
parent 73b44eb2af
commit efb4113001
21 changed files with 883 additions and 57 deletions

View File

@@ -5,7 +5,6 @@ namespace app\helpers;
use Yii;
use yii\helpers\Html;
use yii\helpers\Url;
use app\models\common;
class CaptureLogsGrid {
@@ -29,4 +28,38 @@ class CaptureLogsGrid {
return "{update} {delete}";
}
public static function time() {
return function($model) {
return date("H:i:s d/m/Y", $model->time);
};
}
public static function image() {
return function($model) {
return Html::img("/BiFace/data/uploads/face/" . $model->image, [
"class" => "img-thumbnail",
"style" => "width: 150px;height:150px;"
]);
};
}
public static function status($statusArray) {
return function($model) use ($statusArray) {
return $statusArray[$model->status];
};
}
public static function rows() {
return function($model, $index, $widget, $grid) {
return [
"ondblclick" => "_form(this);",
"style" => "cursor: pointer;",
"data" => [
"id" => $model->id,
"img" => "/BiFace/data/uploads/face/" . $model->image
]
];
};
}
}