网络营销电子商务研究中心  
USA Web Hosting Direct
Go Back   网络营销电子商务研究中心 > 网站建设 > PHPCMS
User Name
Password
 
FAQ Members List Calendar 域名注册 PHP Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1   IP: 134.73.241.163
Old 2018-01-29, 05:04 PM
Geddes Geddes is offline
初级会员
 
Join Date: 2011-08-19
Posts: 1
Geddes 现在声名狼藉
Default Phpcms V9文章列表前面显示栏目名称和链接怎么做

{pc:content action="lists" catid="6" order="listorder DESC" num="7" moreinfo="1"}
  {loop $data $key $r}
  栏目名和链接[<a href="{$CATEGORYS[$r[catid]][url]}">{$CATEGORYS[$r[catid]][catname]}</a>]
  标题名和链接<A href="{$r[url]}" target="_blank">{str_cut($r[title], 38)}</A>
  时间日期[{date('y年m月d日',$r[riqi])}]
  {/loop}
  {/pc}
  moreinfo="1" 是允许调用副表的意思,,我们新建的模型,有些字段都保存在副表里边,,不加这个,我们建的字段就调不出来,嘿嘿。。
  {date('y年m月d日',$r[riqi])} 显示出来是11年01月01日的格式
  换成大写的Y
  {date('Y年m月d日',$r[riqi])} 显示出来是2011年01月01日的格式
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phpcms v9去除栏目生成/html路径的方法 Udall PHPCMS 0 2015-11-28 02:12 PM
PHPCMS v9实现二级下拉菜单的实例代码 Haddock PHPCMS 0 2015-11-25 08:46 AM
Phpcms V9网站从本地上传到服务器需要修改的地方小结 Jadyn PHPCMS 0 2015-02-03 09:14 PM
Phpcms 被酷6网收购 创始任人联盟事业部负责人 yahoo 建站交流 0 2008-01-24 08:46 PM
Phpcms免费开源将成CMS系统未来趋势 sunshine 建站交流 1 2007-08-08 02:20 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
所有时间均为 +8. 现在的时间是 01:19 AM, Free Patent & Patent Ideas