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

📄 modify.asp

📁 一个非常漂亮的ASP代码编写的单班级网站。管理员和密码均是 admin
💻 ASP
📖 第 1 页 / 共 3 页
字号:
if (truename.length<1)
{
alert("姓名不能为空!")
reg.truename.focus()
flag=false
return
}

if (!chkemail(email))
{
alert("电子邮件输入有误!") 
reg.email.focus()
flag=false 
return 
}

if (zipcode.length!=6)
{
alert ("邮编输入有误!") 
reg.zipcode.focus()
flag=false 
return 
}

if (!fucCheckNUM(zipcode))
{
alert("邮编输入有误!") 
reg.zipcode.focus()
flag=false 
return 
}

if (address=="")
{
alert ("通讯地址不能为空!") 
reg.address.focus()
flag=false 
return 
}

if (forq=="")
{
alert ("提示问题不能为空!")
reg.forq.focus()
flag=false
return
}

if (foran=="")
{
alert ("答案不能为空!") 
reg.foran.focus()
flag=false 
return 
}
return true
}
</script>
<body background="images/bg20.jpg" leftmargin="0" topmargin="0" onLoad="MM_preloadImages('img/images/dao_r1_c1_f3.gif','img/images/dao_r1_c1_f2.gif','img/images/dao_r1_c2_f3.gif','img/images/dao_r1_c2_f2.gif','img/images/dao_r1_c4_f3.gif','img/images/dao_r1_c4_f2.gif','img/images/dao_r1_c6_f3.gif','img/images/dao_r1_c6_f2.gif','img/images/dao_r1_c8_f3.gif','img/images/dao_r1_c8_f2.gif','img/images/dao_r1_c10_f3.gif','img/images/dao_r1_c10_f2.gif','img/images/dao_r1_c12_f3.gif','img/images/dao_r1_c12_f2.gif','img/images/dao_r1_c14_f3.gif','img/images/dao_r1_c14_f2.gif','img/images/dao_r1_c17_f3.gif','img/images/dao_r1_c17_f2.gif')">
<script language="VBScript" src="jscs/LOAD.JS"></script>
<table width="774" border="0" align="center" cellpadding="0" cellspacing="0">
  <!-- fwtable fwsrc="txl2.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
  <tr> 
    <td><img src="images/spacer.gif" width="60" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="98" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="28" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="5" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="38" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="94" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="97" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="105" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="103" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="101" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="15" height="1" border="0" alt=""></td>
    <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>
  <tr> 
    <td colspan="5"><img name="index_r2_c2" src="images/index_r2_c2.gif" width="207" height="77" border="0" alt=""></td>
    <td colspan="7"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="564" height="77">
        <param name="movie" value="images/banner.swf">
        <param name="quality" value="high">
        <embed src="images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="564" height="77"></embed></object></td>
    <td><img src="images/spacer.gif" width="1" height="77" border="0" alt=""></td>
  </tr>
  <tr> 
    <td colspan="12"><table border="0" cellpadding="0" cellspacing="0">
        <!-- fwtable fwsrc="导航栏.png" fwbase="dao.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
        <tr> 
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="84" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="12" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="73" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="74" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="74" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="74" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="74" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="74" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="74" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="11" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="85" height="1" border="0"></td>
          <td><img src="img/images/spacer.gif" alt="" name="undefined_2" width="1" height="1" border="0"></td>
        </tr>
        <tr> 
          <td><a href="index.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c1','img/images/dao_r1_c1_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c1','img/images/dao_r1_c1_f2.gif','img/images/dao_r1_c1_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c1" src="img/images/dao_r1_c1.gif" width="84" height="31" border="0" alt="班级首页"></a></td>
          <td colspan="2"><a href="int.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c2','img/images/dao_r1_c2_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c2','img/images/dao_r1_c2_f2.gif','img/images/dao_r1_c2_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c2" src="img/images/dao_r1_c2.gif" width="85" height="31" border="0" alt="班级简介"></a></td>
          <td colspan="2"><a href="modify.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c4','img/images/dao_r1_c4_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c4','img/images/dao_r1_c4_f2.gif','img/images/dao_r1_c4_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c4" src="img/images/dao_r1_c4.gif" width="85" height="31" border="0" alt="资料修改"></a></td>
          <td colspan="2"><a href="note.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c6','img/images/dao_r1_c6_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c6','img/images/dao_r1_c6_f2.gif','img/images/dao_r1_c6_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c6" src="img/images/dao_r1_c6.gif" width="85" height="31" border="0" alt="班级留言"></a></td>
          <td colspan="2"><a href="card.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c8','img/images/dao_r1_c8_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c8','img/images/dao_r1_c8_f2.gif','img/images/dao_r1_c8_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c8" src="img/images/dao_r1_c8.gif" width="85" height="31" border="0" alt="同学名片"></a></td>
          <td colspan="2"><a href="showpic.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c10','img/images/dao_r1_c10_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c10','img/images/dao_r1_c10_f2.gif','img/images/dao_r1_c10_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c10" src="img/images/dao_r1_c10.gif" width="85" height="31" border="0" alt="班级像册"></a></td>
          <td colspan="2"><a href="guest.asp" onClick="MM_nbGroup('down','navbar1','dao_r1_c12','img/images/dao_r1_c12_f3.gif',1);" onMouseOver="MM_nbGroup('over','dao_r1_c12','img/images/dao_r1_c12_f2.gif','img/images/dao_r1_c12_f3.gif',1);" onMouseOut="MM_nbGroup('out');"><img name="dao_r1_c12" src="img/images/dao_r1_c12.gif" width="85" height="31" border="0" alt="个人留言"></a></td>
          <td colspan="3"><a href="lt/index.asp" target="_blank" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','dao_r1_c14','img/images/dao_r1_c14_f2.gif','img/images/dao_r1_c14_f3.gif',1);" onClick="MM_nbGroup('down','navbar1','dao_r1_c14','img/images/dao_r1_c14_f3.gif',1);"><img name="dao_r1_c14" src="img/images/dao_r1_c14.gif" width="96" height="31" border="0" alt="班级论坛"></a></td>
          <td><a href="flash/xinshang.htm" target="_blank" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','dao_r1_c17','img/images/dao_r1_c17_f2.gif','img/images/dao_r1_c17_f3.gif',1);" onClick="MM_nbGroup('down','navbar1','dao_r1_c17','img/images/dao_r1_c17_f3.gif',1);"><img name="dao_r1_c17" src="img/images/dao_r1_c17.gif" width="85" height="31" border="0" alt="娱乐欣赏"></a></td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
    <td><img src="images/spacer.gif" width="1" height="9" border="0" alt=""></td>
  </tr>
  <tr> 
    <td colspan="12"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="773" height="200">
        <param name="movie" value="images/benner.swf">
        <param name="quality" value="high">
        <embed src="images/benner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="773" height="200"></embed></object></td>
    <td><img src="images/spacer.gif" width="1" height="202" border="0" alt=""></td>
  </tr>
  <tr> 
    <td colspan="3" valign="top" bgcolor="#FFFFFF" class="unnamed1"><table width="100%" height="97" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" class="unnamed1" id="AutoNumber2" style="border-collapse: collapse">
        <tr class="unnamed1"> 
          <td width="58%" height="17"><div align="right"></div></td>
          <td width="42%" height="17"><font color="#FF0000">&nbsp; </font></td>
        </tr>
        <tr class="unnamed1"> 
          <td width="58%" height="16"><div align="right">名片总数:</div></td>
          <td width="42%" height="16"><font color="#FF0000"> 
            <%set rs=Server.CreateObject ("ADODB.RecordSet")
		sql="select id from txluser"
		rs.open sql,conn,1,1
		i=0
		while not rs.eof
		i=i+1
		rs.Movenext
		wend
		rs.close
		set rs=nothing%>
            <%=i%></font> 张</td>
        </tr>
        <tr class="unnamed1"> 
          <td width="58%" height="16"><div align="right"></div></td>
          <td width="42%" height="16">&nbsp;</td>
        </tr>
        <tr class="unnamed1"> 
          <td height="16"><div align="right">帅哥名片:</div></td>
          <td height="16"><font color="#FF0000"> 
            <%set rs=Server.CreateObject ("ADODB.RecordSet")
		sql="select id from txluser where sex='男'"
		rs.open sql,conn,1,1
		j=0
		while not rs.eof
		j=j+1
		rs.Movenext
		wend
		rs.close
		set rs=nothing%>
            <%=j%></font> 张</td>
        </tr>
        <tr class="unnamed1"> 
          <td height="16"><div align="right"></div></td>
          <td height="16">&nbsp;</td>
        </tr>
        <tr class="unnamed1"> 
          <td height="16"><div align="right">美女名片:</div></td>
          <td height="16"><font color="#FF0000"><%=i-j%></font> 张</td>
        </tr>
      </table></td>
    <td valign="top" background="images/index_r7_c5.gif"><img name="index_r7_c5" src="images/index_r7_c5.gif" width="5" height="553" border="0" alt=""></td>
    <td colspan="8" valign="top" bgcolor="#FFFFFF" class="unnamed1"><table width="100%" border="0" class="unnamed1">
        <tr> 
          <td><span lang="zh-cn">当前位置:资料修改</span></td>
        </tr>
        <tr> 
          <td> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="2" class="unnamed1">
              <form name="reg" method="post" action="regpost.asp" onsubmit="return flag">
                <tr> 
                  <td colspan="4" height="30"> <div align="center"><font color="#339966"><b>个人信息</b></font></div></td>
                </tr>
                <tr> 
                  <td width="11%" height="30"> </td>
                  <td width="19%" height="30">同学ID</td>
                  <td width="3%" height="30"><font color="#FF0000">**</font></td>
                  <td width="67%" height="30"><font color="red"><%=userid%></font> </td>
                </tr>
                <tr> 
                  <td width="11%" height="30"> </td>
                  <td width="19%" height="30">密码</td>
                  <td width="3%" height="30"><font color="#FF0000">**</font></td>
                  <td width="67%" height="30"> <input type="password" name="password" maxlength="20" value="<%=password%>" size="20">
                    (不超过20个字符) </td>
                </tr>
                <tr> 
                  <td width="11%" height="30"> </td>
                  <td width="19%" height="30">姓名</td>
                  <td width="3%" height="30"><font color="#FF0000">**</font></td>
                  <td width="67%" height="30"> <input type="text" name="truename" maxlength="50" value="<%=truename%>" size="20">
                    (你的真实姓名) </td>
                </tr>
                <tr> 
                  <td width="11%" height="30"> </td>
                  <td width="19%" height="30">性别</td>
                  <td width="3%" height="30"><font color="#FF0000">**</font></td>
                  <td width="67%" height="30"> <%if sex="男" then%> <input type="radio" name="sex" value="男" checked>
                    <input type="radio" name="sex" value="女">
                    女 </td>
                  <%else%>
                  <input type="radio" name="sex" value="男">
                  <input type="radio" name="sex" value="女" checked>
                  <%end if%>
                </tr>
                <tr> 
                  <td width="11%" height="30"> </td>
                  <td width="19%" height="30">生肖</td>
                  <td width="3%" height="30"><font color="#FF0000">**</font></td>
                  <td width="67%" height="30"> <select name="snxiao">
                      <%dim a(11)
						a(0)="鼠"
						a(1)="牛"
						a(2)="虎"
						a(3)="兔"
						a(4)="龙"
						a(5)="蛇"
						a(6)="马"
						a(7)="羊"
						a(8)="猴"
						a(9)="鸡"
						a(10)="狗"
						a(11)="猪"
					for i=0 to 11
					if a(i)=snxiao then
					response.write "<option value="&a(i)&" selected>"&a(i)&"</option>"
					else
					response.write "<option value="&a(i)&">"&a(i)&"</option>"
                    end if
					next
					%>
                    </select></td>
                </tr>
                <tr> 
                  <td width="11%" height="30"> </td>
                  <td width="19%" height="30">血型</td>
                  <td width="3%" height="30"><font color="#FF0000">**</font></td>
                  <td width="67%" height="30"> <select name="blood">
                      <option value="A型" <%if blood="A型" then response.write" selected"%>>A型</option>
                      <option value="B型" <%if blood="B型" then response.write" selected"%>>B型</option>
                      <option value="AB型" <%if blood="AB型" then response.write" selected"%>>AB型</option>
                      <option value="O型" <%if blood="O型" then response.write" selected"%>>O型</option>
                      <option value="不懂" <%if blood="不懂" then response.write" selected"%>>不懂</option>
                    </select></td>
                </tr>
                <tr> 

⌨️ 快捷键说明

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