»u±¾ÔÐÎΪ£º
{section name = name loop = $varName[, start = $start, step = $step, max = $max, show = true]}
name: sectionµÄÃu³Æ£¬²»ÓüÓ$
$loop: ҪѻµÄ±aÁ¿£¬ÔÚ³ÌÐoÖÐҪʹÓÃassign¶ÔÕa¸o±aÁ¿½øÐвÙ×÷¡£
$start: ¿ªÊ¼Ñ»µÄϱe£¬Ñ»Ï±eĬÈÏÓÉ0¿ªÊ¼
$step: ÿ´ÎѻʱϱeµÄÔoÊý
$max: ×i´oѻϱe
$show: booleanÀaÐÍ£¬¾o¶¨ÊÇñ¶ÔÕa¸o¿e½øÐÐÏÔʾ£¬Ä¬ÈÏΪtrue
ÕaÀiÓиoÃu´ÊÐeҪ˵Ã÷£º
ѻϱe£ºÊµ¼ÊËuµÄÓ¢ÎÄÃu³ÆΪindex£¬ÊÇË÷ÒýµÄÒa˼£¬ÕaÀiÎÒ½«ËuÒe³É"ϱe"£¬Ö÷ÒªÊÇΪÁ˺ÃÀi½a¡£Ëu±iʾÔÚÏÔʾÕa¸oÑ»¿eʱµ±Ç°µÄÑ»Ë÷Òý£¬Ä¬ÈÏ´Ó0¿ªÊ¼£¬ÊÜ$startµÄÓ°Ïi£¬Èç¹u½«$startÉeΪ5£¬ËuÒ²½«´Ó5¿ªÊ¼¼ÆÊý£¬ÔÚÄ£°aÉe¼Æ²¿ÖÎÒÃÇʹÓùýËu£¬ÕaÊǵ±Ç°{section}µÄÒ»¸oÊoÐÔ£¬µ÷ÓýʽΪSmarty.section.sectionName.index,ÕaÀiµÄsectionNameÖ¸µÄÊǺ¯ÊýÔÐÍÖеÄnameÊoÐÔ¡£
{section}¿e¾ßÓеÄÊoÐÔÖµ£¬Ö±ðΪ£º
1. index: ÉϱßÎÒÃǽeÉܵÄ"ѻϱe"£¬Ä¬ÈÏΪ0
2. index_prev: µ±Ç°Ï±eµÄÇ°Ò»¸oÖµ£¬Ä¬ÈÏΪ-1
3. index_next: µ±Ç°Ï±eµÄÏÂÒ»¸oÖµ£¬Ä¬ÈÏΪ1
4. first: ÊÇñΪµÚÒ»ÏÂÑ»
5. last: ÊÇñΪ×iºoÒ»¸oÑ»
6. iteration: Ñ»´ÎÊý
7. rownum: µ±Ç°µÄÐкţ¬iterationµÄÁiÒ»¸o±ðÃu
8. loop: ×iºoÒ»¸oÑ»ºÅ£¬¿ÉÓÃÔÚsection¿eºoͳ¼ÆsectionµÄÑ»´ÎÊý
9. total: Ñ»´ÎÊý£¬¿ÉÓÃÔÚsection¿eºoͳ¼ÆÑ»´ÎÊý
10. show: ÔÚº¯ÊýµÄÉuÃ÷ÖÐÓÐËu£¬ÓÃÓÚÅжÏsectionÊÇ*ñÏÔʾ