phpb2b标签语法
用户评价: / 27
好 
作者:深圳网站建设   
周二, 2010年 07月 06日 11:26

Phpb2b fair最新展会标签

<{fair row=12 magic="y" infolen="35" titlelen="35"}>
<li[field:style]>[field:url]</li>
<{/fair}>
参数介绍:
id
type(image|picture!='',commend|if_commend='1',hot|hits DESC)
typeid(expotype_id=".$params['typeid'])
expday(end_time<'".($params['expday']*86400+$fair->time_stamp))
subday("begin_time>'".($fair->time_stamp-$params['subday']*86400))
orderby(默认id DESC)
row
col
titlelen(标题长度)
description(描述)
infolen(描述的长度)
magic(y,第一条信息加缩略图)


Phpb2b offer最新求购/最新供应标签

<{offer typeid="2" type="image" row=5 titlelen="10"}>
<li><a href="/[link:title]"><img src="/[img:thumb]" alt="[field:title]" /></a><p><a href="/[link:title]"
title="[field:title]">[field:title]</a></p></li>
<{/offer}>

<{offer row=14 typeid="2"}>
<li><a href="/[link:title]" title="[field:title]">[field:title]</a></li>
<{/offer}>
参数介绍:
type(image|urgent:紧急|company|comment:推荐)
industryid(行业分类ID)
areaid(地区ID)
expday(t.expire_time<'".($params['expday']*86400+$trade->timestamp))
subday(t.submit_time>'".($trade->timestamp-$params['expireday']*86400))
typeid(多个分类ID之间用,分开typeid=1最新求购,typeid=2最新供应)
memberid(此会员的ID)
cash(不为空即可)
orderby(默认ORDER BY modified DESC)
row
col
titlelen(标题长度)
infolen(content的长度)
magic(不为空时,显示缩略图)

Phpb2b company公司信息标签

<{company row=12}>
<li><a href="/[link:title]" title="[field:title]" target="_blank">[field:title]</a></li>
<{/company}>
[link:title] 链接地址
[field:title]公司名称
[field:name] 公司全称
[field:fulltitle]公司全称
[field:id]公司ID
[field:area2]所在地区名称
[field:areaid]所在地区的ID
[field:groupname]所在会员组的名称
[field:groupavatar]会员组的图标
[img:logo]公司logo
参数介绍:
type(image|comment:推荐)
industryid(行业ID)
areaid(地区ID)
groupid(会员组别ID array ( 10 => 'VIP会员', 9 => '企业会员', 8 => '正式会员', 7 => '普通会员', 6 => '禁止登
录','5'=>'禁止发布','4'=>'禁止访问','3'=>待审核会员,'2'=>正式会员,'1'=>非正式会员),此会员组别在后台用户中心添加,
删除和修改,依后台信息ID为准)
expday(t.expire_time<'".($params['expday']*86400+$trade->timestamp))
subday(t.submit_time>'".($trade->timestamp-$params['expireday']*86400))
typeid(多个分类ID之间用,array ( 0 => '其他', 1 => '加盟商', 2 => '生产商', 3 => '采购商', 4 => '供应商',))
id(此会员的ID)
orderby(默认ORDER BY id DESC)
row
col
titlelen(公司名称长度)
infolen(content的长度)


Phpb2b industryList行业分类标签

<{foreach from=$IndustryList item=item0 key=key0 name=level_0}>
<div class="typebox">
<table cellspacing="0">
<tr>
<th class="type_tit"><a href="/<{$item0.url}>"><{$item0.name}></a></th>
<td>
<{if $item0.sub}>
<ul>
<{foreach from=$item0.sub name=level_1_industry item=level1 key=key_level1}>
<li>
<a href="/<{$level1.url}>" title="<{$level1.name}>"
class="typeboxlet01"><{$level1.name}></a><br />
<{foreach from=$level1.sub name=level_2_industry item=level2 key=key_level2}>
<a href="/<{$level2.url}>" title="<{$level2.name}>"><
{$level2.name}></a>
<{if !$smarty.foreach.level_2_industry.last}>
<span> | </span>
<{/if}>
<{/foreach}>
</li>
<{/foreach}>
</ul>
<{/if}>
</td>
</tr>
</table>
</div>
<{if !$smarty.foreach.level_0.last}>
<div class="line"></div>
<{/if}>
<{/foreach}>


uses("industry");//包含industry_controller.php控制器,视图global.func.php中408行

$industry = new Industries();//此类models/industry.php中
setvar("IndustryList", $industry->getCacheIndustry());//models/industry.php中57行.得到缓存行业类别
$industry->getCacheIndustry()=
Array
(
[4] => Array
(
[id] => 4 //一级大类
[name] => 护肤
[url] => special/industry.php?id=4
[sub] => Array
(
[0] => Array
(
[id] => 177 //二级大类
[name] => 美容护肤/美体/精油
[url] => special/industry.php?id=177
[sub] => Array
(
[0] => Array
(
[id] => 180 //三级分类1
[name] => 爽肤水
[url] => special/industry.php?id=180
)
[1] => Array
(
[id] => 181 //三级分类2
[name] => 精华液
[url] => special/industry.php?id=181
)
[2] => Array
(
[id] => 182 //三级分类3
[name] => 面膜
[url] => special/industry.php?id=182
)
[3] => Array
(
[id] => 183
[name] => 隔离霜
[url] => special/industry.php?id=183
)
[4] => Array
(
[id] => 184
[name] => 精油
[url] => special/industry.php?id=184
)
)
)
[1] => Array
(
[id] => 178
[name] => 彩妆/香水/美发/工具
[url] => special/industry.php?id=178
[sub] => Array
(
[0] => Array
(
[id] => 185
[name] => 香水
[url] => special/industry.php?id=185
)
[1] => Array
(
[id] => 186
[name] => 粉饼
[url] => special/industry.php?id=186
)
[2] => Array
(
[id] => 187
[name] => 粉底
[url] => special/industry.php?id=187
)
[3] => Array
(
[id] => 188
[name] => 眼影
[url] => special/industry.php?id=188
)
[4] => Array
(
[id] => 189
[name] => 腮红
[url] => special/industry.php?id=189
)
[5] => Array
(
[id] => 190
[name] => BB霜
[url] => special/industry.php?id=190
)
)
)
[2] => Array
(
[id] => 179
[name] => 个人护理/保健/美容/飞利浦
[url] => special/industry.php?id=179
[sub] => Array
(
[0] => Array
(
[id] => 191
[name] => 电吹风
[url] => special/industry.php?id=191
)
[1] => Array
(
[id] => 192
[name] => 足浴盆
[url] => special/industry.php?id=192
)
[2] => Array
(
[id] => 193
[name] => 暖膝
[url] => special/industry.php?id=193
)
[3] => Array
(
[id] => 194
[name] => 剃须
[url] => special/industry.php?id=194
)
[4] => Array
(
[id] => 195
[name] => 按摩
[url] => special/industry.php?id=195
)
)
)
)
)

)


Phpb2b news新闻标签

<{news typeid=4 row=9 magic="y" titlelen=30 infolen=25}>
<li[field:style]>[field:url]</li>
<{/news}>
[link:title] 链接地址
[field:title]新闻标题
[img:src] 图片地址
[field:fulltitle]新闻标题全称
[field:typename]新闻类别
[field:pubdate]新闻上传时间
[field:id] 新闻ID
[field:type_id]新闻类别ID
[field:style]样式
[field:url]新闻标题加上链接
参数介绍:
type(image:n.picture!=''|hot:clicked DESC)多个参数用,分开
tag(n.title like '%".$params['tag']."%')
typeid("n.type_id=".$params['typeid'])
orderby(默认id DESC)
industryid("n.industry_id='".$params['industryid'])
areaid("n.area_id='".$params['areaid'])
row
col
titlelen(标题长度)
infolen(content的长度)
magic(有此参数第一信息显示缩略图)


Phpb2b product标签

<{product row=9 type="image" titlelen="10"}>
<li><a href="/[link:title]"><img src="/[img:src]" alt="[field:title]" /></a><p><a href="/[link:title]">
[field:title]</a></p></li>
<{/product}>
[link:title]链接地址
[field:title]产品名称
[img:src]图片地址
[field:fulltitle]产品全称
[field:pubdate]产品上传时间
[field:id]产品ID
[img:thumb]产品缩略图地址
[field:company]产品所属公司名称
参数介绍:
type(image:n.picture!=''|comment:p.ifcomment='1')多个参数用,分开
companyid(p.company_id='.$params['companyid'])公司ID
memberid(p.member_id='.$params['memberid'])会员ID
sortid(p.sort_id='".$params['sortid'])
typeid(p.producttype_id='.$params['typeid'])产品类别ID
industryid(p.industry_id1='.$params['industryid'])行业类别ID
orderby(默认id DESC)
row
col
titlelen(产品名称长度,公司名称长度)


Phpb2b newstype 标签

<{newstype id=4}><a href="/[link:title]">[field:title]</a><{/newstype}>
[field:title]新闻类别
[field:id]新闻类别id
[link:title]新类类别链接地址
结果:<a href="/news/list.php?typeid=4">综合资讯</a>
参数介绍:
id(新闻类别的ID,如果找不到此ID的新闻类别,将在显示“未知”两个字)

Phpb2b topic专题新闻标签

<{topic type="news" row=3}>
<a href="/[link:title]" title=""><img src="/[img:src]" width="202" height="51" /></a><br /><a
href="/[link:title]" title="">[field:title]</a><br />
<{/topic}>
[field:title] 标题
[field:id] id
[img:src] 图片地址
[link:title] 链接地址
结果:
<a href="/news/list.php?topicid=2" title=""><img src="/attachment/sample/news/topic2.jpg" width="202" height="51"
/></a>
<br />
<a href="/news/list.php?topicid=2" title="">2009中国改革年度评选候选名单公示</a>
参数介绍:
id(新闻类别的ID,如果找不到此ID的新闻类别,将在显示“未知”两个字)
type(image:picture!=''|news:news/list.php?)
orderby
row
col
titlelen(新闻标题长度)





 

评论信息

分享到: