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

📄 edit_class.asp

📁 blog 又搭工
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
<!--
.STYLE1 {
	color: #653E1D;
	font-weight: bold;
	font-size: 22px;
}
.STYLE4 {font-size: 22px}
.STYLE11 {color: #000099; font-weight: bold; font-size: 18px; }
.menu1 {color: #0000CC; font-weight:bold; font-size:12px; text-align:left; padding-top:2px; padding-left:5px;}
.menutitle{ }
img{
padding-top:2px;}
a:linkid {
	color: #009933;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #5298E4;
}
a:hover {
	color: #000000;
}
-->
</style>
</head>
<body>
<%
if session("msmax")="" then
	response.Redirect("login.asp")
end if
%>
<%
edit=request.QueryString("edit")
classid=request.QueryString("classid")
session("classid")=classid
if edit="true" then
	'dim rs,strsql
	set classrs=server.CreateObject("adodb.recordset")
	strsql="select * from class where classid="&classid
	classrs.open strsql,db,1
%>
	<form id="form1" name="form1" method="post"  action="class_action.asp?edit=true" >
	  <span class="STYLE1">
	分类名:<input name="classname" type="text" id="classname" value="<%=classrs("classname")%>" size="30" maxlength="50" />
	  </span><span class="STYLE4">&nbsp;</span>&nbsp;&nbsp;&nbsp;
	<input type="submit" name="Submit" value="修改分类" />
	</form>
<%else%>
	<form id="form1" name="form1" method="post"  action="class_action.asp" >
	  <span class="STYLE1">
	  分类名:<input name="classname" type="text" id="classname" size="30" maxlength="50" />
	  </span><span class="STYLE4">&nbsp;</span>&nbsp; 
	  <input type="submit" name="Submit" value="添加分类" />
	</form>
<%end if%>	
<table width="86%" border="1" cellpadding="1" cellspacing="1"  bordercolor="#FD8B1A" bordercolordark="#99FF66" bordercolorlight="#FF6633">
      <tr>
        <td width="9%" bgcolor="#FFFAF0" class="STYLE11"><span class="STYLE11">classid</span></td>
        <td width="50%" bgcolor="#FFFAF0" class="STYLE11"><span class="STYLE11">分类名称</span></td>
        <td colspan="2" bgcolor="#FFFAF0" class="STYLE11"><div align="center" class="STYLE11">编辑</div></td>
      </tr>
	  <%
	dim rs,strsql
	set rs=server.CreateObject("adodb.recordset")
	strsql="select * from class order by classid  desc"
	rs.open strsql,db,1
	do while not rs.eof
%>
      <tr>
        <td bgcolor="#F9FFF0"><%=rs("classid")%></td>
        <td bgcolor="#F9FFF0"><%=rs("classname")%></td>
        <td width="24%" bgcolor="#F9FFF0"><div align="center"><a href="class_del.asp?classid=<%=rs("classid")%>">删除</a></div></td>
        <td width="17%" bgcolor="#F9FFF0"><div align="center"><a href="edit_class.asp?classid=<%=rs("classid")%>&edit=true">修改</a></div></td>
      </tr>
	  <%
	  rs.movenext
	  loop
	  %>
</table> 
</body>
</html>

⌨️ 快捷键说明

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