old_del.asp

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

ASP
244
字号
<!--#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
%>
<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><table width="585" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="107" height="22"> <div align="center"><a href="oldtype1_add.asp">[一级目录添加]</a></div></td>
                      <td width="144"><div align="center"><a href="oldtype1_del.asp">[一级目录删除、修改]</a></div></td>
                      <td width="117"><div align="center"><a href="oldtype2_add.asp">[二级目录添加]</a></div></td>
                      <td width="128"><div align="center"><a href="oldtype2_del.asp">[二级目录删除、修改]</a></div></td>
                      <td width="89"> <div align="center"> 
                          <div align="center"></div>
                          <div align="center"><a href="old_del.asp">[信息删除]</a></div>
                        </div></td>
                    </tr>
                  </table>
                  <img src="../images/httable_01.gif" width=606 height=17></td>
              </tr>
              <tr> 
                <td height="268" align="center" valign="top" background="../images/httable_02.gif"><table width="98%" height="97" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td align="center" valign="top"><form name="form1" method="post" action="old_del_ok.asp">
                          <table border="0" width="93%" cellspacing="1" cellpadding="0">
                            <tr> 
                              <td colspan="5" align="center"><table width="500" border="0" cellspacing="0" cellpadding="0">
                                  <tr> 
                                    <td width="243"><div align="center"> 
                                        <select name="btype" id="btype" onChange="MM_jumpMenu('parent',this,0)">
                                          <option selected><%=trim(request("btype"))%></option>
                                          <%
								opendataconn
								set rs=server.createobject("adodb.recordset")
								sql="select * from oldtype1 order by dateandtime"
								rs.open sql,conn,1,1
								do while not rs.eof
								%>
                                          <option value=<%response.write "old_del.asp?btype=" & trim(rs("btype")) & ""%>><%=trim(rs("btype")) %></option>
                                          <%
								rs.movenext 
								loop
								rs.close
							    set rs=nothing
								%>
                                        </select>
                                      </div></td>
                                    <td width="143"><div align="center"> 
                                        <select name="stype" id="stype" onChange="MM_jumpMenu('parent',this,0)">
                                          <%
								btype=trim(request("btype"))
								set rs=server.createobject("adodb.recordset")
								if btype<>"" then
								sql="select * from oldtype2 where btype='"&btype&"' order by dateandtime"
								rs.open sql,conn,1,1
								do while not rs.eof
								%>
                                          <option value=<%response.write "old_del.asp?stype=" & trim(rs("stype")) & ""%>><%=trim(rs("stype"))%></option>
                                          <%
								rs.movenext 
								loop
								rs.close
							    set rs=nothing
								%>
                                        </select>
                                        <%end if%>
                                      </div></td>
                                    <td width="114"><div align="center"></div></td>
                                  </tr>
                                </table></td>
                            </tr>
                            <tr> 
                              <td width="4%" align="center" bgcolor="#666666"> </td>
                              <td width="10%" align="center" bgcolor="#666666"><font color="#CCCCCC">买或卖</font></td>
                              <td width="19%" align="center" bgcolor="#666666"><font color="#CCCCCC">物品类别</font></td>
                              <td width="31%" align="center" bgcolor="#666666"><font color="#CCCCCC">物品名称</font></td>
                              <td width="21%" align="center" bgcolor="#666666"><font color="#CCCCCC">发布时间</font></td>
                            </tr>
                            <%
              dim curpage
              if request.querystring("curpage")="" then
                 curpage=1
              else
                 curpage=request.querystring("curpage")
              end if
              const numperpage=15
              stype=trim(request("stype"))
			  opendataconn
              set rs=server.createobject("adodb.recordset")
              sql="select * from oldsc "
			  if stype<>""  then
			  sql=sql & " where stype='"&stype&"'"
			  end if
			  sql=sql & " 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> 
                              <td width="4%" align="center" bgcolor="#868686"> 
                                <input type="checkbox" name="id" value="<%=rs("id")%>" class="mul"> 
                              </td>
                              <td width="10%" align="center" bgcolor="#868686"> 
                                <%=trim(rs("buyorsell"))%> </td>
                              <td width="19%" align="center" bgcolor="#868686"><%=trim(rs("stype"))%> </td>
                              <td width="31%" align="center" bgcolor="#868686"><%=trim(rs("prname"))%>&nbsp;</td>
                              <td width="21%" align="center" bgcolor="#868686"> 
                                <%=trim(rs("dateandtime"))%> </td>
                            </tr>
                            <%
              rs.movenext       
                count=count+1
                loop
               rs.close
               set rs=nothing
               closedataconn    
              %>
                            <tr> 
                              <td colspan="5" bgcolor="#868686">&nbsp;&nbsp;</td>
                            </tr>
                            <tr> 
                              <td colspan="5" align="center" height="50"> <input type="submit" value="删除" name="B1"> 
                                &nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="全部重写" name="B2"> 
                                <div align="center"> 
                                  <% if cint(curpage)<>1 then %>
                                  <a href="old_del.asp?curpage=1&stype=<%=stype%>">首页&nbsp;</a> 
                                  <% else %>
                                  首页&nbsp; 
                                  <% end if %>
                                  <% if cint(curpage)>1 then %>
                                  <a href="old_del.asp?curpage=<%=curpage-1%>&stype=<%=stype%>">上一页&nbsp;</a> 
                                  <% else %>
                                  &nbsp;上一页 
                                  <% end if %>
                                  <% if cint(curpage)<>cint(totalpages) then %>
                                  <a href="old_del.asp?curpage=<%=curpage+1%>&stype=<%=stype%>">&nbsp;下一页 
                                  <% else %>
                                  &nbsp;下一页 
                                  <% end if %>
                                  <% if cint(curpage)<>cint(totalpages) then %>
                                  </a><a href="old_del.asp?curpage=<%=totalpages%>&stype=<%=stype%>">&nbsp;末页 
                                  <% else %>
                                  &nbsp;末页 
                                  <% end if %>
                                  </a>   第<font color="#FFCC00"><%=curpage%></font>页/共<%=totalpages%>页   
                                  <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
                                    <option value="#" selected>请选择</option>
                                    <%
									  k=1
									  do while k<=totalpages
									  %>
                                    <option value="old_del.asp?curpage=<%=k%>&stype=<%=stype%>">第<%=k%>页</option>
                                    <%
									  k=k+1
									  loop
									  %>
                                  </select>
                                    </div></td>
                            </tr>
                          </table>
                        </form></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<div align="center">
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><img src="../images/ht_04.gif" width="778" height="4"></td>
  </tr>
</table>
</div>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="631,42,776,62" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>

⌨️ 快捷键说明

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