发布

{php} include_once(Core.'/class/pages_ajax_class_phpapp.php'); $tid=intval($this->GET['tid']); $order='ORDER BY mid DESC'; $ajaxpage=new AjaxPages(10,$this->GET['page'],$tid,$this->GET['sqlorder'],$this->GET['iforder'],'AjaxMessage',"SELECT a.*,b.username FROM ".$this->GetTable('task_message')." AS a LEFT JOIN ".$this->GetTable('member')." AS b ON a.uid=b.uid WHERE a.tid='$tid' $order"); $list=$ajaxpage->ShowResult(); $total=$ajaxpage->GetTotal(); {/php} {if !empty($list)}

留言 ({echo $total})

{for $list $value}
{echo $this->GetUserAvatar($value['uid'])}

{echo $value['username']} {echo $this->Date("Y/m/d H:i:s",$value['dateline'])}

{echo $this->str($value['content'],200,0,1,1,0,1)}

回复

{/for} {if $ajaxpage->ShowPages()}
{echo $ajaxpage->ShowPages()}
{/if} {else}

暂时没有留言!

{/if}