Reg_info.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:12k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../FS_Inc/Const.asp" -->
  3. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../FS_Inc/Function.asp" -->
  5. <!--#include file="lib/strlib.asp" -->
  6. <%
  7. User_GetParm
  8. if RegisterTF =false then
  9. strShowErr = "<li>暂时关闭注册功能</li><li>或者系统参数丢失!</li>"
  10. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="&Request.ServerVariables("URL")&"?"&request.QueryString&"")
  11. Response.end
  12. End if
  13. Dim strUserNumber
  14. strUserNumber = ""
  15. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num")  = p_LoginStyle
  16. If p_LoginStyle="" Or p_LoginStyle = 0 then
  17. response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") = "2"
  18. End if
  19. %>
  20. <html xmlns="http://www.w3.org/1999/xhtml">
  21. <title>会员注册step 2 of  4 step</title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  23. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  24. <meta name="keywords" content="风讯,风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  25. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  26. <script language="JavaScript" src="../FS_Inc/CheckJs.js" type="text/JavaScript"></script>
  27. <script language="JavaScript" src="../FS_Inc/PublicJS.js" type="text/JavaScript"></script>
  28. <script language="JavaScript" src="../FS_Inc/Prototype.js" type="text/JavaScript"></script>
  29. <head>
  30. <body>
  31. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="0">
  32.   <tr> 
  33.     <td><table width="100%" height="279" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
  34.         <tr class="back"> 
  35.           <td   colspan="2" class="xingmu" height="24">·User Register step 2.(填写会员基本资料)</td>
  36.         </tr>
  37.         <tr class="back"> 
  38.           <td width="15%" valign="top" class="hback"><strong>【注册步骤】</strong> <br>
  39.             <br>
  40.             <div align="left"> √同意注册协议<br>
  41.               <br>
  42.               →填写会员资料<br>
  43.               <br>
  44.               ×填写联系资料<br>
  45.               <br>
  46.               ×注册成功</div>
  47.             </td>
  48.           <td width="86%" valign="top" class="hback"> 
  49.               <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
  50.               <form name="UserForm"  id="UserForm" method="post" action="Reg_contact.asp"  onsubmit="return CheckForm();">
  51.                 <tr class="back"> 
  52.                   <td height="20" colspan="3" class="xingmu">请填写您的用户名<span class="tx">(以下项目必须填写)</span></td>
  53.                 </tr>
  54.                 <tr class="back"> 
  55.                   <td width="11%" height="65"> 
  56.                     <div align="right">用户名</div></td>
  57.                   <td width="37%"><input name="UserName" type="text" id="UserName" size="20"  onFocus="Do.these('UserName',function(){return isEmpty('UserName','span_UserName')})" onKeyUp="Do.these('UserName',function(){return isEmpty('UserName','span_UserName')})">
  58.                     <span id="span_UserName"></span> <a href="javascript:CheckName('lib/CheckName.asp')">检查用户名</a></td>
  59.                   <td width="52%">户名由a~z的英文字母(不区分大小写)、0~9的数字、点、减号或下划线及中文组成,长度为3~18个字符,只能以数字或字母开头和结尾,例如:coolls1980。</td>
  60.                 </tr>
  61.                 <tr class="back"> 
  62.                   <td height="16" colspan="3" class="xingmu">请填写安全设置:(安全设置用于验证帐号和找回密码)</td>
  63.                 </tr>
  64. <%If p_isValidate = 0  then%>
  65.                 <tr class="back"> 
  66.                   <td height="16"><div align="right">密码</div></td>
  67.                   <td><input name="UserPassword" type="password" id="UserPassword" size="30" maxlength="50"  onFocus="Do.these('UserPassword',function(){return isEmpty('UserPassword','span_UserPassword')})" onKeyUp="Do.these('UserPassword',function(){return isEmpty('UserPassword','span_UserPassword')})"><span id="span_UserPassword"></span></td>
  68.                   <td rowspan="2">密码长度为<%=p_LenPassworMin%>~<%=p_LenPassworMax%>位,区分字母大小写。登录密码可以由字母、数字、特殊字符组成。</td>
  69.                 </tr>
  70.                 <tr class="back"> 
  71.                   <td height="24"> <div align="right">确认密码</div></td>
  72.                   <td><input name="cUserPassword" type="password" id="cUserPassword" size="30" maxlength="50" onFocus="Do.these('cUserPassword',function(){return isEmpty('cUserPassword','span_cUserPassword')})" onKeyUp="Do.these('cUserPassword',function(){return isEmpty('cUserPassword','span_cUserPassword')})"><span id="span_cUserPassword"></span></td>
  73.                 </tr>
  74. <%End if%>
  75.                 <tr class="back"> 
  76.                   <td height="16"><div align="right">密码提示问题</div></td>
  77.                   <td><input name="PassQuestion" type="text" id="PassQuestion" size="30" maxlength="30"></td>
  78.                   <td rowspan="2">当您忘记密码时可由此找回密码。例如,问题是“我的哥哥是谁?”,答案为&quot;coolls8&quot;。问题长度不大于36个字符,一个汉字占两个字符。答案长度在6~30位之间,区分大小写。</td>
  79.                 </tr>
  80.                 <tr class="back"> 
  81.                   <td height="16"><div align="right">密码答案</div></td>
  82.                   <td><input name="PassAnswer" type="text" id="PassAnswer" size="30" maxlength="50"></td>
  83.                 </tr>
  84.                 <tr class="back"> 
  85.                   <td height="16"><div align="right">安全码</div></td>
  86.                   <td><input name="SafeCode" type="password" id="SafeCode" size="30" maxlength="30"></td>
  87.                   <td rowspan="2">全码是您找回密码的重要途径,安全码长度为6~20位,区分字母大小写,由字母、数字、特殊字符组成。<br>
  88.                     <Span class="tx">特别提醒:安全码一旦设定,将不可自行修改.</Span></td>
  89.                 </tr>
  90.                 <tr class="back"> 
  91.                   <td height="16"><div align="right">确认安全码</div></td>
  92.                   <td><input name="cSafeCode" type="password" id="cSafeCode" size="30" maxlength="30"></td>
  93.                 </tr>
  94.                 <tr class="back"> 
  95.                   <td height="16"><div align="right">电子邮件</div></td>
  96.                   <td><input name="Email" type="text" id="Email" size="30" maxlength="100" onFocus="Do.these('Email',function(){return checkMail('Email','span_Email')})" onKeyUp="Do.these('Email',function(){return checkMail('Email','span_Email')})"><span id="span_Email"></span>
  97.                     <br>
  98.                     <a href="javascript:CheckEmail('lib/Checkemail.asp')">是否被占用</a> 
  99.                   </td>
  100.                   <td>您的注册电子邮件。<Span class="tx">注册成功后,将不能修改</span></td>
  101.                 </tr>
  102.                 <tr class="back"> 
  103.                   <td height="16"><div align="right">会员类型</div></td>
  104.                   <td><select name="IsCorporation" id="IsCorporation">
  105.                       <option value="0" selected>个人会员</option>
  106.                       <option value="1">企业会员</option>
  107.                     </select>
  108.                   </td>
  109.                   <td>&nbsp;</td>
  110.                 </tr>
  111.                 <tr class="back"> 
  112.                   <td height="16"><div align="right"></div></td>
  113.                   <td>&nbsp;</td>
  114.                   <td>&nbsp;</td>
  115.                 </tr>
  116.                 <tr class="back"> 
  117.                   <td height="39" colspan="3"> <div align="center">
  118.                       <input name="SubSys" type="hidden" id="SubSys" value="<% = Request.QueryString("SubSys")%>">
  119.                       <input type="submit" name="Submit" value="保存会员基本信息" style="CURSOR:hand">
  120.                       <input class="button" onClick="javascript:location.href='../'" type="button"  style="CURSOR:hand" value="返回首页" name="Submit1" />
  121.                     </div></td>
  122.                 </tr>
  123.               </form>
  124.             </table>
  125.             </td>
  126.         </tr>
  127.         <tr class="back"> 
  128.           <td height="26"  colspan="2" class="xingmu"> <div align="left"> 
  129.               <!--#include file="Copyright.asp" -->
  130.             </div></td>
  131.         </tr>
  132.       </table></td>
  133.   </tr>
  134. </table>
  135. </body>
  136. </html>
  137. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->
  138. <script language="JavaScript" type="text/javascript">
  139. function CheckForm()
  140. {
  141. <%if p_AllowChineseName = 0 then%>
  142. if( strlen2(UserForm.UserName.value) ) {
  143. alert("您的用户名不能有非法字符,或者中文字符")
  144. UserForm.UserName.focus();
  145. return false;
  146. }
  147. <%End if%>
  148. if(document.UserForm.UserName.value=="")
  149. {
  150. alert("请输入您的用户名!");
  151. document.UserForm.UserName.focus();
  152. return false;
  153. }
  154. if(UserForm.UserName.value.length<<%=p_NumLenMin%> ) {
  155. alert("用户名至少<%=p_NumLenMin%>个字符");
  156. UserForm.UserName.focus();
  157. return false;
  158. }
  159. if(UserForm.UserName.value.length><%=p_NumLenMax%> ) {
  160. alert("用户名不能超过<%=p_NumLenMax%>个字符");
  161. UserForm.UserName.focus();
  162. return false;
  163. }
  164. <% if p_isValidate = 0 then%>
  165. if(document.UserForm.UserPassword.value == "")
  166. {
  167. alert("请输入您的密码");
  168. document.UserForm.UserPassword.focus();
  169. return false;
  170. }
  171. if(UserForm.UserPassword.value.length><%=p_LenPassworMax%> ) {
  172. alert("密码长度不能超过<%=p_LenPassworMax%>个字符");
  173. UserForm.UserPassword.focus();
  174. return false;
  175. }
  176. if(UserForm.UserPassword.value.length<<%=p_LenPassworMin%> ) {
  177. alert("密码长度不能少于<%=p_LenPassworMin%>个字符");
  178. UserForm.UserPassword.focus();
  179. return false;
  180. }
  181. if(document.UserForm.UserPassword.value !== document.UserForm.cUserPassword.value)
  182. {
  183. alert("2次密码不一致");
  184. document.UserForm.cUserPassword.focus();
  185. return false;
  186. }
  187. <%End if%>
  188. if(document.UserForm.PassQuestion.value == "")
  189. {
  190. alert("请输入您的密码提示问题");
  191. document.UserForm.PassQuestion.focus();
  192. return false;
  193. }
  194. if(UserForm.PassQuestion.value.length>36 ) {
  195. alert("密码提示问题长度不能超过36个字符");
  196. UserForm.PassQuestion.focus();
  197. return false;
  198. }
  199. if(document.UserForm.PassAnswer.value == "")
  200. {
  201. alert("请输入您的密码答案");
  202. document.UserForm.PassAnswer.focus();
  203. return false;
  204. }
  205. if(document.UserForm.SafeCode.value == "")
  206. {
  207. alert("请输入您的安全码");
  208. document.UserForm.SafeCode.focus();
  209. return false;
  210. }
  211. if(document.UserForm.UserPassword.value == document.UserForm.SafeCode.value)
  212. {
  213. alert("密码不能和安全码相同");
  214. document.UserForm.SafeCode.focus();
  215. return false;
  216. }
  217. if(document.UserForm.SafeCode.value != document.UserForm.cSafeCode.value)
  218. {
  219. alert("2次安全码不一致");
  220. document.UserForm.cSafeCode.focus();
  221. return false;
  222. }
  223. if(UserForm.SafeCode.value.length>20 ) {
  224. alert("安全码长度不能超过20个字符");
  225. UserForm.SafeCode.focus();
  226. return false;
  227. }
  228. if(UserForm.SafeCode.value.length<6 ) {
  229. alert("安全码长度不能少于6个字符");
  230. UserForm.SafeCode.focus();
  231. return false;
  232. }
  233. if(UserForm.Email.value.length<8 || UserForm.Email.value.length>64) {
  234. alert("请您输入正确的邮箱地址!");
  235. UserForm.Email.focus();
  236. return false;
  237. }
  238. if(document.UserForm.IsCorporation.value == "")
  239. {
  240. alert("请选择您的会员类型");
  241. document.UserForm.IsCorporation.focus();
  242. return false;
  243. }
  244. <%if p_AllowChineseName = 0 then%>
  245. function strlen2(str){
  246. var len;
  247. var i;
  248. len = 0;
  249. for (i=0;i<str.length;i++){
  250. if (str.charCodeAt(i)>255) return true;
  251. }
  252. return false;
  253. }
  254. function isSsnString (ssn)
  255. {
  256. var re=/^[0-9a-z][w-.]*[0-9a-z]$/i;
  257. if(re.test(ssn))
  258. return true;
  259. else
  260. return false;
  261. }
  262. <%End if%>
  263. }
  264. function CheckName(gotoURL) {
  265.    var ssn=UserForm.UserName.value.toLowerCase();
  266.    var open_url = gotoURL + "?Username=" + ssn;
  267.    window.open(open_url,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=150,height=80');
  268. }
  269. function CheckEmail(gotoURL) {
  270.    var ssn1=UserForm.Email.value.toLowerCase();
  271.    var open_url = gotoURL + "?email=" + ssn1;
  272.    window.open(open_url,'','status=0,directories=0,resizable=0,toolbar=0,location=0,scrollbars=0,width=150,height=80');
  273. }
  274. </script>