⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 if_1.asp

📁 矮子多用户版客户管理系统2.0Bate2
💻 ASP
字号:
<!--#include file="conn.asp" --> 
<%
if session("name")="" or session("dd")="" then
response.write "SORRY <br>"
response.write "数据在携带中出现意外!<br>"
response.write "<a href=login.asp>回去重来</a>"
response.end
end if
dim rs,sql
sql="select * from mclass  where mclass_id="&session("mclass")&"" 
set rs=server.createobject("adodb.recordset")
rs.Open sql,conn,1,3
if not rs.EOF then
%>
<html>
<head>
<title>初次登录 - 填写我的个人资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body,table {font-size: 9pt; font-family: 宋体}
input {  font-size: 9pt; color: #000000;  padding-top: 3px}
.c {  font-family: 宋体; font-size: 9pt; font-style: normal; line-height: 12pt; font-weight: normal; font-variant: normal; text-decoration: none}
--></style>
</head>
<script Language="JavaScript">
<!--
function Form1_Validator(theForm)
{ 



  if (theForm.rq.value == "")
  {
    alert("用户密码提示必须填写!");
    theForm.rq.focus();
    return (false);
  }
 if (theForm.pass.value == "")
  {
    alert("用户密码必须填写!");
    theForm.pass.focus();
    return (false);
  }
 
 if (theForm.rpass.value == "")
  {
    alert("用户密码必须填写!");
    theForm.rpass.focus();
    return (false);
  }
  
    if (theForm.aq.value == "")
  {
    alert("用户密码提示答案必须填写!");
    theForm.aq.focus();
    return (false);
  }

  
   if (theForm.waifenye.value.length <1)
  {
    alert("分页设置不得为空!");
    theForm.waifenye.focus();
    return (false);
  }
  if (theForm.fenye.value.length <1)
  {
    alert("分页设置不得为空!");
    theForm.fenye.focus();
    return (false);
  }
   if (theForm.fenye.value == "0")
  {
    alert("分页设置不得为“0”!");
    theForm.fenye.focus();
    return (false);
  }
   if (theForm.waifenye.value == "0")
  {
    alert("分页设置不得为“0”!");
    theForm.waifenye.focus();
    return (false);
  }
  
 

  
  { 
var txt = theForm.fenye.value; 

if(checknumber(txt)) 
{ 
alert("分页只允许输入数字!"); 
return false; 
} 

var txt2 = theForm.waifenye.value; 
if(checknumber(txt2)) 
{ 
alert("分页只允许输入数字!"); 
return false; 
} 

return true; 
} 




function checknumber(String) 
{ 
var Letters = "1234567890"; 
var i; 
var c; 
for( i = 0; i < String.length; i ++ ) 
{ 
c = String.charAt( i ); 
if (Letters.indexOf( c ) ==-1) 
{ 
return true; 
} 


} 
return false; 
} 




  
    return (true);
}
//-->
</script>
<body text="#000000" link="#000080" alink="#800000" vlink="#000080" topmargin="0" leftmargin="0">



<br>

<div align="center">
   <table border="0" width="514" id="table1" cellspacing="0" cellpadding="0">
		<tr>
			<td style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%"> </td>
		</tr>
		<tr>
			<td style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%">
			<a href="system_userlist.asp?mclass=<%=session("dd")%>">
			<span style="text-decoration: none"><font color="#000000">初次登录</font></span></a> 
			<%if session("mclass")=session("dd") then %> (如果您已经填写完整,请直接点击“下一步”)<%end if%></td>
		</tr>
		<tr>
			<td style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%">
			 </td>
		</tr>
		<tr>
			<td style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%">
			
			<font color="#CC0000">您好!<%=session("name")%>,欢迎您使用本系统!为了您账号的安全、全面,请确认以下资料:</font></td>
		</tr>
		</table>
    </div>
<form action="if_1_2.asp" method="POST"onsubmit="return Form1_Validator(this)">
  <ul>
    <div align="center">
      <center>
    <table border="0" cellspacing="1" cellpadding="0" width="554" height="1" bgcolor="#DADADA">
      <%if session("mclass")=session("dd") then %><tr>
 <td height="25" bgcolor="#EBEBEB" colspan="2">    
   &nbsp;系统资料(必填内容)</td>
 		</tr>
    
      <tr>
 <td height="25" bgcolor="#EBEBEB" width="143">    
   <p align="right">系统<font size="2" class="c">名称&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">    
   &nbsp;<input type="text" name="mclass_folder" size="27" maxlength="27"  value="<%=rs("mclass_folder")%>"></td>
 		</tr><%end if%>
    
      <tr>
 <td height="25" bgcolor="#EBEBEB" colspan="2">    
   &nbsp;基本资料(必填内容)</td>
 		</tr>
    
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">
   <p align="right"><font size="2" class="c">用 户 名&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   <input type=hidden name=mclass size=16 maxlength="12" value=<%=request("mclass")%>>&nbsp;<%=session("name")%></td>
      </tr>
        <%if session("mclass")=session("dd") then %> 
    <%else%>
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right"><font size="2" class="c">管理密码&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input type="password" name="pass" size="13" maxlength="10"><font size="2" class="c"  value=<%=rs("pass")%>><font color="#CC0000">
   </font></font>
 <font size="2" class="c"><font color="#CC0000">**</font></font>请务将您的初始密码在这里进行更改</td>
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right"><font size="2" class="c">密码确认&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input type="password" name="rpass" size="13" maxlength="10"><font size="2" class="c"><font color="#CC0000"> **</font>请再次确认您更改后的密码</font></td>
      </tr><%end if%>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">密码提示&nbsp; </p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input type="text" name="rq" size="27" maxlength="27"  value=<%=rs("rq")%>>
 <font size="2" class="c"><font color="#CC0000">**</font></font>(它将保护您的账号,如:我是谁?) </td>
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">     
   <p align="right">提示答案&nbsp; </p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input type="text" name="aq" size="27" maxlength="27" value=<%=rs("aq")%>><font size="2" class="c"><font color="#CC0000"> **</font></font>(它是您问题的答案
	,如:我是我) </td>
      </tr>
		<tr>
 <td height="25" bgcolor="#EBEBEB" colspan="2">  
   &nbsp;详细资料(非必填内容)</td>
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">  
   <p align="right">真实姓名&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="ming" size="27" maxlength="100"  value="<%if rs("ming")="未填" then 
   response.write "" 
   else 
   response.write rs("ming")
   
   end if%>"><font color="#CC0000"> </font> </td>    
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">  
   <p align="right">性&nbsp; &nbsp; 别&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408"><%

		if rs("sex") ="0" then
		response.write"<input type=radio value=0 name=sex checked>男"
		response.write"<input type=radio value=1 name=sex >女"
		else
        response.write"<input type=radio value=0 name=sex >男"
		response.write"<input type=radio value=1 name=sex checked>女"
		end if
		
		
		
	
		%>
</td>    
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">  
   <p align="right"><font size="2" class="c">我的公司&nbsp; </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="url" size="27" maxlength="100"  value="<%if rs("url")="未填" then 
   response.write "" 
   else 
   response.write rs("url")
   
   end if%>"></td>    
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">我的部门&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="bumen" size="27" maxlength="100" value="<%if rs("bumen")="未填" then 
   response.write "" 
   else 
   response.write rs("bumen")
   
   end if%>"></td>
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">我的职务&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="zhiwu" size="27" maxlength="100" value="<%if rs("zhiwu")="未填" then 
   response.write "" 
   else 
   response.write rs("zhiwu")
   
   end if%>"></td>
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">我的电话&nbsp; </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="phone" size="27" maxlength="100" value="<%if rs("phone")="未填" then 
   response.write "" 
   else 
   response.write rs("phone")
   
   end if%>"></td>
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">我的手机&nbsp;    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="mobile" size="27" maxlength="100" value="<%if rs("mobile")="未填" then 
   response.write "" 
   else 
   response.write rs("mobile")
   
   end if%>"></td>
      </tr>
      <tr> 
 <td width="143" height="25" bgcolor="#EBEBEB">     
   <p align="right">电子<font size="2" class="c">邮件&nbsp; 
   </font></p>    
 </td>
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input maxlength="50" name="email" size="27"  value="<%if rs("email")="未填" then 
   response.write "" 
   else 
   response.write rs("email")
   
   end if%>"><font size="2" class="c"><font color="#CC0000"> </font>
   </font>如:cgamez@163.com</td>
      </tr>
      <tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">个人<font size="2" class="c">简介&nbsp; </font></p>   
 </td>     
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<textarea rows="3" name="show" cols="40"><%if rs("show")="未填" then 
   response.write "" 
   else 
   response.write rs("show")
   
   end if%></textarea></td>    
      </tr>
		<tr>
 <td height="25" bgcolor="#EBEBEB" colspan="2">    
   &nbsp;其他信息(设置信息)</td>     
 		</tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">外页分页显示数&nbsp; </td>     
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="waifenye" size="27" maxlength="100" value="<%=rs("waifenye")%>"> 外页每页显示内容条数</td>    
      </tr>
		<tr>
 <td width="143" height="25" bgcolor="#EBEBEB">    
   <p align="right">内页分页显示数&nbsp;   
 </td>     
 <td height="25" bgcolor="#FFFFFF" width="408">
   &nbsp;<input name="fenye" size="27" maxlength="100" value="<%=rs("fenye")%>"> 
	内页每页显示内容条数</td>    
      </tr>
      </table>   
    <br>

    <br>

    <font size="3" class="c" color="#000000">     
      <input type="submit" name="Submit" value="下一步">&nbsp;&nbsp;&nbsp; 
      <input type="reset" name="Reset" value="取消">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
   </font>
      </center>
    </div>
  </ul>
  <p align="center">     

 <font size="3" class="c" color="#000000">     
      <input type="HIDDEN" name="action" value="RegSubmit"></font>
</form>
</body>
</html>
<%end if%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -