dz论坛列表页代码注释
<!--{template common/header}--><!--门户-e之路网络科技-->
<!--{eval $list = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G</a> <em>›</em>
<a href="$_G">{lang portal}</a> <em>›</em>
<!--{loop $cat $value}--> <a href="{$portalcategory[$value['catid']]['caturl']}">$value</a><em>›</em><!--{/loop}-->
$cat
</div>
</div>
<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!----><div id="diy1" class="area"></div><!---->
</div>
<!--列表开始-->
<div id="ct" class="ct2 wp cl">
<!--列表左侧-->
<div class="mn">
<!--{ad/articlelist/mbm hm/1}--><!--{ad/articlelist/mbm hm/2}-->
<!----><div id="listcontenttop" class="area"></div><!---->
<div class="bm">
<div class="bm_h cl">
<!--{if $_G && !$_GET['archiveid']}--><a href="portal.php?mod=rss&catid=$cat" class="y xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}--> <!--订阅-->
<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
<a href="portal.php?mod=portalcp&ac=article&catid=$cat" class="y xi2 addnew">{lang article_publish}</a> <!--发布文章-->
<!--{/if}-->
<h1 class="xs2">$cat</h1><!--标题-->
</div>
<!--{if $cat}-->
<div class="bm_c bbda">
{lang sub_category}:
<!--{eval $i = 1;}-->
<!--{loop $cat $value}-->
<!--{if $i != 1}--><span class="pipe">|</span><!--{/if}--><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value</a><!--{eval $i--;}-->
<!--{/loop}-->
</div>
<!--{/if}-->
<!--文章列表开始-->
<div class="bm_c xld">
<!--{loop $list['list'] $value}-->
<!--{eval $highlight = article_title_style($value);}-->
<!--{eval $article_url = fetch_article_url($value);}-->
<dl class="bbda cl">
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2" $highlight>$value</a> <!--{if $value == 1}-->({lang moderate_need})<!--{/if}--></dt><!--文章标题-->
<dd class="xs2 cl"><!--文章简介及图片-->
<!--{if $value}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value" alt="$value" class="tn" /></a></div><!--{/if}--><!--文章图片-->
$value <!--文章简介-->
</dd>
<dd><!--发布时间 编辑 删除 等等-->
<!--{if $value && $cat}-->{lang category}: <label><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value</a></label> <!--{/if}-->
<span class="xg1"> $value</span><!--发布时间-->
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
<span class="xg1">
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value">{lang edit}</a></label><!--编辑-->
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value" id="article_delete_$value">{lang delete}</a></label><!--删除-->
</span>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div>
<!--文章列表结束-->
<!----><div id="listloopbottom" class="area"></div><!---->
</div>
<!--{ad/articlelist/mbm hm/3}--><!--{ad/articlelist/mbm hm/4}-->
<!--{if $list['multi']}--><div class="pgs cl">{$list['multi']}</div><!--{/if}--> <!--翻页-->
<!----><div id="diycontentbottom" class="area"></div><!---->
</div>
<!--@左侧结束-->
<!--右侧开始-->
<div class="sd pph">
<div class="drag">
<!----><div id="diyrighttop" class="area"></div><!---->
</div>
<!--{if $cat}-->
<div class="bm">
<div class="bm_h cl">
<h2>{lang category_related}</h2>
</div>
<div class="bm_c">
<ul class="xl xl2 cl">
<!--{loop $cat $value}-->
<li>• <a href="{$portalcategory[$value['catid']]['caturl']}">$value</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<div class="drag">
<!----><div id="diy2" class="area"></div><!---->
</div>
</div>
<!--@右侧结束-->
</div>
<!--@列表结束-->
<div class="wp mtn">
<!----><div id="diy3" class="area"></div><!---->
</div>
<!--{template common/footer}-->
posted on 2017-08-03 23:50 alleyonine 阅读(459) 评论(0) 编辑 收藏 举报