只需一步,快速开始
//显示指定相册 $list = array(); $query = $_SGLOBAL['db']->query("SELECT * FROM ".tname('album')." where uid = 3 and albumid >= 9 and albumid <= 35 and albumname like '作品_%' ORDER BY updatetime DESC LIMIT 0,30"); while ($value = $_SGLOBAL['db']->fetch_array($query)) { if(ckfriend($value)) { $value['pic'] = mkpicurl($value); $list[] = $value; } }
<div class="albums_list"> <table cellspacing="6" cellpadding="0" width="100%"> <tr> <!--{loop $list $key $value}--> <td align="center" width="16%" class="album"> <a href="space.php?uid=$value[uid]&do=album$do&id=$value[albumid]"><img src="$value[pic]" alt="中国纹身网图片库之:$value[albumname]" /></a><br /> <a href="space.php?uid=$value[uid]&do=album$do&id=$value[albumid]">$value[albumname]($value[picnum]张)</a> </td> <!--{if ($key+1)%6==0}--></tr><tr><!--{/if}--> <!--{/loop}--> </tr> </table> </div>
您需要 登录 才可以下载或查看,没有账号?立即注册
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-12-26 01:10 , Processed in 0.027541 second(s), 5 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.