[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/tests/eztemplate/functions/ -> section_numeric.tpl (source)

   1  Loop eight times: 1 to 8
   2  
   3  {section loop=8}
   4  {$:key},{$:number},{$:index}: {$:item}
   5  
   6  {/section}
   7  ------------------------------------
   8  Loop eight times, offset 2: 3 to 8
   9  
  10  {section loop=8 offset=2}
  11  {$:key},{$:number},{$:index}: {$:item}
  12  
  13  {/section}
  14  ------------------------------------
  15  Loop eight times negative, offset 2: -3 to -8
  16  
  17  {section loop=-8 offset=2}
  18  {$:key},{$:number},{$:index}: {$:item}
  19  
  20  {/section}
  21  ------------------------------------
  22  Loop eight times reverse, offset 2: 6 to 1
  23  
  24  {section loop=8 offset=2 reverse}
  25  {$:key},{$:number},{$:index}: {$:item}
  26  
  27  {/section}
  28  ------------------------------------
  29  Loop eight times negative revers, offset 2: -6 to -1
  30  
  31  {section loop=-8 offset=2 reverse}
  32  {$:key},{$:number},{$:index}: {$:item}
  33  
  34  {/section}
  35  
  36  ====================================
  37  
  38  Loop eight times, offset 2, max 5: 3 to 7
  39  
  40  {section loop=8 offset=2 max=5}
  41  {$:key},{$:number},{$:index}: {$:item}
  42  
  43  {/section}
  44  ------------------------------------
  45  Loop eight times negative, offset 2, max 5: -3 to -7
  46  
  47  {section loop=-8 offset=2 max=5}
  48  {$:key},{$:number},{$:index}: {$:item}
  49  
  50  {/section}
  51  ------------------------------------
  52  Loop eight times reverse, offset 2, max 5: 6 to 2
  53  
  54  {section loop=8 offset=2 reverse max=5}
  55  {$:key},{$:number},{$:index}: {$:item}
  56  
  57  {/section}
  58  ------------------------------------
  59  Loop eight times negative reverse, offset 2, max 5: -6 to -2
  60  
  61  {section loop=-8 offset=2 reverse max=5}
  62  {$:key},{$:number},{$:index}: {$:item}
  63  
  64  {/section}
  65  
  66  ====================================
  67  
  68  Loop eight times, offset 2, max 5: 3 to 8, skip 4
  69  
  70  {section loop=8 offset=2 max=5}
  71  {section-exclude match=eq( $:item, 4 )}
  72  {$:key},{$:number},{$:index}: {$:item}
  73  
  74  {/section}
  75  ------------------------------------
  76  Loop eight times negative, offset 2, max 5: -3 to -8, skip -4
  77  
  78  {section loop=-8 offset=2 max=5}
  79  {section-exclude match=eq( $:item, -4 )}
  80  {$:key},{$:number},{$:index}: {$:item}
  81  
  82  {/section}
  83  ------------------------------------
  84  Loop eight times reverse, offset 2, max 5: 6 to 1, skip 4
  85  
  86  {section loop=8 offset=2 reverse max=5}
  87  {section-exclude match=eq( $:item, 4 )}
  88  {$:key},{$:number},{$:index}: {$:item}
  89  
  90  {/section}
  91  ------------------------------------
  92  Loop eight times negative reverse, offset 2, max 5: -6 to -1, skip -4
  93  
  94  {section loop=-8 offset=2 reverse max=5}
  95  {section-exclude match=eq( $:item, -4 )}
  96  {$:key},{$:number},{$:index}: {$:item}
  97  
  98  {/section}


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7