PHP Classes

File: templates/test.section.tpl

Recommend this page to a friend!
  Classes of David Tamas  >  g-template-php  >  templates/test.section.tpl  >  Download  
File: templates/test.section.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: g-template-php
Process and render templates generating PHP code
Author: By
Last change:
Date: 3 years ago
Size: 623 bytes


Class file image Download
<h1>Testing Section</h1>
<{section name=outer loop=$FirstName}>
<{if $smarty.section.outer.index is odd by 2}>
    <{%outer.iteration%}> . <{$FirstName[outer]}> <{$LastName[outer]}>
    <{$smarty.section.outer.iteration}> * <{$FirstName[outer]}> <{$LastName[outer]}>

<{section name=sec1 loop=$contacts}>
<{if %sec1.first%}><legend>First</legend><{/if}>
<{if %sec1.last%}><legend>Last</legend><{/if}>
    phone: <{$contacts[sec1].phone}><br>
    fax: <{$contacts[sec1].fax}><br>
    cell: <{$contacts[sec1].cell}><br>

For more information send a message to info at phpclasses dot org.