重拾PHPCMS之旅

1、基础标签

{CSS_PATH}

{JS_PATH}

{IMG_PATH}

{WEB_PATH}

{APP_PATH}

{siteurl($siteid)}

/index.php?m=vote
/index.php?m=link

{catpos($catid)}
{$CATEGORYS[$catid][url]}
{$CATEGORYS[$catid][catname]}
{siteurl($siteid)} ({date('Y-m-d',$r[inputtime])}) {thumb($thumb, 260, 356)} {get_memberavatar($_userid, '', 90)} 30/45/90/180 // 分页栏 {$pages} {L('register')} // 投票 {if $voteid} {/if} {if $allow_visitor==1}

虚拟内容

{else}
阅读此信息需要您支付 {$readpoint} {if $paytype}元{else}点{/if},点击这里支付
{/if} json_encode(array('status'=>$status, 'data'=>$msg))

 

2、栏目调用

{pc:content action="category" catid="1" num="15" siteid="$siteid" order="listorder ASC"}
  {loop $data $r}
    {$r[catname]} |  
  {/loop}
{/pc}


{loop $arrchild_arr $cid}
  {$CATEGORYS[$cid][catname]}
{/loop}

 

3、数据调用

{pc:content action="hits" catid="6" num="5" order="views desc" return="data2"}
    {loop $data2 $key2 $item2} {pc:get sql="select * from ey_book, ey_book_data where ey_book.id = $item2[id] and ey_book.id = ey_book_data.id" return="data"} {loop $data $key $item}
  • {str_cut($item[title], 62)}

    {$item[author]}

    标签:
    历史
    纪实
    • {$item[pressdate]}
    • {$item2[views]}
  • {/loop} {/pc} {/loop}
{/pc}
    {pc:get sql="select * from ey_book, ey_book_data where ey_book.id = ey_book_data.id and ey_book_data.readpoint = 0 order by listorder desc" return="data"} {loop $data $key $item}
  • {/loop} {/pc}
    {pc:content action="lists" catid="6" order="listorder ASC" num="10" moreinfo="1"} {loop $data $key $item}
  • {/loop} {/pc}

 

你可能感兴趣的:(phpcms)