www.gusucode.com > 凡人网络购物系统 2008源码程序 > Admin/ad_booktype.asp
<!--#include file="conn.asp"--> <!--#include file="ad_chk.asp"--> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href=inc/css.css rel=STYLESHEET type=text/css> <body topmargin="5" leftmargin="5" rightmargin="5" bottommargin="5"> <% if Request.Cookies("venshop")("admin_class")<>0 then response.write "你没有这个权限!" response.end end if %> <% if request("action")="del" then sql="delete from venshop_book where id="&request("id") conn.execute(sql) call deleok(delet,"ad_booktype.asp?id="&request("ids")) end if set rs=server.createobject("adodb.recordset") sql="select * from venshop_book where typeid="&request("id")&" order by id desc" rs.open sql,conn,1,1 if rs.eof then%> <p style="margin:10px; "><b>本类暂无内容 <a href="ad_bookzj.asp?typeid=<%=request("id")%>"><font color="#FF0000">添加本类内容</font></a></b></p> <%else%> <p style="margin:10px; "><b><a href="ad_bookzj.asp?typeid=<%=request("id")%>"><font color="#FF0000">添加本类内容</font></a></b></p> <table border="0" cellpadding="5" class="st" cellspacing="0"> <tr><td width="270" colspan="3" class="sa">内容管理</td> </tr> <% i=0 do while not rs.eof i=i+1 %> <tr><td width="200" class="s<%=i mod 2%>"><b><%=rs("title")%>:</b></td> <td class="s<%=i mod 2%>" align="center"><a href=ad_edit.asp?id=<%=rs("id")%>>修改</a></td> <td class="s<%=i mod 2%>" align="center"><a href=ad_booktype.asp?action=del&id=<%=rs("id")%>&ids=<%=rs("typeid")%> onClick="return confirm('您确定进行删除操作吗?')">删除</a></td></tr> <%rs.movenext loop rs.close set rs=nothing end if%></table> <br> <div class="help"> 备注:<br>此帮助信息会显示在网站底部,主要用于添加:公司介绍、付款方式、送货方式、联系方式等!</div> <!--#include file="ad_bottom.asp"-->