I use Smarty's counter counter

xiaoxiao2021-03-06  39

{* assign var = "bottomtitlenum" value = "2" *}

{* section name = bst loop = $ bottomshortcuttitutle *}

{** section **}

{* if ($ smarty.section.bst.index mod $ bottomtiumpnum) EQ 0 *}

{* / if *}

{** title **} {* $ bottomshectcuttitle [bst] .bsctname *}

{** Title end **}

{** SUB B Start **}

{* assign var = "bottomcontentnum" value = "3" *}

{** content loop **}

{* counter sart = 0 assign = "what" print = false *}

{* section name = BSC loop = $ bottomshortcutcontent *}

{** set counter **}

{* IF ($ bottomshortcutcontent [biottomshortcutcontent [BSC] .bsctitle) EQ ($ bottomshortcuttitle [bst] .bsctname) *}

{* IF ($ What MOD $ bottomcontentnum) EQ 0 *}

{* / if *}

{* $ bottomshortcutcontent [bsc] .bscname *}

{* IF ($ What MOD $ BOTTOMCONTENTNUM) EQ ($ bottomcontentnum-1) *}

{* / if *}

{* counter Assign = "what" print = false *}

{* / if *}

{* / section *}

{** SUB end **}

{* if ($ smarty.section.bst.index mod $ bottomtiTlenum) EQ ($ bottomtiTlenum-1) *}

{* /

转载请注明原文地址:https://www.9cbs.com/read-78909.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.030, SQL: 9