?? link.asp
字號:
<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<link href="inc_style.css" rel="stylesheet" type="text/css">
<body>
<p align="center">
<script>
function loadThreadFollow(t_id,b_id){
var targetImg =eval("document.all.followImg" + t_id);
var targetDiv =eval("document.all.follow" + t_id);
if ("object"==typeof(targetImg)){
if (targetDiv.style.display!='block'){
targetDiv.style.display="block";
}else{
targetDiv.style.display="none";
}
}
}
</script>
<SCRIPT language=JavaScript>
function showoperatealert(id)
{
if (id==1)
{
{
thisForm.target='_self';
thisForm.action="link_yz.asp";
thisForm.submit();
}
}
if (id==2)
{
{
thisForm.target='_self';
thisForm.action="link_del.asp";
thisForm.submit();
}
}
}
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkall' )
e.checked = form.chkall.checked;
}
}
//-->
</SCRIPT>
<img src="img/list_bo.gif">
</p>
<div align="center">
<table border="0" cellpadding="0" style="border:1px solid #CCCCCC; border-collapse: collapse" width="86%" height="1">
<tr>
<td width="100%" height="24" colspan="6">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="25">
<tr>
<td width="864" height="24">
<p align="center"><a href="?cnmai=1">未(<font color="#FF0000">ⅹ</font>)驗證鏈接</a>---<a href="?cnmai=2">已(√)驗證的鏈接</a>---<a href="?cnmai="><font color="#FF0000">顯示全部鏈接</font></a></td>
</tr>
</table>
</td>
</tr>
<FORM name=thisForm action="" method=POST>
<%
dim rs,sql,k,cnmai
dim ThisPage,Pagesize,Allrecord,Allpage
k=1
set rs = Server.CreateObject("ADODB.RecordSet")
cnmai=trim(request("cnmai"))
Select Case cnmai
Case "1"
sql="select * from [link] where yanz<>1 order by jrsj desc"
Case "2"
sql="select * from [link] where yanz=1 order by jrsj desc"
Case Else
sql="select * from [link] order by jrsj desc"
End Select
rs.open sql,conn,1,1
if rs.eof then
response.write "<li>沒有記錄"
response.end
end if
if request("page")="" then
ThisPage=1
else
ThisPage=request("page")
end if
rs.Pagesize=15
Pagesize=rs.Pagesize
Allrecord=rs.Recordcount
Allpage=rs.Pagecount
if ThisPage<1 then
ThisPage=1
end if
On Error Resume Next
rs.move (ThisPage-1)*Pagesize
%>
<tr>
<td width="5%" height="24" align="center" bgcolor="#FEEEBC" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">選擇</td>
<td width="22%" height="24" bgcolor="#FEEEBC" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">
網站名稱</td>
<td width="22%" height="24" bgcolor="#FEEEBC" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">
<p align="center">網站地址</td>
<td width="19%" height="24" bgcolor="#FEEEBC" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">
<p align="center">LOGO圖片</td>
<td width="6%" height="24" bgcolor="#FEEEBC" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC">
<p align="center">驗證</td>
<td width="25%" height="24" bgcolor="#FEEEBC" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#CCCCCC"> </td>
</tr>
<%
dim uid
do while not rs.eof
uid=rs("id")
%>
<tr>
<td width="5%" height="24" align="center" style="border-top-style: solid; border-top-width: 1">
<INPUT type=checkbox value="<%=uid%>" name=selectedid></td>
<td width="22%" height="24" style="border-top-style: solid; border-top-width: 1"><a target="_blank" href=<%=rs("url")%>><%=rs("web")%></a></td>
<td width="22%" height="24" align="center" style="border-top-style: solid; border-top-width: 1"><a target="_blank" href=<%=rs("url")%>><%=rs("url")%></td>
<td width="19%" height="24" align="center" style="border-top-style: solid; border-top-width: 1"><%if rs("logo")<>"" and rs("logo")<>"http://" then%><IMG src="<%=rs("logo")%>" width="88" height="31"><%else%>沒有LOGO圖片<%end if%></td>
<td width="6%" height="24" align="center" style="border-top-style: solid; border-top-width: 1"><%if rs("yanz")=1 then%>√<%else%><b><font color="#FF0000">ⅹ</font></b><%end if%></td>
<td width="25%" height="24" style="border-top-style: solid; border-top-width: 1">
<p align="center"><%if rs("yanz")=0 then%><a href="link_yz.asp?selectedid=<%=uid%>">通過驗證</a><%end if%> <a href="link_e.asp?selectedid=<%=uid%>">修改</a> | <a href="link_del.asp?selectedid=<%=uid%>">刪除該鏈接</a></td>
</tr>
<%
k=k+1
rs.movenext
if k>=Pagesize then exit do
loop
rs.close
set rs=nothing
closedb
%>
<tr>
<td width="100%" height="1" colspan="6" style="border-top-style: solid; border-top-width: 1">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="1">
<tr>
<td height="33" width="863" colspan="4">
<p align="center">
<INPUT onclick=CheckAll(this.form) type=checkbox value=on name=chkall>選中所有 <input onclick=javascript:showoperatealert(1) type="submit" value="驗證" name="B1">
<input onclick=javascript:showoperatealert(2) type="submit" value="刪除" name="B2"></td>
</tr>
<tr>
<td height="25" width="151" align="center" bgcolor="#FEEEBC">
共有 <font color="#CC5200"><%=Allrecord%></font> 條記錄</td>
<td width="126" align="center" bgcolor="#FEEEBC">
共 <font color="#CC5200"><%=Allpage%></font> 頁</td>
<td width="220" align="center" bgcolor="#FEEEBC">
現在是第
<font color="#CC5200"><%=ThisPage%></font> 頁</td>
<td width="242" align="center" bgcolor="#FEEEBC">
<%
if ThisPage<2 then
response.write "<font color=""#808080"">首頁</font> "
response.write "<font color=""#808080"">上一頁</font> "
else
response.write "<a href=?page=1&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&cnmai="&cnmai&">首頁</a> "
response.write "<a href=?page="&ThisPage-1&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&cnmai="&cnmai&">上一頁</a> "
end if
if Allpage-ThisPage<1 then
response.write "<font color=""#808080"">下一頁</font> "
response.write "<font color=""#808080"">尾頁</font> "
else
response.write "<a href=?page="&(ThisPage+1)&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&cnmai="&cnmai&">下一頁</a> "
response.write "<a href=?page="&Allpage&"&t1="&trim(request("t1"))&"&t2="&trim(request("t2"))&"&t3="&trim(request("t3"))&"&cnmai="&cnmai&">尾頁</a> "
end if
%></td>
</tr>
<tr>
<td height="1" width="595" colspan="4">
<p align="right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" height="39" colspan="6" bordercolor="#999999">
<p align="center"><img style="CURSOR: hand" onclick=javascript:showoperatealert(1) border="0" src="img/ershou_2.gif">
<img style="CURSOR: hand" onclick=javascript:showoperatealert(2) border="0" src="img/ershou_1.gif"></td>
</tr>
</form>
<tr>
<td width="100%" height="1" colspan="6" style="border-top-style: solid; border-top-width: 1"></td>
</tr>
</table>
</div>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -