PHP Classes

File: alternative.tpl

Recommend this page to a friend!
  Classes of Evgeny   tplTemplatez   alternative.tpl   Download  
File: alternative.tpl
Role: Example script
Content type: text/plain
Description: example
Class: tplTemplatez
Template class used to separate PHP and HTML
Author: By
Last change:
Date: 20 years ago
Size: 869 bytes


Class file image Download
    <title>Alternative block</title>

<b>Example with alternative blocks, very flexible.<br>
Hope, not too complicated.</b>

    <table cellpadding="5" cellspacing="1" width="600">
    <tr bgcolor="#cc9900">
        <td width="250">Itteration # {var}</td>
        <td>This tr doesn't belong to any block.<br>Will be printed always.</td>
    <tr bgcolor="#C0C0C0">
        <td colspan="2">Will be printed when $i = 2 or 5 </td>
    <tr bgcolor="#99ccff">
        <td>Will be printed when $i = 4</td>
        <td>Will be printed when $i = 4</td>

        <td colspan="2">Will be printed when $i = 3 or 5</td>