首页 > 开源系统应用 > Phpcms > PHPCMS V9 黄页模板制作之获取推荐企业
网站建设、切图、企业建站、微信开发 联系QQ:404658186 tel:18716186715
2015
08-18

PHPCMS V9 黄页模板制作之获取推荐企业

PHPCMS V9 黄页设计的企业库推荐们是elite参数,如果参数值为1则已推荐,如果参数值为0则未推荐。获取推荐企业库列表使用get_company并带上参数elite即可。

获取方法

{pc:yp action="get_company" elite="1" num="10" order="regtime DESC" cache="0"}
 {loop $data $i}
 <h3><a href="{$i['url']}" title="{$i[title]}" target="_blank">{$i[companyname]}</a></h3>
 {/loop}
 {/pc}

返回参数

 Array
(
 [userid] => 3
 [companyname] => ***有限责任公司
 [catids] => ,乔木灌木,
 [pattern] => ,生产型,
 [products] => 罗汉松树苗
 [genre] => 个体经营
 [areaname] => 
 [address] => 
 [status] => 1
 [regtime] => 138****
 [tplname] => com_default
 [linkman] => ***
 [telephone] => 
 [email] => ***@163.com
 [ma p] => 
 [menu] => array (
 'list' => 
 array (
 1 => '1',
 2 => '2',
 3 => '3',
 4 => '4',
 5 => '5',
 6 => '6',
 7 => '7',
 8 => '8',
 9 => '9',
 10 => '10',
 ),
 'catname' => 
 array (
 1 => 
 array (
 'used' => '1',
 'id' => 'index',
 'is_system' => '1',
 'catname' => '首页',
 'linkurl' => 'http://127.0.0.1/skyno1/web-3.html',
 ),
 2 => 
 array (
 'used' => '1',
 'id' => '13',
 'is_system' => '1',
 'catname' => '新闻',
 'linkurl' => 'http://127.0.0.1/skyno1/web-model-13---3-1.html',
 ),
 3 => 
 array (
 'used' => '1',
 'id' => '14',
 'is_system' => '1',
 'catname' => '产品',
 'linkurl' => 'http://127.0.0.1/skyno1/web-model-14---3-1.html',
 ),
 4 => 
 array (
 'used' => '1',
 'id' => '15',
 'is_system' => '1',
 'catname' => '供应',
 'linkurl' => 'http://127.0.0.1/skyno1/web-model-15---3-1.html',
 ),
 5 => 
 array (
 'used' => '1',
 'id' => '16',
 'is_system' => '1',
 'catname' => '求购',
 'linkurl' => 'http://127.0.0.1/skyno1/web-model-16---3-1.html',
 ),
 6 => 
 array (
 'used' => '1',
 'id' => '17',
 'is_system' => '1',
 'catname' => '报价',
 'linkurl' => 'http://127.0.0.1/skyno1/web-model-17---3-1.html',
 ),
 7 => 
 array (
 'used' => '1',
 'id' => 'about',
 'is_system' => '1',
 'catname' => '公司简介',
 'linkurl' => 'http://127.0.0.1/skyno1/web-about----3-1.html',
 ),
 8 => 
 array (
 'used' => '1',
 'id' => 'certificate',
 'is_system' => '1',
 'catname' => '资质证书',
 'linkurl' => 'http://127.0.0.1/skyno1/web-certificate----3-1.html',
 ),
 9 => 
 array (
 'used' => '1',
 'id' => 'guestbook',
 'is_system' => '1',
 'catname' => '在线留言',
 'linkurl' => 'http://127.0.0.1/skyno1/web-guestbook----3-1.html',
 ),
 10 => 
 array (
 'used' => '1',
 'id' => 'contact',
 'is_system' => '1',
 'catname' => '联系我们',
 'linkurl' => 'http://127.0.0.1/skyno1/web-contact----3-1.html',
 ),
 ),
)
 [introduce] =>
 [logo] => http://127.0.0.1/skyno1/uploadfile/2013/1207/20131207042639853.gif
 [banner] => 
 [elite] => 1
 [fax] => 13181811862
 [zip] => 0
 [qq] => 
 [web_url] => 
 [points] => 0
 [publish_total] => array (
 15 => '1',
 17 => '1',
)
 [url] => http://127.0.0.1/skyno1/web-3.html
 [mobilephone] => 0538-8913589
 [area] => 1784
)
最后编辑:
作者:码农一号
这个作者貌似有点懒,什么都没有留下。
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

留下一个回复

你的email不会被公开。

*