📄 index.asp
字号:
<!--#include file="../login/0.asp"--><!--#include file="../../conn/conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
SCROLLBAR-FACE-COLOR: #799ae1;
SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
SCROLLBAR-SHADOW-COLOR: #799ae1;
SCROLLBAR-3DLIGHT-COLOR: #799ae1;
SCROLLBAR-ARROW-COLOR: #fcfcfc;
SCROLLBAR-TRACK-COLOR: #aabfec;
SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
SCROLLBAR-BASE-COLOR: #799ae1;
background-color: #CAD7F7;
}
.STYLE3 {
color: #FFFFFF;
font-weight: bold;
}
</STYLE>
</head>
<body>
<br>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr align="center" bgcolor="#CCCCCC">
<td width="140" height="25" background="../../images/admin_bg_11.gif"><span class="STYLE3">编号</span></td>
<td width="557" background="../../images/admin_bg_11.gif"><span class="STYLE3">新闻分类</span></td>
<td width="137" background="../../images/admin_bg_11.gif"><div align="center"><span class="STYLE3">修改</span></div></td>
<td width="146" background="../../images/admin_bg_11.gif"><div align="center"><span class="STYLE3">删除</span></div></td>
</tr>
<% set rs = conn.execute("select * from kefu_lb order by id desc")
do while not rs.eof%>
<form name="form1" method="post" action="?x=a">
<tr bgcolor="#f1f1f1">
<td width="140" align="center" bgcolor="#E8F1FF"><%=rs("id")%> <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
<td width="557" bgcolor="#E8F1FF"> <input name="lb" type="text" id="lb" value="<%=rs("lb")%>" size="25">
<input name="y-lb" type="hidden" id="y-lb" value="<%=rs("lb")%>"></td>
<td width="137" align="center" bgcolor="#E8F1FF"><div align="center">
<input name="Submit" type="submit" value="修改">
</div></td>
<td width="146" align="center" bgcolor="#E8F1FF"><div align="center">
<input name="Submit2" type="button" value="删除" onClick="window.location='index.asp?x=c&id=<%=rs("id")%>'">
</div></td>
</tr>
</form>
<%rs.movenext
loop
%>
</table>
<br><form action="?x=b" method="post" name="myform" id="form">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr valign="middle" bgcolor="#CCCCCC">
<td height="25" colspan="2" background="../../images/admin_bg_11.gif"> <span class="STYLE3">>>添加新闻分类</span></td>
</tr>
<tr valign="middle" bgcolor="#f1f1f1">
<td width="138" height="25" align="center" bgcolor="#E8F1FF">新闻分类</td>
<td width="844" height="25" bgcolor="#E8F1FF"> <input name="lb" type="text" id="lb" size="25"></td>
</tr>
<tr valign="middle" bgcolor="#f1f1f1">
<td width="138" height="25" align="center" bgcolor="#E8F1FF"> </td>
<td height="25" bgcolor="#E8F1FF"> <input name="Submit3" type="submit" value="OK,提交"></td>
</tr>
</table>
</form>
<% Select case request("x")
case "a"
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Update kefu_lb set lb= '"&request("lb")&"' where id="&request("id")&"")
conn.execute("Update kefu set lb= '"&request("lb")&"' where lb='"&request("y-lb")&"'")
Response.redirect "index.asp"
case "b"
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Insert into kefu_lb(lb)values('"&request("lb")&"')")
Response.redirect "index.asp"
case "c"
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Delete kefu_lb where id="&request("id")&"")
Response.redirect "index.asp"
End Select
%></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -