update biface local
This commit is contained in:
@@ -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
|
||||
]
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user