默認(rèn)文章列表頁(yè)瀏覽,來(lái)源:
{pc:content action="lists" catid="$catid" num="9" order="id DESC LIMIT 1,9--" page="$page" moreinfo="1"}
{date('d',$val['inputtime'])}
{date('M',$val['inputtime'])}
{date('Y',$val['inputtime'])}
{loop $data $key $val}
{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-".$modelid."-".$val[id]));$views=$get_db[views];}
{php list($copyfrom) = explode('|', $val['copyfrom'])}
{/loop}
{$pages}
{/pc}
自定義模型列表瀏覽來(lái)源:
自定義來(lái)源字段:laiyuan
{pc:content action="lists" catid="$catid" num="9" order="id DESC" page="$page" moreinfo="1"}
{date('d',$val['inputtime'])}
{date('M',$val['inputtime'])}
{date('Y',$val['inputtime'])}
{loop $data $key $val}
{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-".$modelid."-".$val[id]));$views=$get_db[views];}
{php list($laiyuan) = explode('|', $val['laiyuan'])}
{/loop}
{$pages}
{/pc}