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: 5 years ago
Size: 623 bytes
 

Contents

Class file image Download
<h1>Testing Section</h1> <pre> <{section name=outer loop=$FirstName}> <{if $smarty.section.outer.index is odd by 2}> <{%outer.iteration%}> . <{$FirstName[outer]}> <{$LastName[outer]}> <{else}> <{$smarty.section.outer.iteration}> * <{$FirstName[outer]}> <{$LastName[outer]}> <{/if}> <{sectionelse}> none <{/section}> </pre> <{section name=sec1 loop=$contacts}> <fieldset> <{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> </fieldset> <{/section}>