update version 1.0 deploy

This commit is contained in:
2020-02-03 14:22:37 +07:00
parent 4c619ad6e6
commit 166c101a78
8 changed files with 345 additions and 47 deletions

View File

@@ -25,19 +25,16 @@ class LogsGrid {
public static function plateIn() {
return function($model) {
$style = "width:50px";
if ($model->mod_in == 1) {
$style = "width:100%";
if ($model->time_in) {
$style = "width:100px";
$image = $model->plate_image_in;
return Html::img(Yii::$app->request->hostInfo . "/AIParking_Intops_Server/web/data/uploads/" . $image, [
'class' => "img-thumbnail",
"style" => $style
]);
} else {
return "";
}
$image = $model->plate_image_in;
if (!$image) {
$image = $model->frame_image_in;
$style = "width:100%";
}
return Html::img(Yii::$app->request->hostInfo . "/data/uploads/" . $image, [
'class' => "img-thumbnail",
"style" => $style
]);
};
}
@@ -54,16 +51,9 @@ class LogsGrid {
public static function plateOut() {
return function($model) {
if ($model->time_out) {
$style = "width:50px";
if ($model->mod_out == 1) {
$style = "width:100%";
}
$style = "width:100px";
$image = $model->plate_image_out;
if (!$image) {
$image = $model->frame_image_out;
$style = "width:100%";
}
return Html::img(Yii::$app->request->hostInfo . "/data/uploads/" . $image, [
return Html::img(Yii::$app->request->hostInfo . "/AIParking_Intops_Server/web/data/uploads/" . $image, [
'class' => "img-thumbnail",
"style" => $style
]);
@@ -75,8 +65,12 @@ class LogsGrid {
public static function timeIn() {
return function($model) {
$common = new common();
return $common->formatTime($model->time_in, "H:i:s d/m/Y");
if ($model->time_in) {
$common = new common();
return $common->formatTime($model->time_in, "H:i:s d/m/Y");
} else {
return "";
}
};
}