这两个模板是所有模板里最容易的了:list.html,show.html.

list.html关键代码:

 
  
  1. //两种写法 
  2. 1.{php $subcatsubcats = subcat('phpcms','$catid');}//当前栏目子栏目 
  3. {loop $subcats $catid $cat} 
  4. {$cat[catname]} 
  5. {$cat[url]} 
  6. {$cat[title]} 
  7. {/loop} 
  8. 2.{get sql="select * from phpcms_content where catid=$catid and status=99 order by inputtime desc" rows="20" page="$page" catid="$catid"}//这里要注意条数rows要和网站配置里的一样 
  9. {if $r[titleintact]}{$r[titleintact]}{else}{$r[title]}{/if} 
  10. {if $r[copyfrom]}{$r[copyfrom]}{else}{$r[username]}{/if} 
  11. {date('Y-m-d',$r[updatetime])} 
  12. {$r[description]} 
  13. {$pages} //分页 
  14. {/get} 

show.html关键代码:

 
  
  1. {$title} 
  2. {$content} 
  3. {$description} 
  4. {date('Y-m-d', $r[inputtime])} 
  5. {$keywords} 
  6. {$titles} //本文导航 
  7.  
  8. {tag_内容页相关信息} 
  9. {get sql="select * from phpcms_content a, phpcms_content_count c where a.contentid=c.contentid and a.catid=$catid and a.status=99 order by c.hits desc" rows="8"
  10.  <li><a title="{$r[title]}" href="{$r[url]}" >{str_cut($r[title],28,'')}</a></li>  
  11.  {/get}//相关文章 
  12.  
  13. {get sql="SELECT * FROM `phpcms_content` WHERE contentid<$contentid AND catid=$catid ORDER BY updatetime DESC" rows="1"}  
  14. {php $next=1;}  上一篇:<a href="{$r[url]}" titile="{$r[title]}">{str_cut($r[title],50)}</a>  
  15. {/get}  
  16. {if $next!=1}  上一篇:没有了  {/if} 
  17.  
  18. {get sql="SELECT * FROM `phpcms_content` WHERE contentid>$contentid AND catid=$catid ORDER BY updatetime DESC" rows="1"}   
  19. {php $front=1;}  下一篇:<a href="{$r[url]}" titile="{$r[title]}">{str_cut($r[title],50)}</a>   
  20. {/get}   
  21. {if $front!=1}  下一篇:没有了  {/if} 

基本就上面这些,另外要实现其他功能就要参照系统的了.