📄 topic_class.asp
字号:
<!--#include file="admin_include.asp"-->
<%
if request.QueryString.Count>0 then
id = request.QueryString("id")
sql="select * from [SD_Topic] where SD_Topic_Id="&id
rs.open sql,conn,1,1
if not rs.eof then
SD_Topic_Name=rs("SD_Topic_Name")
SD_Topic_Info=rs("SD_Topic_Info")
end if
rs.close
end if
%>
<!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=utf-8" />
<link href="css/main.css" type="text/css" rel="stylesheet" />
<title>软件专题列表</title>
</head>
<body>
<table width="98%" border="1" cellpadding="2" cellspacing="1" bordercolor="#FFFFFF">
<tr>
<td colspan="7" class="table_caption">专题:<%=SD_Topic_Name%></td>
</tr>
<tr>
<td colspan="7" class="intro">
<a href="Topic.asp">专题管理</a>
<a href="Topic_Templet.asp?type=Topic&id=<%=id%>">模板管理</a>
<a href="Topic_Add.asp?id=<%=id%>">添加栏目</a>
</td>
</tr>
<tr class="header">
<td width="5%">ID</td>
<td>栏目名称</td>
<td width="12%">介绍</td>
<td width="15%">添加时间</td>
<td width="10%">操作</td>
</tr>
<%
sql="select * from [SD_Topic] where SD_Topic_Parent="&id
rs.open sql,conn,1,1
if not rs.eof then
while(not rs.eof) and i<page_size+1
%>
<tr class="tdbg" onMouseOut="this.className='tdbg'" onMouseOver="this.className='tdbg2'">
<td><%=rs("SD_Topic_Id")%></td>
<td><a href="Topic_List.asp?id=<%=rs("SD_Topic_Id")%>"><%=rs("SD_Topic_Name")%></a></td>
<td><%=rs("SD_Topic_Info")%></td>
<td><%=rs("SD_Topic_Date")%></td>
<td>
<a href='Topic_Edit.asp?id=<%=rs("SD_Topic_Id")%>' onclick="">编辑</a>
<a href='#' onclick="javascript:if (confirm('确定删除 <%=rs("SD_Topic_Name")%>'))location.href='del.asp?del_id=<%=rs("SD_Topic_Id")%>&n=8';">删除</a>
</td>
</tr>
<%
rs.movenext
wend
%>
<tr>
<td colspan="5" class="tdbg">
<%=jk_pagecute(page_size,page_count,page_now,"Soft_Class.asp?",10,"#233D51")%>
</td>
</tr>
<%
else
response.Write("<tr class='tdbg'><td colspan='5'>")
response.Write("暂无相关栏目! <a href='Topic_Add.asp'>添加栏目</a>")
response.Write("</td></tr>")
end if
rs.close
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -