{// 引入标签库 } function get_rel_data($id,$topic) { if($topic['rel_table']=='buycomment') { //购物分享 $message_item = M("Message")->getById($topic['rel_id']); $name = M($message_item['rel_table'])->where("id=".$message_item['rel_id'])->getField("name"); $str = "[".l("COMMENT_GOODS")."]".msubstr($name,0,20).""; } else $str = l("NO_REL_DATA"); return $str; }
{%VIEW} {%BACK_LIST}

{%TITLE}: | {$vo.title}[{%MODIFY}]
{%CONTENT}: | {$vo.content|nl2br|decode_topic}[{%MODIFY}] {$vo.content}
{%CLICK_COUNT}: | {$vo.click_count}
{%TOPIC_TAGS}: |
{%TOPIC_CATE_NAME}: | checked="checked" />{$cate_item.name}
{%REPLY_COUNT}: | {$vo.reply_count}
{%GOOD_COUNT}: | {$vo.good_count}
{%BAD_COUNT}: | {$vo.bad_count}
{%REL_DATA}: | echo get_rel_data($vo['id'],$vo);
{%TOPIC_IMG}: | x
推荐: |
达人秀封面图: |