?? user_index.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="user_check.asp"-->
<html>
<head>
<title>木葉村免費個人主頁http://www.x92.cn</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="木葉村網免費個人主頁http://www.x92.cn">
<meta name="description" content="木葉村網免費個人主頁http://www.x92.cn">
<link rel="stylesheet" href="admin/Admin_STYLE.CSS">
<base target="_self">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="bgcolor" bgcolor="#EEF8ED">
<%if request("type")="" then%>
<%set rs=conn.execute("select userid,user_index from myweb_user where userid="&session("userid")&"")%>
<form action=user_index.asp?type=save method=post onSubmit="submits(); ">
<table border="0" width="100%" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="border">
<tr class="tdbg" >
<td height="24" class="title">
<p align="center"><font color="#000000">編輯首頁內容</font></td>
</tr>
<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
<td height="25" width="99%" >
<p align="left">
<input type=hidden name="index" id="edit" value="<%response.Write Server.HtmlEncode(rs(1))%>"><!--#include file="edit.asp"--></td>
</tr>
<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
<td height="25" >
<p align="center"><input type=submit value="修 改" </td></td>
</tr>
</table>
</form>
<%
rs.close
set rs=nothing%>
<%end if%>
<%if request("type")="save" then%>
<table border="0" width="60%" cellpadding="2" align="center" cellspacing="1" bgcolor="#FFFFFF" class="border">
<tr class="tdbg" >
<td height="24" class="title">
<p align="center"><font color="#000000">系 統 信 息 提 示</font></td>
</tr>
<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
<td >
<%dim index,error
index=trim(request("index"))
if error="" then
set rs=server.CreateObject("adodb.recordset")
sql="select userid,user_index from myweb_user where userid="&session("userid")&""
rs.open sql,conn,1,3
rs.update
rs(1)=index
rs.update
response.write"<li><font color=red>系統處理結果如下</font></li><br><li>修改成功</li><br><center> <a href=user_index.asp><font color=red>返回</font></a></center>"
rs.close
set rs=nothing
else
response.write"<li><font color=red>系統處理結果如下</font></li><br>"&error&""
end if
%>
</td>
</tr>
</table>
<%end if%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -