phpcmsv9_首页调用标签_最新文章调用_首页栏目列表调用

phpcmsv9同时调用多个栏目最新文章标签,其中有_时间标签_栏目标题_文章标题

 

{pc:get sql=”Select `n`.`inputtime`,`n`.`url`,`n`.`title`,`c`.`catname`,`c`.`url` as `c_url` FROM `v9_news` as `n` left join `v9_category` as `c` on `n`.`catid` = `c`.`catid`

where `c`.`catid` in (6,7,8,9,10) order by `n`.`id` desc” num=”10″ cache=”3600″ page=”” dbsource=”” return=”data”}

{loop $data $key $val}

<li><span class=”date”>{date(‘Y-m-d H:i:s’,$val[inputtime])}</span>[<a href=”{$val[c_url]}” target=”_blank”>{$val[catname]}</a>] <a href=”{$val[url]}” title=”{$val[title]}”

 

target=”_blank”>{$val[title]}</a></li>

{/loop}

{/pc}

 

phpcmsv9首页头条

 

{pc:content action=”position” posid=”2″ order=”listorder DESC” num=”1″}

{loop $data $r}

<div class=”headlinetop”> <a href=”{$r[url]}” target=”_blank”>

<h3>{str_cut($r[title],20,”)}</h3>

<p>{str_cut($r[description],102)}</p>

</a> </div>

{/loop}

{/pc}

 

phpcmsv9调用4个栏目

{pc:content action=”position” posid=”2″ order=”listorder DESC” num=”4″}

{loop $data $r}

<h4 class=”blue”><a href=”{$r[url]}” title=”{$r[title]}”>{str_cut($r[title],36,”)}</a></h4>

<p>{if $n==1}<img src=”{thumb($r[thumb],90,60)}” width=”90″ height=”60″/>{/if}{str_cut($r[description],112)}</p>

<div class=”bk20 hr”><hr /></div>

{/loop}

{/pc}

 

phpcmsv9调用某栏目最新文章

{pc:content action=”lists” catid=”6″ order=”id DESC” num=”10″cache=”3600″}

{loop $data $r}

<li><a href=”{$r[url]}” target=”_blank”>{$r[title]}</a></li>

{/loop}

{/pc}

 

phpcmsv9调用图文

<h5>图片新闻</h5>

{pc:content action=”position” posid=”12″ thumb=”1″ order=”listorder DESC” num=”10″}

<ul class=”content news-photo picbig”>

{loop $data $r}

<li>

<div class=”img-wrap”>

<a href=”{$r[url]}” title=”{$r[title]}”><img src=”{thumb($r[thumb],110,0)}” title=”{$r[title]}”/></a>

</div>

<a href=”{$r[url]}” title=”{$r[title]}”>{str_cut($r[title],20)}</a>

</li>

{/loop}

</ul>

{/pc}

 

phpcmsv9外部数据源调用

 

{pc:get sql=”Select * FROM pre_forum_thread” cache=”3600″ dbsource=”discuz” return=”data” num=”10″}

 

phpcmsv9指定变量循环增长(幻灯片调用)

 

{pc:content action=”position” posid=”1″ order=”listorder DESC” thumb=”1″ num=”5″}

<div class=”content” id=”main-slide”>

<div class=”changeDiv”>

{loop $data $r}

<a href=”{$r[‘url’]}” title=”{str_cut($r[‘title’],30)}”><img src=”{thumb($r[‘thumb’],310,260)}” alt=”{$r[‘title’]}” width=”310″ height=”260″ /></a>

{/loop}

</div>

</div>

{/pc}

 

{pc:content action=”lists” catid=”66″ order=”listorder DESC” thumb=”1″ num=”5″ }

{php $num = 0}

{loop $data $r}

linkarr[{$num}] = “{$r[url]}”;

picarr[{$num}] = “{$r[thumb]}”;

textarr[{$num}] = “{str_cut($r[title],36,”)}”;

{php $num++}

{/loop}

{/pc}

 

phpcmsv9调用文字友情链接

 

{pc:link action=”type_list” siteid=”$siteid” order=”listorder DESC” num=”10″ return=”dat”}

{loop $dat $v}

<a href=”{$v[url]}” target=”_blank”>{$v[name]}</a> |

{/loop}

{/pc}

 

phpcmsv9调用图片友情链接

 

{pc:link action=”type_list” siteid=”$siteid” linktype=”1″ order=”listorder DESC” num=”8″ return=”pic_link”}

{loop $pic_link $v}

<li><a href=”{$v[‘url’]}” title=”{$v[‘name’]}” target=”_blank”><img src=”{$v[logo]}” width=”88″ height=”31″ /></a></li>

{/loop}

{/pc}

Related Posts Plugin for WordPress, Blogger...