| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/cp648411/www/simded.com/include/ |
Upload File : |
$(document).ready(function() {
$('#fm_login_member').bootstrapValidator({
fields: {
email: {
validators: {
notEmpty: {
message: 'กรุณากรอกอีเมล '
}
}
},
password: {
validators: {
notEmpty: {
message: 'กรุณากรอกรหัสผ่าน '
},
stringLength: {
min: 6,
message: 'รหัสผ่าน ต้องไม่ต่ำกว่า 6 ตัวอักษร'
}
}
}
}
})
.on('success.form.bv', function(e) {
$('#fm_login_member').data('bootstrapValidator').resetForm();
e.preventDefault();
var $form = $(e.target);
var bv = $form.data('bootstrapValidator');
ck_login_member();
})
$('#fm_login_shop').bootstrapValidator({
fields: {
email: {
validators: {
notEmpty: {
message: 'กรุณากรอกอีเมล '
}
}
},
password: {
validators: {
notEmpty: {
message: 'กรุณากรอกรหัสผ่าน '
},
stringLength: {
min: 6,
message: 'รหัสผ่าน ต้องไม่ต่ำกว่า 6 ตัวอักษร'
}
}
}
}
})
.on('success.form.bv', function(e) {
$('#fm_login_shop').data('bootstrapValidator').resetForm();
e.preventDefault();
var $form = $(e.target);
var bv = $form.data('bootstrapValidator');
ck_login_shop();
})
$('#fm_login_professor').bootstrapValidator({
fields: {
email: {
validators: {
notEmpty: {
message: 'กรุณากรอกอีเมล '
}
}
},
password: {
validators: {
notEmpty: {
message: 'กรุณากรอกรหัสผ่าน '
},
stringLength: {
min: 6,
message: 'รหัสผ่าน ต้องไม่ต่ำกว่า 6 ตัวอักษร'
}
}
}
}
})
.on('success.form.bv', function(e) {
$('#fm_login_professor').data('bootstrapValidator').resetForm();
e.preventDefault();
var $form = $(e.target);
var bv = $form.data('bootstrapValidator');
ck_login_professor();
})
});
function ck_pro(id)
{
if(id==1)
{
}
else
{
$("#myModal_login_Prophet").modal('show')
}
}
function ck_login_member()
{
testHoldon('sk-rect');
$.ajax({
url: "../include/login_member.php", // Url to which the request is send
type: "POST", // Type of request to be send, called as method
data: $("#fm_login_member").serialize(),
cache: false, // To unable request pages to be cached
processData:false, // To send DOMDocument or non processed data file it is set to false
success: function(data) // A function to be called if request succeeds
{
testHoldon_cl('sk-circle');
$("#alert_login_member").html(data);
}
});
}
function ck_login_shop()
{
testHoldon('sk-rect');
$.ajax({
url: "../include/login_shop.php", // Url to which the request is send
type: "POST", // Type of request to be send, called as method
data: $("#fm_login_shop").serialize(),
cache: false, // To unable request pages to be cached
processData:false, // To send DOMDocument or non processed data file it is set to false
success: function(data) // A function to be called if request succeeds
{
testHoldon_cl('sk-circle');
$("#alert_login_shop").html(data);
}
});
}
function ck_login_professor()
{
testHoldon('sk-rect');
$.ajax({
url: "../include/login_professor.php", // Url to which the request is send
type: "POST", // Type of request to be send, called as method
data: $("#fm_login_professor").serialize(),
cache: false, // To unable request pages to be cached
processData:false, // To send DOMDocument or non processed data file it is set to false
success: function(data) // A function to be called if request succeeds
{
testHoldon_cl('sk-circle');
$("#alert_login_professor").html(data);
}
});
}