ren_menu_del.asp

来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 313 行

ASP
313
字号
<!--#include file="../inc/conn.asp"--><%'┌─  风云ASP在线  ────────────────────────┐'│                                                                 │'│  作者:赵振波.	http://www.fyasp.com	    				    │'│                                                                 │'│   Q Q:176189168  										   	    │'│                                                                 │'│ Email:fy96@163.com                                             │'│                                                                 │'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│'│                                                                 │'│                                                                 │'└───────────────────  http://www.fyasp.com ──┘%>
<%
If session("manager")="" Then
  Response.Redirect("manage.asp")
  Response.end
 End If
%>
<%   
opendataconn
  ids=split(request("id"),",") 
  for i=0 to ubound(ids)
    tt=trim(ids(i))
	conn.execute "delete from Ren_Menu where id="&tt&""
	conn.execute"delete from Ren_detail where mainid="&tt&""
   next
closedataconn
%>
<html><!-- #BeginTemplate "/模板/houtai.dwt" --><!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>后台管理系统</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>


<body bgcolor="#666666" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><img src="../images/ht_01.gif" width=778 height=62 usemap="#Map" border="0"></td>
  </tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/htbj.gif">
  <tr> 
    <td valign="top" align="left" width="145" height="395"><table width="145" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="23"> <div align="center"><font color="#FFCC00">网站信息管理</font></div></td>
        </tr>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="gonggao.asp">公告管理</a> </td>
        </tr>
        <%if session("news")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="news_del.asp">新闻专区</a></td>
        </tr>
        <%end if%>
        <%if session("images")="1" then%>
        <tr>
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="ads/default.asp" target="_blank">广告管理</a></td>
        </tr>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="img_total.asp" target="_blank">图片管理</a></td>
        </tr>
        <%end if%>
        <%if session("hyetype")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="hyetype_del.asp">黄页类别</a> </td>
        </tr>
        <%end if%>
        <%if session("hyedetail")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="hye_del.asp">企业黄页</a> </td>
        </tr>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="newhouse_del.asp">楼盘展示</a></td>
        </tr>
        <%end if%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="hs.asp">房产信息</a></td>
        </tr>
        <%if session("gl_old")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="old_del.asp">二手市场</a></td>
        </tr>
        <%end if%>
        <%if session("cart")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="cart_del.asp">购物管理</a> </td>
        </tr>
        <%end if%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="recomco_del.asp">推荐公司</a> </td>
        </tr>
        <%if session("dc")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="dc.asp">在线调查管理</a></td>
        </tr>
        <%end if%>
        <%if session("banner")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="pic_add.asp">广告条管理</a> </td>
        </tr>
        <%end if%>
        <%if session("logo")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="logo_add.asp">区域管理</a></td>
        </tr>
        <%end if%>
        <%if session("gbook")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="gbook_back.asp">留言管理</a></td>
        </tr>
        <%end if%>
        <%if session("member")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="member_del.asp">会员管理</a> </td>
        </tr>
        <%end if%>
        <%if session("link")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="link_add.asp">友情链接</a></td>
        </tr>
        <%end if%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="peigou.asp">律师陪购</a> </td>
        </tr>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="pinguren_del.asp">评估师信息</a></td>
        </tr>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="pingu_del.asp">房产评估</a> </td>
        </tr>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="person_del.asp">地产精英</a> </td>
        </tr>
        <%if session("gl")="1" then%>
        <tr> 
          <td height="23">  <img src="../images/icon2.gif" width="13" height="12"> 
            <a href="manager_add.asp">管理员信息</a></td>
        </tr>
        <%end if%>
        <tr> 
          <td height="23"> <div align="center"><a href="logout.asp"><font color="#FFCC00">退出系统</font></a></div></td>
        </tr>
        <tr> 
          <td height="23">&nbsp;</td>
        </tr>
      </table> </td>
    <td height="395" align="center" valign="top"> <br>
      <!-- #BeginEditable "01" -->
      <table width="621" border="0" cellspacing="0" cellpadding="0" height="98">
        <tr> 
          <td align="center" valign="top">
            <table width="606" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><img src="../images/httable_01.gif" width=606 height=17></td>
              </tr>
              <tr> 
                <td height="268" valign="top" background="../images/httable_02.gif">
