<%rs.open "select top 20 * from Ad where TypeCode='3' AND PicPath='' AND AdOrder<=10 order by AdOrder asc,id desc",conn,1,1%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
	<td height="23" align="center"><img src="/images/r_9.gif"></td>
  </tr>
  <tr> 
	<td>
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
		  <td>
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <% while not rs.eof%>
			  <tr> 
				<td valign="bottom" style="padding-left: 10" height="25">&nbsp;&nbsp;<img src='images/left_dian.gif' border=0 align='absmiddle'>&nbsp;&nbsp;&nbsp;<%if rs("LinkUrl")&""<>"" then%><a href="<%=rs("LinkUrl")%>"<%if rs("AltText")&""<>"" then%> title="<%=rs("AltText")%>"<%end if%> target="_blank"><%end if%><%if rs("PicPath")&"" <> "" then Response.Write ShowPicture(rs("PicPath")&"",155,60,"") else Response.write "<font style='font-size: 14px'>" & rs("AltText") & "</font>" end if%></a></td>
			  </tr>
			  <%rs.movenext
			  wend%>
			</table>
		  </td>
		</tr>
	  </table>
    </td>
  </tr>
  <tr> 
	<td height="8"></td>
  </tr>
</table>
<%rs.cancel:rs.close%>
<%rs.open "select top 20 * from Ad where TypeCode='3' AND PicPath='' AND AdOrder>10 order by AdOrder asc,id desc",conn,1,1%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
	<td height="23" align="center"><img src="/images/r_8.gif"></td>
  </tr>
  <tr> 
	<td>
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
		  <td>
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <% while not rs.eof%>
			  <tr> 
				<td valign="bottom" style="padding-left: 10" height="25">&nbsp;&nbsp;<img src='images/left_dian.gif' border=0 align='absmiddle'>&nbsp;&nbsp;&nbsp;<%if rs("LinkUrl")&""<>"" then%><a href="<%=rs("LinkUrl")%>"<%if rs("AltText")&""<>"" then%> title="<%=rs("AltText")%>"<%end if%> target="_blank"><%end if%><%if rs("PicPath")&"" <> "" then Response.Write ShowPicture(rs("PicPath")&"",155,60,"") else Response.write "<font style='font-size: 14px'>" & rs("AltText") & "</font>" end if%></a></td>
			  </tr>
			  <%rs.movenext
			  wend%>
			</table>
		  </td>
		</tr>
	  </table>
    </td>
  </tr>
  <tr> 
	<td height="8"></td>
  </tr>
</table>
<%rs.cancel:rs.close%>
<%rs.open "select top 20 * from Ad where TypeCode='3' AND PicPath<>'' order by AdOrder asc,id desc",conn,1,1%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
	<td height="23" background="/images/index_11.gif" align="center"><img src="/images/r_5.gif" width="80" height="20"></td>
  </tr>
  <tr> 
	<td>
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
		  <td bgcolor="FFF7E3">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <% while not rs.eof%>
			  <tr> 
				<td valign="bottom" align="center"><%if rs("LinkUrl")&""<>"" then%><a href="<%=rs("LinkUrl")%>"<%if rs("AltText")&""<>"" then%> title="<%=rs("AltText")%>"<%end if%> target="_blank"><%end if%><%=ShowPicture(rs("PicPath")&"",176,60,"")%></a></td>
			  </tr>
			  <%rs.movenext
			  wend%>
			</table>
		  </td>
		</tr>
	  </table>
    </td>
  </tr>
</table>
<%rs.cancel:rs.close%>