ๆ
ไพฃๆๆ
๐ๅบ็ฐ้ฎ้ข
็ผ่งฃ็ดงๅผ ็ๅฟ็ๆ็คบๆนๆณ
ๆๆบ ๐คฏๆต ๐ๅๅถๆๅๅจๆ
ๆๆ้ๆ
็ปช
่ไธ้ๅพท็ ๐ๅ่จ
ๆบๅ้็ขๅฟ ๐็ซฅๆ่ฒ็ๆไน
็ทไบบ็ช็ถๅท่ฝไฝ ็ๅๅ
ๆ่ฆ็ๅฟ็ๆต่ฏ
่พน้
ๆ็จ้ๅข็ไพๅญ
้็ๅฅณๅๅคฉ่็ท่ฐๅๅฎณ
EqpmeJwo
RBltfxEJ
brOobd
GPSTTN
fydYQln
ๅผๅธธๅฟ็็ ๐ฐ็ฑปๅซ
้้ขๅๅ่ธ้ๅ็ๅๅ
่ฐๆ็ฑ็่ๅคฉ่ฏ้ข ๆ่ฟๅ
ณ็ณป
็ๆฅ้ไปไน่ฑ็ป้บ่
๏ปฟfunction UserLogin(callback) {
VerifyFormData({ el: '.userlogn_from' }, function (postdata, extdata) {
var dict = new Ajax.Web.Dictionary("Dictionary");
dict = JsonToDict(postdata);
$("input[role='userloginbtn']").val(rclng.loading).attr("disabled", true);
Web960.Web.index.RegUserLogin(dict, function (res) {
AjaxReturn(res, function () {
var rv = res.value;
if (rv.Status == "1") {
if (callback != undefined) {
callback(rv.StrResult);
}
else {
location.href = rv.StrResult;
}
}
else {
$("input[role='userloginbtn']").val(rclng.login).attr("disabled", false);
$(".userlogin_verifycodedl").show();
alert(rv.ClientMsg);
//็ปๅฝๅคฑ่ดฅๅทๆฐ้ช่ฏ็
if ($("#userloginvimgbox img").length>0) {
var o = $("#userloginvimgbox img");
ReFreashVerifyImg(o);
}
}
});
});
});
}
function initUserLoginForm(callback) {
ViewVerifyImage({
el: "#userloginvimgbox",
ref_el: "#userlogin_verifycode",
verifytype: "userlogin"
});
InitFormVerify({ el: ".userlogn_from" });
if ($("input[data-ref='autologin']").is(":checked")) {
setTimeout(function () {
UserLogin(callback);
}, 1000);
}
$("#UserLogin_btn").unbind().on('click', function () {
UserLogin(callback);
});
}
function CheckUserLogin(callback)
{
Web960.Web.index.CheckRegUserLogin(function (ret) {
AjaxReturn(ret, function () {
var rc = ret.value;
callback(rc.Status, rc.StrResult, rc.ClientMsg);
});
});
}
function ShowLoginDialog(cfg)
{
if ($("#RegUserLoginBox").length == 0) {
$("body").append('');
$("#RegUserLoginBox").html(rclng.loading);
$("#RegUserLoginBox").load( "/index.aspx", { a: 'loginformhtml'}, function () {
initUserLoginForm(cfg.loginedcallback);
ShowLoginDialog();
});
}
else {
OpenDialog({ el: "#RegUserLoginBox", width: 500, title: rclng.plugin_membership_logindialogtitle });
}
}
function ShowUserRegDialog(cfg)
{
if ($("#RegUserRegBox").length == 0) {
$("body").append('');
$("#RegUserRegBox").html('');
ShowUserRegDialog(cfg);
}
else {
OpenDialog({ el: "#RegUserRegBox", width: 550, title: rclng.register });
}
}
function GotoUserReg(regurl) {
if (typeof(MembershipCustomCfg)!="undefined"&&MembershipCustomCfg.gotouserreg != undefined) {
MembershipCustomCfg.gotouserreg(regurl);
}
else {
location.href = regurl;
}
}
function CloseLoginDialog()
{
CloseDialog("#RegUserLoginBox");
}
function CloseUserRegDialog()
{
CloseDialog("#RegUserRegBox");
}
function CheckRequiredInfo()
{
if ($(".requirefill").length > 0)
{
$(".requirefill").each(function () {
$(this).qtip({
show: true,
content: {
text: "" + GetLangTxt(rclng.plugin_membership_requiredfillnav, [{ title: "title", text: $(this).html() }])
},
position: {
my: 'left top',
at: 'top right'
},
style: {
classes: 'qtip-red qtip-shadow'
}
});
});
}
}