pinguren_del.asp

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

ASP
273
字号
<!--#include file="../inc/conn.asp"-->
<%
'┌─  风云ASP在线  ────────────────────────┐
'│                                                                 │
'│  作者:赵振波.	http://www.fyasp.com	    				    │
'│                                                                 │
'│   Q Q:176189168  										   	    │
'│                                                                 │
'│ Email:fy96@163.com                                             │
'│                                                                 │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│                                                                 │
'│                                                                 │
'└───────────────────  http://www.fyasp.com ──┘
%>
<% 
     if instr(session("manager"),"manager")=0 then
     response.redirect "manage.asp"
     response.end
end if
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<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>
<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="650">
        <tr> 
          <td height="650" align="center" valign="top"> <table width="606" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td> </td>
                <td> </td>
                <td> </td>
              </tr>
              <tr> 
                <td><img src="../images/httable_01.gif" width=606 height=17></td>
                <td> </td>
                <td> </td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif" height="15" align="center" valign="top"> 
                  <table width="600" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> <hr noshade size="1"> </td>
                    </tr>
                  </table></td>
                <td background="../images/httable_02.gif" align="center" valign="top"> </td>
                <td background="../images/httable_02.gif" align="center" valign="top"> </td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif" height="191" align="center" valign="top"> 
                  <form method="post" action="pinguren_del_ok.asp" name="form1">
                    <div align="center"> 
                      <center>
                        <font color="#FFCC99">请选择</font><font color="#FFCC99">:</font> 
                        <select name="sort" id="select" onChange="MM_jumpMenu('parent',this,0)">
                          <option selected>全部类型</option>
                          <option value="pinguren_del.asp?sort=1">已批准</option>
                          <option value="pinguren_del.asp?sort=0">未批准</option>
                          <option value="pinguren_del.asp">所有评估师</option>
                        </select>
                        <br>
                        <strong><font color="#FFCC00" size="2">房产评估师信息</font></strong><br>
                        <div align="center"> 
                          <center>
                            <table border="0" width="93%" cellspacing="1" cellpadding="0">
                              <tr> 
                                <td width="4%" align="center" bgcolor="#666666"> </td>
                                <td width="10%" align="center" bgcolor="#666666">状态</td>
                                <td width="27%" align="center" bgcolor="#666666"><font color="#CCCCCC">姓名</font></td>
                                <td width="16%" align="center" bgcolor="#666666"><font color="#CCCCCC">性别</font></td>
                                <td width="14%" align="center" bgcolor="#666666">电话</td>
                                <td width="20%" align="center" bgcolor="#666666"><font color="#CCCCCC">发布时间</font></td>
                                <td width="9%" align="center" bgcolor="#666666"> </td>
                              </tr>
                              <%
              dim curpage
              if request("curpage")="" then
                 curpage=1
              else
                 curpage=request("curpage")
              end if
              const numperpage=15
              sort=trim(request("sort"))
			  opendataconn
              set rs=server.createobject("adodb.recordset")
              sql="select * from pinguren "
			  if sort<>""  then
			  sql=sql & " where ok="&sort&""
			  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"> 
                                  <%if trim(rs("ok"))="1" then response.write "<font color='#ffcc00'>已批准</font>" else response.write "未批准" end if%> &nbsp;</td>
                                <td align="center" bgcolor="#868686"> <a href="pinguren_modi.asp?id=<%=rs("id")%>"><%=trim(rs("youname"))%></a> </td>
                                <td align="center" bgcolor="#868686"><a href="pinguren_modi.asp?id=<%=rs("id")%>"><%=trim(rs("xb"))%></a> </td>
                                <td align="center" bgcolor="#868686"><a href="pinguren_modi.asp?id=<%=rs("id")%>"><%=trim(rs("tel"))%></a></td>
                                <td align="center" bgcolor="#868686"><%=year(rs("dateandtime"))%>-<%=month(rs("dateandtime"))%>-<%=day(rs("dateandtime"))%> </td>
                                <td align="center" bgcolor="#868686"><a href="pinguren_modi.asp?id=<%=rs("id")%>">[修改]</a></td>
                              </tr>
                              <%
              rs.movenext       
                count=count+1
                loop
               rs.close
               set rs=nothing
               closedataconn    
              %>
                              <tr> 
                                <td colspan="7" bgcolor="#868686">&nbsp;&nbsp;</td>
                              </tr>
                              <tr> 
                                <td colspan="7" 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="pinguren_del.asp?curpage=1&sort=<%=sort%>">首页&nbsp;</a> 
                                    <% else %>
                                    首页&nbsp; 
                                    <% end if %>
                                    <% if cint(curpage)>1 then %>
                                    <a href="pinguren_del.asp?curpage=<%=curpage-1%>&sort=<%=sort%>">上一页&nbsp;</a> 
                                    <% else %>
                                    &nbsp;上一页 
                                    <% end if %>
                                    <% if cint(curpage)<>cint(totalpages) then %>
                                    <a href="pinguren_del.asp?curpage=<%=curpage+1%>&sort=<%=sort%>">&nbsp;下一页 
                                    <% else %>
                                    &nbsp;下一页 
                                    <% end if %>
                                    <% if cint(curpage)<>cint(totalpages) then %>
                                    </a><a href="pinguren_del.asp?curpage=<%=totalpages%>&sort=<%=sort%>">&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>
                                      <option> 
                                      <%
									  k=1
									  do while k<=totalpages
									  %>
                                      </option>
                                      <option> 
                                      <%
									  k=1
									  do while k<=totalpages
									  %>
                                      </option>
                                      <option> 
                                      <%
									  k=1
									  do while k<=totalpages
									  %>
                                      </option>
                                      <option value="pinguren_del.asp?curpage=<%=k%>&sort=<%=sort%>">第<%=k%>页</option>
                                      <option> 
                                      <%
									  k=k+1
									  loop
									  %>
                                      </option>
                                      <option> 
                                      <%
									  k=k+1
									  loop
									  %>
                                      </option>
                                      <option> 
                                      <%
									  k=k+1
									  loop
									  %>
                                      </option>
                                    </select>
                                      
                                    <script language="javascript">
<!--

function openwin(url)
 {
   window.open(url,"_blank","height=320,width=500,resizable=no,scrollbars=yes,statue=no,toolbar=no,menubar=no,location=no,left=150,top=80");
 }
//-->
</script>
                                  </div></td>
                              </tr>
                            </table>
                          </center>
                        </div>
                      </center>
                    </div>
                  </form></td>
                <td background="../images/httable_02.gif" align="center" valign="top"> </td>
                <td background="../images/httable_02.gif" align="center" valign="top"> </td>
              </tr>
              <tr> 
                <td background="../images/httable_02.gif" height="64"> </td>
                <td background="../images/httable_02.gif"> </td>
                <td background="../images/httable_02.gif"> </td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
                <td> </td>
                <td> </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 + -
显示快捷键?