case "gallery"
    tmp_title="精彩贴图"
    tmp_tit="贴图标题"
    tmp_count="浏览次数"
    tmp_table="gallery"
    tmp_record="id,name,username,tim,counter"
    tmp_where="types='paste'"
    tmp_img="dian"
调用 <%call main_center_list("gallery",4,12,0)%> 
<table cellspacing=1 cellpadding=4 class=table>
<tr><td class=td0>  <img src="/skin/skin_1/small/m_vouch.gif" border=0> 点击排行</td></tr>
<tr class=bg_td><td>
<table border=0 cellspacing=1 cellpadding=4 width='100%'>
<%
sql="select top 20 id,name,from gallery where hidden=1 order by id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
  id=rs("id")
  name=rs("name")
  response.write "    <tr><td ><a href='news_view.asp?id="&id&"' target=_blank >"&joekoe_cms.code_html(name,1,16)&"</a></td></tr>"
  rs.movenext
loop
rs.close
%>
    </table>
</td></tr>
</table>

 显示被隐藏内容
sub vouch_images()
dim h_id,h_name,h_cname,i
%>
<table cellspacing=0 cellpadding=0 class=table>
<tr><td class=td0>  <img src="/skin/skin_1/small/m_vouch.gif" border=0> 点击排行</td></tr>
<tr class=bg_td><td>
<table border=0 cellspacing=0 cellpadding=4 width='100%'>
<%
 i=0
sql="select top 25 id,name,cname,counter from gallery where hidden=1and types='paste' order by counter desc,id desc"
set rs=joekoe_cms.exec(sql,1)
do while not rs.eof
  h_id=rs("id")
  h_name=rs("name")
  h_cname=rs("cname")
  i=i+1
  response.write "    <tr><td ><font class=tims>"&i&"</font><a href='/vouch/gallery_view.asp?id="&h_id&"' target=_blank >"&joekoe_cms.code_html(h_name,1,16)&"</a></td><td><a href='/vouch/gallery.asp?action=search&types=paste&c_id=1&sea_type=cname&sea_term=all&keyword="&h_cname&"'>"&joekoe_cms.code_html(h_cname,1,8)&"</a></td></tr>"
  rs.movenext
loop
rs.close
%>
    </table>
</td></tr>
</table>
<%
response.write ukong
end sub
%>

 隐藏内容
该内容已经被作者隐藏,只有会员才允许查阅 
登录 | 
注册 
					   
					   
					 
					    
					   
					    [本日志由 cmscn 于 2007-06-05 08:50 AM 编辑]
						
文章来自: 本站原创
						
引用通告: 查看所有引用 | 
我要引用此文章
					   	
						 
Tags: 
						 
相关日志:
						 
						 
					    
					   评论: 8 | 引用: 0 | 查看次数: 835