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

📄 user_reg_modi.asp

📁 树型ASP论坛下载
💻 ASP
📖 第 1 页 / 共 2 页
字号:
}
function underline() {
if (helpstat) {
alert("下划线标签\n将指定文字加上下划线\n用法: [u]需加上下划线的文本[/u]");
} else if (basic) {
AddTxt="[u][/u]";
AddText(AddTxt);
} else {
txt=prompt("输入需加上下划线的文本","输入需加上下划线的文本");     
if (txt!=null) {
AddTxt="[u]"+txt;
AddText(AddTxt);
AddTxt="[/u]";
AddText(AddTxt);
}
}
}
function ytext() {
var txt  = prompt("设置文字的背景色和颜色.用法: [SPAN=背景色, 颜色]要产生效果的文字[/SPAN]\n输入要设置的文字", "效果文字");
var bcol   = prompt("设置文字的背景色和颜色.用法: [SPAN=背景色, 颜色]要产生效果的文字[/SPAN]\n请先设置背景色", "Yellow");
var col   = prompt("设置文字的背景色和颜色.用法: [SPAN=背景色, 颜色]要产生效果的文字[/SPAN]\n请再设置文字的颜色", "red");
AddTxt = "[span="+bcol+","+col+"]"+txt
AddText(AddTxt);
AddTxt="[/span]";
AddText(AddTxt);
}
function yglow() {
var FoundErrors = '';
var enterURL   = prompt("使文字产生光晕效果.用法: [GLOW=宽度, 颜色, 边界]要产生光晕效果的文字[/GLOW]", "光晕文字");
var enterCOL   = prompt("使文字产生光晕效果.用法: [GLOW=宽度, 颜色, 边界]要产生光晕效果的文字[/GLOW]", "100,red,2");
if (!enterURL||!enterCOL)    {
FoundErrors += "\n" + "您必须输入各项参数!";
}
if (FoundErrors)  {
alert("错误!"+FoundErrors);
return;
}
AddTxt = "[glow="+enterCOL+"]"+enterURL
AddText(AddTxt);
AddTxt="[/glow]";
AddText(AddTxt);
}

