⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manage_dlsq.asp

📁 增添网站节日气氛
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!-- #include file="Inc/Head.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function confirmdel(id,page){
if (confirm("真的要删除这个代理客户?"))
window.location.href="delete_dlsq.asp?id="+id+""
}
</script>
</head>

<body>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" class="back_southidc"><strong>代理申请</strong></td>
  </tr>
  <tr>
    <td>
	<%
	set rs=server.createobject("adodb.recordset")
	sqltext="select * from Actfor  order by infotime desc"
	rs.open sqltext,conn,1,1
	dim MaxPerPage
	MaxPerPage=10
	dim text,checkpage
	text="0123456789"
	Rs.PageSize=MaxPerPage
	for i=1 to len(request("page"))
		checkpage=instr(1,text,mid(request("page"),i,1))
		if checkpage=0 then
			exit for
		end if
	next
	If checkpage<>0 then
		If NOT IsEmpty(request("page")) Then
			CurrentPage=Cint(request("page"))
		If CurrentPage < 1 Then CurrentPage = 1
	If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
	Else
	CurrentPage= 1
	End If
	If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
	Else
	CurrentPage=1
	End if

	call list

'显示帖子的子程序
Sub list()%> 

	<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" >
      <tr bgcolor="#A6EDFF" class="tr_southidc">
        <td align="center" >姓名</td>
        <td align="center" >电子邮箱</td>
        <td align="center" >申请区域</td>
        <td align="center" >意向产品</td>
        <td align="center">操作</td>
      </tr>
	                <%
if not rs.eof then
i=0
do while not rs.eof
%>
      <tr>
        <td height="14" align="center"><a href="Manage_dlsqshow.asp?id=<%=rs("id")%>"><%=rs("name")%></a></td>
        <td align="center"><%=rs("email")%></td>
        <td align="center"><%=rs("Region")%></td>
        <td align="center"><%=rs("productname")%></td>
        <td align="center">  <%response.write "<a href='javascript:confirmdel(" & rs("id") & ")'>删除</a>"
%></td>
      </tr>
	   <%
i=i+1
if i >= MaxPerpage then exit do
rs.movenext
loop

%>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  <%end if%>
    </table>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>                  <%
Response.write "<strong><font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>个代理客户</font></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
Response.write "<strong><font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) &  "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong>&nbsp;"
If currentpage > 1 Then
response.write "<strong><a href='Manage_dlsq.asp?&page="+cstr(1)+"'><font color='#000000'>首页</font></a><font color='#ffffff'> </font></strong>"
Response.write "<strong><a href='Manage_dlsq.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一页</font></a><font color='#ffffff'> </font></strong>"
Else
Response.write "<strong><font color='#000000'>上一页 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='Manage_dlsq.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一页</font></a><font color='#ffffff'> </font>"
Response.write "<a href='Manage_dlsq.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾页</font></a></strong>&nbsp;&nbsp;"
Else
Response.write ""
Response.write "<strong><font color='#000000'>下一页</font></strong>&nbsp;&nbsp;"
End if
'response.write "</td><td align='right'>"
'response.write "<font color='#000000' >转到:</font><input type='text' name='page' size=4 maxlength=4 class=smallInput 'value="&Currentpage&">&nbsp;"
'response.write "<input class=buttonface type='submit'  value='Go'  name='cndok'>&nbsp;&nbsp;"
%></td>
  </tr>
</table>
 <%
End sub
rs.close
conn.close
%> 
</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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