?? xgzl.asp
字號:
<%response.expires=0%>
<!--#include file="function.asp"-->
<%
if session("yhm")="" or session("id")="" or isempty(session("yhm")) or isempty(session("id")) then
response.write("<center><font color=#cc0000>對不起,您的頁面已經過期,請重新登錄!</font>")
response.end
end if
id=request("id")
if id="" then
id=session("id")
end if
if id="" then
response.write("<center><font color=#cc0000>對不起,數據傳送出錯,請返回重試!</font>")
response.end
end if
%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>:::::快狗:::::</title>
<link rel="stylesheet" type="text/css" href="../style/style_b.css">
<META
content="free,freeworld,homepage,website,cgi,guestbook,免費主頁,免費服務,免費聯絡,免費注冊,免費評選,免費記數器,免費廣告交換,統計,計數器,免費社區,免費"
name=keywords>
<META content=快狗為各位站長送上真正免費的好東西,記得推薦給您的朋友吧! name=description>
<script language="javascript">
function check_form()
{
if (form.T2.value=="")
{
alert("請輸入用戶名!");
form.T2.focus();
return(false);
}
if (form.T1.value=="")
{
alert("請輸入密碼!");
form.T1.focus();
return(false);
}
return(true);
}
function check_form1(thisForm)
{
if (thisForm.yhm.value=="")
{
alert("請輸入用戶名!")
thisForm.yhm.focus();
return (false);
}
var checkOK="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_";
var checkStr=thisForm.yhm.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("用戶名只能輸入字母和數字!");
thisForm.yhm.focus();
return(false);
}
if (thisForm.mm.value=="")
{
alert("請輸入您的用戶密碼!");
thisForm.mm.focus();
return (false);
}
if (thisForm.mm.value!=thisForm.mmqr.value)
{
alert("您兩次輸入的密碼不一致!");
thisForm.mmqr.focus();
return (false);
}
if (thisForm.lc.value=="")
{
alert("請輸入昵稱!");
thisForm.lc.focus();
return (false);
}
if (thisForm.oicq.value!="")
{
var checkOK="0123456789";
var checkStr=thisForm.oicq.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("請輸入正確的OICQ號碼!");
thisForm.oicq.focus();
return (false);
}
}
var grzy=thisForm.grzy1.value;
if (thisForm.mc1.value=="")
{
alert("請輸入主頁名稱!");
thisForm.mc1.focus();
return (false);
}
if (grzy.toUpperCase()=="HTTP://" || grzy.toUpperCase()=="")
{
alert("請輸入主頁地址!");
thisForm.grzy1.focus();
return (false);
}
if (thisForm.lx1.value=="請選擇")
{
alert("請選擇主頁類型!");
thisForm.lx1.focus();
return (false);
}
if (thisForm.dzyj.value=="")
{
alert("請輸入電子郵件!");
thisForm.dzyj.focus();
return (false);
}
if (thisForm.jj.value=="")
{
alert("請輸入網站簡介!");
thisForm.jj.focus();
return (false);
}
return(true);
}
</script>
</head>
<body bgcolor="#ffffff" topmargin="0" leftmargin="0">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from userinfo where id="&id
rs.open sql,conn,1,1
if rs.eof or rs.bof then
rs.close
conn.close
response.write("<p align='center'><font color='#ff0000' size=+1>出現錯誤,該用戶可能已經被刪除!</font>")
else
%>
<table border="0" cellpadding="0" cellspacing="0" width="85%">
<tr>
<td width="100%"><img border="0" src="../images/change.gif"></td>
</tr>
</table>
<form method="post" action="writezl.asp?id=<%=id%>" onsubmit="return check_form1(this)" name="form1">
<table border="0" cellPadding="0" cellSpacing="12" width="85%">
<tbody>
<TR>
<TD height=24 width=92>用戶名:</TD>
<TD height=24 width=306>
<INPUT maxLength=10 name=yhm value="<%=server.htmlencode(rs("yhm"))%>">
<font color="#ff0000">*</font>1-10個英文字母或數字</TD>
</TR>
<TR>
<TD height=24 width=92>用戶密碼:</TD>
<TD height=24 width=306>
<INPUT maxLength=16 name=mm
type=password>
<font color="#ff0000">*</font>1-16個字母或數字</TD>
</TR>
<TR>
<TD height=24 width=92>密碼確認:</TD>
<TD height=24 width=306>
<input maxlength=16 name=mmqr
type=password>
<font color="#ff0000">*</font>重復輸入用戶密碼</TD>
</TR>
<TR>
<TD height=24 width=92>昵稱:</TD>
<TD height=24 width=306>
<INPUT maxLength=6 name=lc value="<%=server.htmlencode(rs("lc"))%>">
<font color="#ff0000">*</font>1-6個字母或漢字</TD>
</TR>
<TR>
<TD height=24 width=92>OICQ:</TD>
<TD height=24 width=306>
<INPUT maxLength=9 name=oicq size=9 value="<%=rs("oicq")%>">
</TD>
</TR>
<TR>
<TD height=25 width=92>主頁名稱:</TD>
<TD height=24 width=306> <input type="text" name="mc1" size="42" value="<%=rs("mc1")%>"><font color="#FF0000">
*</font>
</TD>
</TR>
<tr>
<TD height=25 width=92>主頁地址:</TD>
<TD height=14 width=306> <INPUT maxLength=50 name=grzy1 size=42 value="<%=lcase(rs("url1"))%>">
<font color="#ff0000">*</font>
</TD>
</tr>
<tr>
<TD height=25 width=92>主頁類型:</TD>
<TD height=22 width=306> <select size="1" name="lx1">
<option value="請選擇">請選擇</option>
<option value="綜合門戶">綜合門戶</option>
<option value="電腦網絡">電腦網絡</option>
<option value="國家地區">國家地區</option>
<option value="政府機關">政府機關</option>
<option value="電信通訊">電信通訊</option>
<option value="休閑娛樂">休閑娛樂</option>
<option value="生活資訊">生活資訊</option>
<option value="文化藝術">文化藝術</option>
<option value="科學教育">科學教育</option>
<option value="游戲世界">游戲世界</option>
<option value="體育健身">體育健身</option>
<option value="工商經濟">工商經濟</option>
<option value="金融投資">金融投資</option>
<option value="新聞媒體">新聞媒體</option>
<option value="情感交流">情感交流</option>
<option value="女性天地">女性天地</option>
<option value="衛生保健">衛生保健</option>
<option value="其他類別">其他類別</option>
</select>
<script language="javascript">
form1.lx1.value="<%=rs("lx1")%>";
</script>
<font color="#FF0000">*</font>
</TD>
</tr>
<TR>
<TD height=24 width=92>電子郵件:</TD>
<TD height=24 width=306>
<INPUT maxLength=25 name=dzyj size=48 value="<%=rs("dzyj")%>" style="height: 22; width: 292">
<font color="#ff0000">*</font></TD>
</TR>
<TR>
<TD height=24 vAlign=top width=92>網站簡介:</TD>
<TD height=24 width=306>
<TEXTAREA cols=45 name=jj rows=6 style="height: 102; width: 292"><%=server.htmlencode(rs("jj"))%></TEXTAREA>
<font color="#ff0000">*</font></TD>
</TR>
<TR>
<TD colSpan=2 height=4 width="600"> </TD>
</TR>
<TR>
<TD align="middle" colSpan=2 width="400">
<p align="center">
<INPUT id=button1 name=button1 style="FONT-FAMILY: 宋體; FONT-SIZE: 9pt" type="submit" value="取得代碼">
</p>
</TD>
</tr>
</tbody>
</table></form>
<%
end if
rs.close
conn.close
%>
<table border="0" cellpadding="0" cellspacing="0" width="85%">
<tr>
<td align="right"><img border="0" src="../help/images/helpd.gif"></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -