亚洲精品国产字幕久久vr|色噜噜视频在线观看|久热精品男人的天堂在线视频|久久综合九色综合亚洲小说|欧美日韩一区二区不卡|精品国语对白精品自拍视

Skip to content
快速導航

DedeCMS列表標簽 ?

list 列表數據標簽 ?

**名稱(chēng):**list

**功能:**獲取列表模板中的列表內容

語(yǔ)法:

html
{dede:list  col='' titlelen='' infolen=''  imgwidth='' imgheight='' orderby='' pagesize=''}

{/dede:list}

文件:

\include\arc.listview.class.php

\include\arc.sglistview.class.php

function GetArcList($limitstart=0,$row=10,$col=1,$titlelen=30,$infolen=250,

$imgwidth=120,$imgheight=90,$listtype="all",$orderby="default",$innertext="",$tablewidth="100",$ismake=1,$orderWay='desc')

默認底層模板:

list_fulllist.htm

參數:

col=1 內容列數

titlelen=30 標題長(cháng)度

infolen=250 內容摘要長(cháng)度

imgwidth=120 縮略圖寬

imgheight=90 縮略圖高

orderby='default' 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默認為 sortrank

pagesize=20 分頁(yè)大小

orderway='desc' 排序方式

底層字段:

ID(同 id),title,iscommend,color,typeid,ismake,description(同 info),postnum,lastpost,shorttitle

pubdate,senddate,arcrank,click,litpic(同 picname),typedir,typename,

arcurl(同 filename),typeurl,stime(pubdate 的"0000-00-00"格式),

textlink,typelink,imglink,image

范例:

html
{dede:list pagesize='10'}
<li>
    [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
    
    [<b>[field:typelink/]</b>] <a href="[field:arcurl/]" class="title">[field:title/]</a> <span class="info"> <small>日期:</small>[field:pubdate function="GetDateTimeMK(@me)"/] <small>點(diǎn)擊:</small>[field:click/] <small>好評:</small>[field:scores/] </span>
    
    <p class="intro"> [field:description/]... </p>

</li>
{/dede:list}

list標簽同時(shí)也適用單表模型文檔列表。

注:list標記除了支持檔案表的基本模板變量外,還支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。

pagelist 列表分頁(yè)標簽 ?

**名稱(chēng):**pagelist

**功能:**表示分頁(yè)頁(yè)碼列表

語(yǔ)法:

文件:

\include\arc.listview.class.php

\include\arc.sglistview.class.php

function GetPageListDM($list_len,$listitem="index,end,pre,next,pageno")

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno")

默認底層模板:

無(wú)

參數:

listsize=3 表示 [1][2][3] 這些項的長(cháng)度 x 2

listitem='index,pre,pageno,next,end,option' 表示頁(yè)碼樣式,可以把下面的值疊加

index 首頁(yè)

pre 上一頁(yè)

pageno 頁(yè)碼

next 下一頁(yè)

end 末頁(yè)

option 下拉跳轉框

底層字段:

無(wú)

范例:

注:pagelist標簽是同list一同使用來(lái)調用列表數據的。

織夢(mèng)官方 版權所有 | 未經(jīng)授權禁止轉載 | | 云主機支持:藍隊云

亚洲精品国产字幕久久vr|色噜噜视频在线观看|久热精品男人的天堂在线视频|久久综合九色综合亚洲小说|欧美日韩一区二区不卡|精品国语对白精品自拍视