?? dlman.asp
字號:
<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checksession.asp" -->
<!-- #include file="common.asp" -->
<%
Response.Buffer =false
Response.Expires=-1
content=rtrim(ltrim(Request("findcontent")))'查找的關鍵字
set HyRs=server.CreateObject("adodb.recordset")
if len(content)=0 then '判斷屬于查找還是列出所有信息
sql="select * from dlclub where ispassed=false order by id desc"
else
sql="select * from dlclub where ispassed=false "
sql=sql&" and dlname like '%" & content & "%'"
sql=sql&" order by id desc"
end if
HyRs.Open sql,conn
j=HyRs.RecordCount
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" href="include/e1.css" type="text/css">
</head>
<script>
function openwin(page,size)
{
window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+ size);
}
function openwin1(page,size)
{
window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=350,width="+ size);
}
function makesure()
{
return(confirm("此操作十分危險,請你考慮清楚,務必慎重!\n此操作將永久刪除此已確認的會員,請確認此會員是否有下線,否則不能刪除\n你確定要刪除此會員嗎?"))
}
function makesure1()
{
return(confirm("點擊此操作代表你已經給此客戶發放了獎金,你確定要發放獎金嗎?"))
}
function makesureConfirm()
{
return(confirm("此操作將確認會員,你確定要確認嗎?"))
}
</script>
<body leftmargin="10" topmargin="10" marginwidth="0" marginheight="0">
<form method="post" action="dlman.asp" id="form1" name="form1">
<table width="100%" border="0" height="21" cellpadding="0" cellspacing="0">
<tr>
<td width="80%"> <div align="center"> 查找:
<input id="findcontent" name="findcontent" value="輸入需要查找的關鍵字" size="20" onFocus="this.value=''">
<input type="image" value="submit" src="Image/027.gif" id="image1" name="image1">
共計: <font color=red>
<% =j%>
</font> 人 </div></td>
<td width="20%"> </td>
</tr>
</table>
</form>
<%
if j>0 then
dim i
i=1
const pagesize=10
HyRs.PageSize = pagesize
total=HyRs.PageCount
pageno=Request("pageno")
if pageno="" then pageno=1
if not isnumeric(pageno) and pageno<>"" then
%>
<script>alert("請輸入正確的頁碼");
window.history.back();</script>
<%Response.End
End if
if (pageno-1)*pagesize>=j then
if (j mod pagesize)=0 then
pageno= j \ pagesize
else
pageno= j \ pagesize + 1
end if
end if
if pageno<1 then
%>
<script>alert("頁碼數不能小于1");
window.history.back();</script>
<%Response.End
End if
if (pageno>65535) then
%>
<script>alert("頁碼數不能大于總數!");
window.history.back();</script>
<%Response.End
end if
if (clng(pageno)>clng(total)) then %>
<script>alert("頁碼數不能大于總數!");
window.history.back();</script>
<%
Response.End
end if
pageno=cint(pageno)
%>
<table border="1" cellpadding="0" cellspacing="0" width="98%" bordercolordark="#e0f4ff" bordercolorlight="#162d6b" height="47">
<tr class="td3">
<td width="8%" align="center"> 會員帳號</td>
<td width="13%"> <div align="center">信譽用戶名稱</div></td>
<td width="8%"> <div align="center">信譽用戶ID</div></td>
<td width="9%" align="center"> 推薦人帳號</td>
<td width="16%"> <div align="center"><font color="#FFFFFF">注冊時間</font></div></td>
<td width="16%"> <div align="center"><font color="#FFFFFF">審核時間</font></div></td>
<td width="8%" align="center"> 電子貨幣</td>
<td width="4%"> <div align="center"><font color="#FFFFFF">
單數 </font></div></td>
<td width="7%"> <div align="center"><font color="#FFFFFF">修改資料</font></div></td>
<td width="4%" align="center"> 審核</td>
<td width="4%"> <div align="center"><font color="#FFFFFF">刪除</font></div></td>
<!--<td width="6%"> <div align="center"><font color="#FFFFFF">刪除</font></div></td>-->
</tr>
<%
HyRs.absolutepage=pageno
dim x
x=2
while (not HyRs.eof) and (i<=pagesize)
if x mod 2 then
%>
<tr class="td1">
<%
else
%>
<tr height="25">
<%
end if
%>
<td height="22" align="center"> <%set hh=conn.execute("select * from hyclub where id="&hyrs("hid")&"")
response.write hh("hynumber")
hh.close
set hh=nothing%></td>
<td height="22"><div align="center"><a href="javascript:openwin('hyview.asp?id=<% =HyRs("id")%>',800)">
<%=HyRs("dlName")%></a>
</div></td>
<td height="22"><div align="center"><%=HyRs("id")%> </div></td>
<td height="22" align="center"> <%set hh=conn.execute("select * from hyclub where id="&hyrs("tid")&"")
response.write hh("hynumber")
hh.close
set hh=nothing%></td>
<td height="22"> <div align="center">
<% =HyRs("regTime")%>
</div></td>
<td height="22" width="16%"> <div align="center">
<% =HyRs("checkTime")%>
</div></td>
<td height="22" align="center"><%=hyrs("allmoney")%></td>
<td height="22"><div align="center"><%=HyRs("orders")%> </div></td>
<td height="22"><div align="center"><a href="dlmod.asp?id=<% =HyRs("id")%>&pageno=<% =pageno%>&findcontent=<%=content%>&checked=1"><img src="Image/b1.gif" width="20" height="20" border="0"></a></div></td>
<td height="22" align="center" width="4%"><a href="dlcheck.asp?id=<%=hyrs("id")%>&checked=yes" onclick="return makesureConfirm();">開通</a></td>
<td height="22"> <div align="center">
<a href="dlOKdel.asp?id=<% =HyRs("id")%>&pageno=<% =pageno%>&findcontent=<%=content%>" onclick="return makesure();">刪除</a>
</div></td>
<%
HyRs.movenext
i=i+1
x=x+1
wend %>
</tr>
<%
else
Response.Write "還沒有確認的會員!<a href='javascript:history.back()'>返回</a>"
end if%>
</table>
<p></p>
<%if j>0 then%>
<table align="center">
<tr>
<form name="thisform1" method="Post" action="dlman.asp?findcontent=<%=content%>">
<td>到第
<input type="text" name="pageno" value="<% =pageno%>" size="3">
頁<a onclick="javascript:thisform1.submit();">GO</a> </font></td>
</form>
<td>第
<% =pageno %>頁
/共
<% =total%>
頁</font></td>
<% if pageno<=1 then %>
<td><font color="#cccccc">首頁</font></td>
<td><font color="#cccccc">上一頁</font></td>
<% else %>
<td><a href="dlman.asp?pageno=1&findcontent=<%=content%>"><font face="Webdings" color="#FFFFFF">9</font>首頁</font></a></td>
<td><a href="dlman.asp?pageno=<%=pageno-1%>&findcontent=<%=content%>">上一頁</font></a></td>
<%end if%>
<% if pageno>=total then %>
<td><font color="#cccccc">下一頁</font></td>
<td><font color="#cccccc">尾頁</font></td>
<%else%>
<td><a href="dlman.asp?pageno=<%=pageno+1%>&findcontent=<%=content%>">下一頁</font></a></td>
<td><a href="dlman.asp?pageno=<%=total%>&findcontent=<%=content%>">尾頁</font></a></td>
<% end if%>
</tr>
</table>
<%end if%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -