| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/khonguyenlieu.vn/public_html/webadmin/templates/js/ |
Upload File : |
function setCheckboxes(the_form, id, do_check)
{
var elts = (typeof(document.forms[the_form].elements[id]) != 'undefined')
? document.forms[the_form].elements[id]
: 0;
var elts_cnt = (typeof(elts.length) != 'undefined')
? elts.length
: 0;
if (elts_cnt) {
for (var i = 0; i < elts_cnt; i++) {
elts[i].checked = do_check;
}
} else {
elts.checked = do_check;
}
return true;
}
function check_chose(id, arid, the_form)
{
var n = $('#'+id+':checked').val();
if(n)
setCheckboxes(the_form, arid, true);
else
setCheckboxes(the_form, arid, false);
}
function verify_del()
{
return window.confirm("Bạn có muốn xóa các mục này không?\nVui lòng xác nhận.");
}
function verify_delpage()
{
return window.confirm("Bạn muốn xóa trang này?\nVui lòng xác nhận.");
}
function setCheckboxValue(id)
{
if(id.checked)
{
id.value = 1;
}else{
id.value = 0;
}
}
function set_action(form_name,action){
document.forms[form_name].action=action;
}
function verify_copy(str)
{
return window.confirm(str);
}