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

@@ -673,4 +673,8 @@ body::-webkit-scrollbar {
}
.font-grey-cascade {
color: #95A5A6!important;
}
.skin-blue .main-header .navbar .nav>li>a{
font-size:23px !important;
}

View File

@@ -1,8 +1,8 @@
<?php
// comment out the following two lines when deployed to production
//defined('YII_DEBUG') or define('YII_DEBUG', true);
//defined('YII_ENV') or define('YII_ENV', 'dev');
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';

48
web/js/capture-logs.js Normal file
View File

@@ -0,0 +1,48 @@
$(function () {
common.dateTimePickerByClass("datepicker", "HH:mm DD/MM/YYYY");
common.dateTimePickerDay("birthday");
});
function _search(e) {
window.location = $(e).attr("data-href") + "?from=" + $("input[name='From']").val() + "&to=" + $("input[name='To']").val();
}
function _form(e) {
$("#form").removeClass("hidden");
$("input[name='CaptureLogsID']").val($(e).attr("data-id"));
$("#FaceImage").attr("src", $(e).attr("data-img"));
}
function _close() {
$("#form").addClass("hidden");
}
function _save(e) {
var name = $("input[name='Name']").val();
if (name === "") {
alert("Hãy nhập tên!");
return;
}
common.modalBlock(true);
$.ajax({
url: $(e).attr("data-href"),
type: 'POST',
data: {
name: name,
type: $("select[name='Type']").val(),
gender: $("select[name='Gender']").val(),
birthday: $("input[name='Birthday']").val(),
telephone: $("input[name='Telephone']").val(),
address: $("input[name='Address']").val(),
id: $("input[name='CaptureLogsID']").val()
},
success: function (data) {
alert("Đã thêm dữ liệu thành công!");
window.location.reload(true);
},
error: function (jqXHR, textStatus, errorThrown) {
common.modalBlock(false);
common.ajaxError();
}
});
}

View File

@@ -241,6 +241,14 @@ common.dateTimePickerHour = function (id) {
format: 'HH:mm'
});
};
common.dateTimePickerByClass = function (cls, format) {
$('.' + cls).datetimepicker({
locale: 'vi',
ignoreReadonly: true,
sideBySide: true,
format: format
});
};
common.checkAll = function (id, cls) {
$('#' + id).on('ifChecked', function (event) {
$('.' + cls).iCheck('check');

File diff suppressed because one or more lines are too long