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

📄 user_index.asp

📁 源码源源码 源码 源码码源 码源 码源 码源 码
💻 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 + -