上面是門戶首頁的,這個是標簽列表頁的
- <div class="kind_show" style="">
- <!--{if $threadlist}-->
- <!--{loop $threadlist $thread}-->
- <div class="photo_thumb">
-
- <div style="padding:0px; position: relative;">
- <a href="forum.php?mod=viewthread&tid=$thread[tid]" target="_blank">
- <!--{eval $table='forum_attachment_'.substr($thread['tid'], -1);}-->
- <!--{eval $pic = DB::fetch_first("SELECT aid,tid FROM ".DB::table($table)." WHERE tid = '$thread[tid]' AND isimage != '0' "); }-->
- <!--{eval $photo = DB::fetch_all("SELECT aid FROM %t WHERE tid= %d AND isimage != '0' ", array("$table","$thread[tid]"), 'aid'); $pic_num = count($photo);}-->
- <img style="width:210px; height:310px;" src="{eval echo(getforumimg($pic[aid],0,400,600))}" title="$thread[subject]">
- </a>
-
- <div class="bkfenlei" style="position:absolute; left:5px; top:10px">
- <a style="background:rgba(0,0,0,0.5); color:#fff; display: inline-block; border-radius:20px; font-size: 12px; padding:2px 5px;}" href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank" class="xi1">$thread[forumname]</a>
- </div>
-
- <div class="readperm-price" style="position:absolute; right:60px; top:10px; z-index:2; font-size:12px;">
- <!--{if $thread['readperm']}--><em class="readperm" title="閱讀權限 $thread[readperm]" style="background-color:rgba(225,192,116,0.5); border-radius:5px; color:#000; padding:2px 5px;"><!--權限 <em style="color:#F00;">$thread[readperm]</em>--><img style="display: inline-block; vertical-align: middle;" src="{IMGDIR}/folder_lock.gif" /></em><!--{/if}--><!--閱讀權限={lang readperm}-->
- <!--{if $thread['price'] > 0}--><em class="price" title="售價" style="background-color:rgba(236,0,74,1); border-radius:5px; color:#FFF; padding:2px 5px; margin-left:2px;"><em style="color:#FFF;">$thread[price] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]}</em></em><!--{/if}--><!--售價={lang price}-->
- </div>
-
- {if $pic_num > 1}
- <div class="pic_num" style="padding:0px 5px; position:absolute; right:10px; top:10px; font-size:12px;">
- <em class="" title="圖片數量" style="background:rgba(0,0,0,0.5); border-radius:10px; color:#FFF; padding:2px 5px;">{$pic_num}P</em>
- </div>
- {/if}
-
- <div class="tags" style="position:absolute; left:10px; bottom:5px; font-size:12px;">
- <!--{eval}-->
- $post = DB::fetch_first("SELECT tags FROM ".DB::table(forum_post)." WHERE first=1 AND tid='$thread[tid]' ");
- $tagarray_all = $posttag_array = array();
- $tagarray_all = explode("\t", $post['tags']);
- if($tagarray_all) {
- foreach($tagarray_all as $var) {
- if($var) {
- $tag = explode(',', $var);
- $posttag_array[] = $tag;
- $tagnames[] = $tag[1];
- }
- }
- }
- $post['tags'] = $posttag_array;
- <!--{/eval}-->
-
- <!--{loop $post[tags] $var}-->
- <!--{eval $color1 = rand(1,255); $color2 = rand(1,255); $color3 = rand(1,255); $color4 = rand(1,255);}-->
- <li style="float:left; list-style:none;">
- <a href="misc.php?mod=tag&id={$var[0]}&type=thread" class="" style="display:block; padding:2px 5px; margin:0px 5px 5px 0px; color:#FFF; border-radius:10px; background-color:rgba($color1,$color2,$color3,$color4); border:1px solid rgba($color1,$color2,$color3,$color4); text-shadow: 0 0 3px #000,0 0 3px #fd83f2;" target="_blank">{$var[1]}</a>
- </li>
- <!--{/loop}-->
- </div>
- </div>
-
- <div class="tagitem-title">
- <a href="forum.php?mod=viewthread&tid=$thread[tid]" title="$thread[subject]">$thread[subject]</a>
- </div>
-
- <div class="clear"></div>
-
- <div class="cont-list-info fc-gray" style="margin:10px 0px; padding:0px 5px;">
- <span>
- <i style="margin-right:5px;">$thread[views] 人氣</i>
- <i style="margin-right:5px;">$thread[replies] 評論</i>
- <i style="margin-right:5px;">$thread[recommends] 推薦</i>
- </span>
- </div>
-
- <div class="author-time" style="padding:0px 5px; margin-bottom:20px;">
- <a href="home.php?mod=space&uid=$thread[authorid]" c=1 class="user-avatar showMemberCard" title="$thread[author]" target="_blank">
- <img style="float:left; border-radius:100%;" src="{echo avatar($thread[authorid],'big',1);}" width="30" height="30" alt="">
- <em style="margin-left:10px;">$thread[author]</em>
- </a>
- <span class="time y">$thread[dateline]</span>
- </div>
-
- </div>
- <!--{/loop}-->
- <!--{else}-->
- <!--{template forum/nomessage}-->
- <!--{/if}-->
- </div>
復制代碼
|