成都护理专业网
位置:首页 > 卫校资讯 > 四川护理职业学院
$(".submit").click(function(){ var shopid = 128; var shopname = "四川护理职业学院"; var xueli = $("#xueli").val(); var xinming = $("#xinming").val(); var dianhua = $("#dianhua").val(); var zhuanye = $("#zhuanye").val(); var qq = "0"; var huji = $("#huji").val(); var bz = "无"; ToSignUp(xueli,xinming,dianhua,zhuanye,qq,huji,shopid,shopname,bz); }); $(".submit1").click(function(){ var shopid = 128; var shopname = "四川护理职业学院-下方全局入口"; var xueli = "无"; var xinming = $("#b_name").val(); var dianhua = $("#b_tel").val(); var zhuanye = "无"; var qq = "0"; var huji = "无"; var bz = "无"; ToSignUp(xueli,xinming,dianhua,zhuanye,qq,huji,shopid,shopname,bz); }); function ToSignUp(xueli,xinming,dianhua,zhuanye,qq,huji,shopid,shopname,bz) { var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(19[0-9]{1}))+\d{8})$/; if (xinming == "") {alert("请输入姓名");return false;} if (dianhua == "") {alert("请输入电话");return false;} if (!myreg.test(dianhua)){alert("手机号有误");return false;} if (xueli == 0) {alert("请选择学历");return false;} if (zhuanye == "") {alert("请输入专业");return false;} if (qq == "") {alert("请填写QQ");return false;} if (huji == "") {alert("请填写户籍");return false;} if (shopname == 0) {alert("请选择学校");return false;} var AjaxVal={ At:"signup", shopid:encodeURIComponent(shopid), shopname:encodeURIComponent(shopname), xueli:encodeURIComponent(xueli), xinming:encodeURIComponent(xinming), dianhua:encodeURIComponent(dianhua), zhuanye:encodeURIComponent(zhuanye), qq:encodeURIComponent(qq), huji:encodeURIComponent(huji), bz:encodeURIComponent(bz) }; $.post("/ajax.php?vv="+new Date()+"",AjaxVal,function(result){ alert(result); $("#xueli").val(0);$("#xinming").val("");$("#dianhua").val("");$("#zhuanye").val("");$("#qq").val("");$("#huji").val("");$("#shopname").val("");$("#bz").val(""); $("#xueli2").val(0);$("#xinming2").val("");$("#dianhua2").val("");$("#zhuanye2").val("");$("#qq2").val("");$("#huji2").val("");$("#shopname2").val("");$("#bz2").val(""); $("#b_name").val("");$("#b_tel").val(""); }); }