<table width="70%" height="41" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr align="center"> 
                      <td width="25%"><a href="ren_menu_add.asp">栏目添加</a>]</td>
                      <td width="25%">[<a href="ren_menu_del.asp">栏目修改</a>]</td>
                      <td width="25%">[<a href="person_add.asp">人物添加</a>]</td>
                      <td width="25%">[<a href="person_del.asp">人物修改</a>]</td>
                    </tr>
                  </table>
                  <table width="65%" border="0" align="center" cellpadding="0" cellspacing="1">
                    <form action="ren_menu_del.asp" name="form3" method="post">
					<tr bgcolor="#666666"> 
                      <td width="31%">&nbsp;</td>
                      <td width="18%" align="center">栏目名称</td>
                      <td width="51%">&nbsp;</td>
                    </tr>
                    <%
              dim curpage
              if request.querystring("curpage")="" then
                 curpage=1
              else
                 curpage=request.querystring("curpage")
              end if
              const numperpage=15
              sort=trim(request("sort"))
			  opendataconn
              set rs=server.createobject("adodb.recordset")
              sql="select * from Ren_menu order by  dateandtime desc"
              rs.open sql,conn,1,1
              if rs.eof then
              response.write "<table><tr><td><br></br><center>现在还没有记录!</center><br></br></td></tr></table>"
                     response.end
              end if
            if not rs.eof then
            rs.pagesize=numperpage
            dim totalpages
            totalpages=rs.pagecount
            rs.absolutepage=curpage
            end if        
           dim count
           count=0
           do while not rs.eof and count<numperpage
		   %>
                    <tr align="center" bgcolor="#868686"> 
                      <td> <input name="id" type="checkbox" id="id" value="<%=trim(rs("id"))%>"></td>
                      <td><%=Trim(Rs("ren_menu"))%></td>
                      <td><a href="ren_menu_modi.asp?id=<%=rs("id")%>">修改</a></td>
                    </tr>
                    <%
              rs.movenext       
                count=count+1
                loop
               rs.close
               set rs=nothing
               closedataconn    
              %>
                    <tr align="center" bgcolor="#868686"> 
                      <td colspan="3">
					  <script language="JavaScript">
					   function del()
					    {
						 if(confirm("这将会删除这个栏目中的所有内容,包过人物.\n你真的要删除这些吗?"))
						 {
						  document.form3.submit();
						  return true;
						 }
						 else
						 {return false;}
						}
					  </script>
					  					   <input type="button" value="删除所选记录" name="B1" onClick="return del();"> 
                        &nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="全部重写" name="B2"> 
                        <div align="center"> 
                          <% if cint(curpage)<>1 then %>
                          <a href="person_del.asp?curpage=1">首页&nbsp;</a> 
                          <% else %>
                          首页&nbsp; 
                          <% end if %>
                          <% if cint(curpage)>1 then %>
                          <a href="person_del.asp?curpage=<%=curpage-1%>">上一页&nbsp;</a> 
                          <% else %>
                          &nbsp;上一页 
                          <% end if %>
                          <% if cint(curpage)<>cint(totalpages) then %>
                          <a href="person_del.asp?curpage=<%=curpage+1%>">&nbsp;下一页 
                          <% else %>
                          &nbsp;下一页 
                          <% end if %>
                          <% if cint(curpage)<>cint(totalpages) then %>
                          </a><a href="person_del.asp?curpage=<%=totalpages%>">&nbsp;末页 
                          <% else %>
                          &nbsp;末页 
                          <% end if %>
                          </a>   第<font color="#FFCC00"><%=curpage%></font>页/共<%=totalpages%>页  </div></td>
                    </tr></form>
                  </table>
                </td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <!-- #EndEditable --></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><img src="../images/ht_04.gif" width="778" height="4"></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
<!-- #EndTemplate --></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?