article_menu_del.asp

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

ASP
185
字号
<%
If session("manager")="" Then
  Response.Redirect("manage.asp")
  Response.end
 End If
%><!--#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 patype where id="&tt&""
   next
closedataconn
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<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">
      <!--#include file="List.asp" -->
    </td>
    <td height="395" align="center" valign="top"> <br> <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="72%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr align="center"> 
                      <td width="25%"><a href="article_menu_add.asp">[栏目添加</a>]</td>
                      <td width="25%">[<a href="article_menu_del.asp">栏目修改</a>]</td>
                      <td width="25%">[<a href="particle_add.asp">文章添加</a>]</td>
                      <td width="25%">[<a href="particle_del.asp">文章修改</a>]</td>
                    </tr>
                  </table>
                  <br> <br> <table width="65%" border="0" align="center" cellpadding="0" cellspacing="1">
                    <form action="article_menu_del.asp" name="form3" method="post">
                      <tr bgcolor="#666666"> 
                        <td width="21%">&nbsp;</td>
                        <td width="45%" align="center">栏目名称</td>
                        <td width="34%">&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 patype"
              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="id2" value="<%=trim(rs("id"))%>"></td>
                        <td><%=Trim(Rs("patype"))%></td>
                        <td><a href="article_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("你真的要删除这些栏目吗?"))
						 {
						  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="article_menu_del.asp?curpage=1">首页&nbsp;</a> 
                            <% else %>
                            首页&nbsp; 
                            <% end if %>
                            <% if cint(curpage)>1 then %>
                            <a href="article_menu_del.asp?curpage=<%=curpage-1%>">上一页&nbsp;</a> 
                            <% else %>
                            &nbsp;上一页 
                            <% end if %>
                            <% if cint(curpage)<>cint(totalpages) then %>
                            <a href="article_menu_del.asp?curpage=<%=curpage+1%>">&nbsp;下一页 
                            <% else %>
                            &nbsp;下一页 
                            <% end if %>
                            <% if cint(curpage)<>cint(totalpages) then %>
                            </a><a href="article_menu_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></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>
</html>

⌨️ 快捷键说明

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