📄 fufeiad.asp
字号:
<!--#include file="conn.asp"-->
<%if session("china_cityadmin")="" then
response.redirect "login.asp"
end if
set rs=server.createobject("adodb.recordset")
if session("twoid")=0 then
city="city_oneid="&session("oneid")&""
else
if session("threeid")=0 then
city="city_oneid="&session("oneid")&" and city_twoid="&session("twoid")&""
else
city="city_oneid="&session("oneid")&" and city_twoid="&session("twoid")&" and city_threeid="&session("threeid")&""
end if
end if
dim sql,rs
keyword=replace(trim(request.form("keyword")),"'","")
tid=request("id")
ttwoid=request("twoid")
tthreeid=request("threeid")
if keyword <>"" then
sql="select * from china_data where ( title like '%" & keyword & "%' or text like '%" & keyword & "%' ) and money <> 0 and "&city&" and stop >= date() order by adid desc"
else
if tid<>0 then
if ttwoid=0 then dtype="type_oneid="&tid&""
if ttwoid<>0 and tthreeid=0 then dtype="type_oneid="&tid&" and type_twoid="&ttwoid&""
if ttwoid<>0 and tthreeid<>0 then dtype="type_oneid="&tid&" and type_twoid="&ttwoid&" and type_threeid="&tthreeid&""
sql="select * from china_data where "&dtype&" and money <> 0 and "&city&" and stop >= date() order by adid desc"
else
sql="select * from china_data where "&city&" and stop >= date() and money <> 0 order by adid desc"
end if
end if
rs.open sql,conn,1,1%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>现有信息列表</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<SCRIPT language=javascript>
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;
}
}
function Checked()
{
var j = 0
for(i=0;i < document.form.elements.length;i++){
if(document.form.elements[i].name == "adid"){
if(document.form.elements[i].checked){
j++;
}
}
}
return j;
}
function DelAll()
{
if(Checked() <= 0){
alert("您至少选择1条信息!");
}
else{
if(confirm("确定要删除选择的信息吗?\n此操作不可以恢复!")){
form.action="del.asp?del=data";
form.submit();
}
}
}
</SCRIPT>
<FORM name=form method=post>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#799AE1">
<tr>
<td height="20" bgcolor="#799AE1" align="center">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="55">
<select size="1" name="item" onChange="location=this.options[this.selectedIndex].value">
<option value="?id=0" <%if tid=0 then%>selected<%end if%>>全部</option>
<%set rs_lei = server.createobject("adodb.recordset")
sql = "select * from china_type"
rs_lei.open sql,conn,1,1
do while not rs_lei.eof
if rs_lei("id")<>0 and rs_lei("twoid")=0 and rs_lei("threeid")=0 then%>
<option value="?id=<%=rs_lei("id")%>"<%if tid=rs_lei("id") and ttwoid=0 then%>selected<%end if%>><%=rs_lei("name")%></option>
<%end if
if rs_lei("id")<>0 and rs_lei("twoid")<>0 and rs_lei("threeid")=0 then%>
<option value="?id=<%=rs_lei("id")%>&twoid=<%=rs_lei("twoid")%>"<%if tid=rs_lei("id") and ttwoid=rs_lei("twoid") and tthreeid=0 then%>selected<%end if%>> <%=rs_lei("name")%></option>
<%end if
if rs_lei("id")<>0 and rs_lei("twoid")<>0 and rs_lei("threeid")<>0 then%>
<option value="?id=<%=rs_lei("id")%>&twoid=<%=rs_lei("twoid")%>&threeid=<%=rs_lei("threeid")%>"<%if tid=rs_lei("id") and ttwoid=rs_lei("twoid") and tthreeid=rs_lei("threeid") then%>selected<%end if%>> <%=rs_lei("name")%></option>
<%end if
rs_lei.movenext
loop
rs_lei.close
set rs_lei = nothing%>
</select></td>
<td align="center"><font color="#FFFFFF" style="font-size:14px"><%=session("china_city")%>分站---付费分类信息</font></td>
<td width="35"><INPUT title=删除 onclick=DelAll() type=button value=删除 name=Submit></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <br>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#D6DFF7">
<tr bgcolor="#FFFFFF">
<td width="30" align="center">编号</td>
<td align="center">信息标题</td>
<td align="center">所在地区</td>
<td align="center">信息类别</td>
<td align="center">付款</td>
<td align="center">发布日期</td>
<td align="center">截止日期</td>
<td align="center">审核状态</td>
<td align="center">会员</td>
<td align="center" <%if webcardid="0" then%>style="display:none"<%end if%>>身份证</td>
<td align="center">IP</td>
<td align="center">管理操作</td>
<td width="30" align="center"><input id=chkAll
onClick=CheckAll(this.form) type=checkbox
value=checkbox name=chkAll></td>
</tr>
<%if rs.eof or rs.bof then
response.write"<tr bgcolor=#FFFFFF><td colspan='13'><p align='center'><font color='red'>暂无信息!</font></td></tr></table><br>"
response.end
else
const maxperpage=20
dim currentpage
rs.pagesize=maxperpage
currentpage=request.querystring("pageid")
if isnumeric(currentpage)=false then
response.write "<script>alert('参数错误,关闭窗口!');window.close();</script>"
response.end
end if
if currentpage="" then
currentpage=1
elseif currentpage<1 then
currentpage=1
else
currentpage=clng(currentpage)
if currentpage > rs.pagecount then
currentpage=rs.pagecount
end if
end if
dim totalput,n
totalput=rs.recordcount
if totalput mod maxperpage=0 then
n=totalput\maxperpage
else
n=totalput\maxperpage+1
end if
if n=0 then
n=1
end if
rs.move(currentpage-1)*maxperpage
i=0
do while i< maxperpage and not rs.eof%>
<tr bgcolor="#FFFFFF">
<td align="center"><%=i+currentpage*maxperpage-maxperpage+1%></td>
<td> <a href="../html/<%=rs("adid")%>.htm" target="_blank"><%=rs("title")%></a>
<%If rs("ispic")="yes" Then%>
<font color="#FF0000">图</font>
<%End If%></td>
<td align="center"><a title=<%=rs("city_one")%>/<%=rs("city_two")%>/<%=rs("city_three")%> href="#"><%=rs("city_one")%></a></td>
<td align="center"><a title=<%=rs("type_one")%>/<%=rs("type_two")%>/<%=rs("type_three")%> href="#"><%=rs("type_one")%></a></td>
<td align="center"><%=formatnumber(rs("money"),2)%></td>
<td align="center"><%=rs("date")%></td>
<td align="center"><%=rs("stop")%></td>
<td align="center">
<%If rs("mark")="yes" Then%>
<font color="#008000">已审核</font>
<%Else%>
<font color="#FF0000">未审核</font>
<%End If%>
</td>
<td align="center"><%If rs("uid")<>"" Then%>
<font color="#FF0000">是</font>
<%Else%>
否
<%End If%></td>
<td align="center" <%if webcardid="0" then%>style="display:none"<%end if%>><%If rs("cardid")<>"" Then%>
<a href="../cardid.asp?cardid=<%=rs("cardid")%>" target="_blank">查</a>
<%Else%>无<%End If%></td>
<td align="center"><%If rs("ip")<>"" Then%>
<a href="../ip.asp?ip=<%=rs("ip")%>" target="_blank">查</a>
<%Else%>无<%End If%></td>
<td align="center"><a href="editad.asp?id=<%=rs("adid")%>"><font color="green">修改</font></a></td>
<td align="center"><input type="checkbox" name="adid" value="<%=rs("adid")%>" onClick=Checked(form)></td>
</tr>
<%i=i+1
rs.movenext
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
end if%>
</table>
<br>
</td>
</tr>
</table></FORM>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#799AE1">
<tr>
<td height="20" bgcolor="#FFFFFF"><p align="center">页数:<%=currentpage%>/<%=n%>
<%k=currentpage
if k<>1 then%>
<a href="?pageid=1&type=<%=request("type")%>">首页</a>
<a href="?pageid=<%=k-1%>"&type=<%=request("type")%>>上一页</a> <%else%>
首页 上一页
<%end if%>
<%if k<>n then%>
<a href="?pageid=<%=k+1%>&type=<%=request("type")%>">下一页</a>
<a href="?pageid=<%=n%>&type=<%=request("type")%>">尾页</a>
<%else%>
下一页 尾页
<%end if%>
共有 <%=totalput%> 条信息 </td>
<form action="" method="post" name="search"><td width="240" align="center" bgcolor="#FFFFFF">关键字
<input maxLength="20" name="keyword" onfocus="this.value=''" size="18" value="<%=keyword%>">
<input type="submit" value="搜索" style="font-size: 12px" name="search"></td>
</form>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -