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

📄 information.asp

📁 首页由top.asp index_asp.asp link.asp end.asp构成
💻 ASP
字号:
<%
if session("flag")=1 then
%>
<!--#include file="pic_conn.asp"-->
<html>
<head>
<title>网站基本信息管理</title>
<meta http-equiv="Content-Language" content="zh-cn">
<link rel=stylesheet type=text/css href=style/style.css>
</head>

<script language="javascript">
function check()

{
  if(document.form1.name.value=="")
    {
      alert("网站名称不能为空");
      return false;
    }
    
  if(document.form1.URL.value=="")
    {
      alert("地址不能为空");
      return false;
    }
    
  if(document.form1.content.value=="")
    {
      alert("关键字不能为空");
      return false;
    }

}
</script>

<body bgcolor="#799AE1">
<%
dim action,userid
action=request.QueryString("action")
userid=request.QueryString("userid")
select case action
case "information"
set Rs=GrateRs("select * from information",3)
%>
<div align="center">
     <p> </p>
 <form method="post" action="information.asp?action=updata" name="form1" onsubmit="javascript:return check();">
    <table border=0 cellpadding="0" cellspacing="1" style="border-collapse: collapse" width="72%" class=c1 id="table2" height="267">
      <tr>
        <td class=c2 colspan="2" height="46" align="center">
        <p style="margin: 5"><font face="Verdana" size="4">网站基本信息管理</font></td>
	  </tr>
      <tr>
        <td class=c2 valign="top" width="20%">
		<p style="line-height: 150%; margin: 5">&nbsp;网站名称:<br>
		</td>
        <td valign="top" class=c3 style="padding:5px" width="79%">
        <input type=text name=wzname size=36 maxlength=50 value="<%=Rs("name")%>"><br>
        </td>
      </tr>
		<tr>
        <td class=c2 valign="top" width="20%">
		<p style="line-height: 150%; margin: 5">&nbsp;网站地址:<br>
		</td>
		<td valign="top" class=c3 style="padding:5px" width="79%">
		<input type=text name=URL size=36 maxlength=50 value="<%=Rs("url")%>"><br>
		</td>
      </tr>
		<tr>
        <td class=c2 valign="top" width="20%">
		<p style="line-height: 150%; margin: 5">&nbsp;关 键 字:<p style="line-height: 150%; margin: 5">&nbsp;(请以“,”隔开)<br>
		</td>
		<td valign="top" class=c3 style="padding:5px" width="79%">
		<textarea rows="8" name="content" cols="69" style="font-family: 宋体; font-size: 9pt"><%=Rs("gjz")%></textarea><br>
		</td>
      </tr>
		<tr>
        <td class=c2 width="95%" colspan="2" align="center" height="49">
		<p style="line-height: 150%; margin: 5">
		<input class=submit type=submit value=确定修改 name=B1>
		</td>
	  </tr>
    </table>
  </form>
</div>
<%
case "updata"
set Rs=GrateRs("select * from information where id=1",3)
Rs("name")=request.form("wzname")
Rs("url")=request.form("URL")
Rs("gjz")=request.form("content")
Rs.update
response.write "<script language='JavaScript'>{window.location='information.asp?action=information';}</script>"

end select
%> 
</body>
</html>
<%
else
%>
<script language="javascript">alert("你没有权限进行该项管理!")</script>
<%
response.write "<script language='JavaScript'>{window.location='right.htm';}</script>"
end if
%>

⌨️ 快捷键说明

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