注册帐号
只要拥有一个账号,你就可以在任何地方使用您的个性化桌面
用户名
电子邮件地址
密码
再次输入密码
$("#formButtonRegister").click(function() { loginRegister(); }); $("#name").focus(); $("#login_register_form").submit(function() { $(".button").hide(); $(".post_indicator").show(); $(this).ajaxSubmit( { url: '/window/login_register.php?ac={$_SCONFIG[register_action]}&locale=' + LOCALE + '&language=' + LANGUAGE, timeout: 60000, type: 'post', beforeSubmit: function(formData, jqForm, options) { if ($('input[@name=name]').fieldValue() == '' || $('input[@name=userpass2]').fieldValue() == '' || $('input[@name=email]').fieldValue() == '' || $('input[@name=userpass]').fieldValue() == '') { showAlert({ content: '请填写全部内容' }); $(".post_indicator").hide(); $(".button").show(); return false; } apos = $('input[@name=email]').val().indexOf("@"); dotpos = $('input[@name=email]').val().lastIndexOf("."); if (1>apos||2>dotpos-apos) { $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '无效的电子邮件地址' }); return false; } else { return true; } } }); return false; }); showAlert({ content: '该用户已经注册了' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '两次输入的密码不一致' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '密码空或包含非法字符,请返回重新填写' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '用户名不合法' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '用户名包含不允许注册的词语' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '用户名已经存在' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: 'Email 格式有误' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: 'Email 不允许注册' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: 'Email 已经被注册' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '注册失败' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '系统错误,未找到UCenter Client文件' }); $(".post_indicator").hide(); $(".button").show(); showAlert({ content: '注册成功,你已经登入' }); window.setTimeout(top.location.href = '/index.php',60000);