📄 help_sort.asp
字号:
<%dbdns="../../"%>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../cook.asp"-->
<%
if request("action")="del" then
conn.execute("delete from es_helpsort where es_id=" & request("id"))
conn.execute("delete from es_help where es_helpsort=" & request("id"))
end if%>
<%=citycss%>
<body style="margin:10">
<table width="100%" height="0" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<form name="form1" method="post" action="help_sort_save.asp?action=add">
<tr align="center" bgcolor="#efefef">
<td width="29%" height="25">添加分类</td>
<td width="37%"><input type="text" name="helpsort"></td>
<td width="34%"><input type="submit" name="Submit" value="添加" class=input1></td>
</tr>
</form>
</table>
<!--#######################################################################-->
<table width="100%" height="0" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<tr align=center>
<%sql="select * from es_helpsort order by es_date desc"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if (rs.eof and rs.bof) then
response.write "<td height=20 colspan=3>暂无内容</td>"
else
n=0
do while not rs.eof
n=n+1%>
<td width="20%" height="25"><a href=help_sort.asp?id=<%=rs("es_id")%>&helpsort=<%=rs("es_helpsort")%>><%=rs("es_helpsort")%></a> <a href=help_sort_save.asp?id=<%=rs("es_id")%>&action=aa><font color=#cccccc>排序</font></a></td>
<%if n mod 5=0 then response.write("</tr><tr align=center>")
rs.movenext
loop
end if
rs.close
set rs=nothing%>
</tr>
</table>
<!--#######################################################################-->
<%if request("helpsort")<>"" then%>
<br>
<table width="100%" height="0" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<form name="form1" method="post" action="help_sort_save.asp?action=edit&id=<%=request("id")%>">
<tr align="center" bgcolor="#efefef">
<td width="29%" height="25">修改分类</td>
<td width="37%"><input type="text" name="helpsort" value="<%=request("helpsort")%>"></td>
<td width="34%"><input type="submit" name="Submit" value="修改" class=input1> <a href=help_sort.asp?id=<%=request("id")%>&action=del>删除</a></td>
</tr>
</form>
</table>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -