?? edit_class.asp
字號(hào):
<!--#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"> </span>
<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"> </span>
<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>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -