$category['list_row']);$__PAGE__->setConfig("header",$page_style['header']);$__PAGE__->setConfig("theme",$page_style['theme']);echo $__PAGE__->show(); ?>
/*自己小修改了下,不知道,官方有沒有別的辦法,
標籤解析程式碼*/
/* 列表資料分頁 */
public function _page($tag){
$cate = $tag['cate'];
$listrow = $tag['listrow'];
$header=$tag['header'];
$theme=$tag['theme'];
$parse = '<?php ';
$parse .= '$__PAGE__ = new \Think\Page(get_list_count(' . $cate . '), ' . $listrow . ');';
$parse .=empty($header)?'':'$__PAGE__->setConfig("header",' .$header. ');';
$parse .=empty($theme)?'':'$__PAGE__->setConfig("theme",' .$theme. ');';
$parse .= 'echo $__PAGE__->show();';
$parse .= ' ?>';
return $parse;
}