</script>
<link href="bbs.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0">
<!--#include file="opendb.asp" -->
<%set rs=server.createobject("ADODB.Recordset")
sqlstr="select * from users where nickname='"&session("nickname")&"'"
rs.open sqlstr,conn,1,3
'if rs.recordcount>0 then%>
<table width="100%" border="0">
  <tr> 
    <td align="center" class="px14">&nbsp;</td>
  </tr>
  <tr> 
    <td><table width="760" border="0" align="center" bgcolor="#f0f0f0">
        <tr> 
          <td align="center" bgcolor="#0065CA" class="px14"><font color="#FFFFFF">修改资料</font></td>
        </tr>
      </table>
      
    </td>
  </tr>
  <form name="form1" method="post" action="user_reg_modi_write.asp" onsubmit="return validata_form()">
  <tr>
    <td align="center"><table width="760" border="1" align="center" cellspacing="0" bordercolorlight="#666666" bordercolordark="#FFFFFF">
          <tr> 
            <td width="30%" align="right" bgcolor="#BBDDFF">用户名</td>
            <td width="70%" bgcolor="#f0f0f0"><input name="nickname" type="text" class="input" title="例如:myname" value="<%=rs("nickname")%>" maxlength="20">
              3-20位字母或数字<font color="#FF0000"> * </font></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">真实姓名</td>
            <td bgcolor="#f0f0f0"> <input name="truename" type="text" class="input" value="<%=rs("truename")%>" maxlength="20"></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">性别</td>
            <td bgcolor="#f0f0f0"> <input id="radio" type="radio" name="sex" value="1" <%if rs("sex")=true then%>checked<%end if%>>
              <input id="radio2" type="radio" name="sex" value="0" <%if rs("sex")=false then%>checked<%end if%>>
              女 <font color="#FF0000">* </font></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">生日</td>
            <td bgcolor="#f0f0f0"><input name="birthday_yyyy" type="text" class="input" style="width:50px;" title="例如:1970" value="<%=year(rs("birthday"))%>" maxlength="4">
              年</font> <input name="birthday_mm" type="text" class="input" style="width:31px;" title="例如:10" value="<%=month(rs("birthday"))%>" maxlength="2">
              月</font> <input name="birthday_dd" type="text" class="input" style="width:32px;" title="例如:12" value="<%=day(rs("birthday"))%>" maxlength="2" />
              日(yyyy/mm/dd) <font color="#FF0000">* </font></td>
          </tr>
          <tr> 
            <td height="20" align="right" bgcolor="#BBDDFF">婚姻状况</td>
            <td bgcolor="#f0f0f0"><input id="radio14" type="radio" name="marriage" value="0" <%if rs("sex")=true then%>checked<%end if%>>
              未婚 
              <input id="radio15" type="radio" name="marriage" value="0"  <%if rs("sex")=false then%>checked<%end if%>>
              已婚</td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">身份证号码</td>
            <td bgcolor="#f0f0f0"> <input name="id_no" type="text" class="input" value="<%=rs("idcard")%>"  maxlength="18">
              请填写正确的证件号码,我们将以此作为日后确认您身份的依据。</td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">工作行业</td>
            <td bgcolor="#f0f0f0"> <%set rs1=server.createobject("ADODB.Recordset")
		      sql="select * from job"
		      rs1.open sql,conn,1,3
		      %> <select name="job" class="input">
                <% do while not rs1.eof %>
                <option value="<%= rs1("jid") %>" <% if rs("job")=rs1("jid") then%>selected<% end if %>><%= rs1("job") %></option>
                <% rs1.movenext
			loop
			 %>
              </select> </td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">学历</td>
            <td bgcolor="#f0f0f0"> <%set rs1=server.createobject("ADODB.Recordset")
		      sql="select * from education"
		      rs1.open sql,conn,1,3
		      %> <select name="education" class="input">
                <% do while not rs1.eof %>
                <option value="<%= rs1("eid") %>" <% if rs("education")=rs1("eid") then%>selected<% end if %>><%= rs1("education") %></option>
                <% rs1.movenext
			loop
			 %>
              </select></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">电子邮箱</td>
            <td bgcolor="#f0f0f0"><input name="email" type="text" class="input" title="例如:abc@domain.com" value="<%=rs("email")%>" maxlength="50"> 
              <font face="宋体"><font color="#FF0000">* </font></font></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">即时网络通信</td>
            <td bgcolor="#f0f0f0"> <%set rs1=server.createobject("ADODB.Recordset")
		      sql="select * from net_msg_name"
		      rs1.open sql,conn,1,3
		      %> <select name="net_msg_name" class="input" id="net_msg_name" style="width:90px;">
                <% do while not rs1.eof %>
                <option value="<%= rs1("nid") %>" <% if rs("net_msg_name")=rs1("nid") then%>selected<% end if %>><%= rs1("net_msg_name") %></option>
                <% rs1.movenext
			loop
			 %>
              </select>
              <input name="net_msg_no" type="text" class="input" value="<%=rs("net_msg_no")%>" maxlength="50"></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">网址</td>
            <td bgcolor="#f0f0f0"><input name="url" type="text" class="input" value="<%=rs("url")%>" size="40" maxlength="50"></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">电话</td>
            <td bgcolor="#f0f0f0"> <input name="tel" type="text" class="input" value="<%=rs("tel")%>" maxlength="20"></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">传真</td>
            <td bgcolor="#f0f0f0"><input name="fax" type="text" class="input" value="<%=rs("fax")%>" maxlength="20"></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">手机</td>
            <td bgcolor="#f0f0f0"><input name="mobile" type="text" class="input" value="<%=rs("mobile")%>" maxlength="20"></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">所在省/市</td>
            <td bgcolor="#f0f0f0"> <input name="area" type="text" class="input" value="<%=rs("area")%>" maxlength="12"> 
              <font color="#FF0000">* </font></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">通信地址</td>
            <td bgcolor="#f0f0f0"><input name="address" type="text" class="input" style="width:350px;" title="例如:朝阳区东三环招商局大厦" value="<%=rs("address")%>" maxlength="100" /></td>
          </tr>
          <tr> 
            <td align="right" bgcolor="#BBDDFF">邮政编码</td>
            <td bgcolor="#f0f0f0"><input name="zipcode" type="text" class="input" style="width:90px;" title="例如:100022" value="<%=rs("zipcode")%>" maxlength="6" /></td>
          </tr>
          <tr> 
            <td align="right" valign="top" bgcolor="#BBDDFF">论坛签名档</td>
            <td bgcolor="#f0f0f0"><INPUT name="button" type=button class=input title="背景色和颜色" onclick=ytext() value=" A "> 
              <INPUT name="button" type=button class=input title="加粗" onclick=ybold() value=" B "> 
              <INPUT name="button" type=button class=input title="倾斜" onclick=italicize() value=" I "> 
              <INPUT name="button" type=button class=input title="下划线" onclick=underline() value=" U "> 
              <INPUT name="button" type=button class=input title="超链接" onclick=hyperlink() value="链接"> 
              <INPUT name="button" type=button class=input title="EMAIL" onclick=yemail() value="邮箱"> 
              <INPUT name="button" type=button class=input title="插入图片" onclick=image() value="贴图"> 
              <INPUT name="button" type=button class=input title="飞翔文字" onclick=setfly() value="左右飞"> 
              <INPUT name="button" type=button class=input title="移动文字" onclick=move() value="向左飞"> 
              <INPUT name="button" type=button class=input title="光晕文字" onclick=yglow() value="光晕"> 
              <textarea name="usign" cols="70" rows="6" class="input" id="usign"><%=rs("usign")%></textarea> 
            </td>
          </tr>
        </table>
        
        <br>
        <input type="submit" name="Submit" value=" 修 改 ">
            
        <input type="reset" name="Submit2" value=" 清 除 "> </td>
  </tr>
  </form>
</table>
</body>
</html>
<% End If %>

⌨️ 快捷键说明

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