Login   Register  
PHP Classes
elePHPant
Icontem

File: template.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nando Vieira  >  PHPTemplate  >  template.tpl  >  Download  
File: template.tpl
Role: Example script
Content type: text/plain
Description: Template file
Class: PHPTemplate
PHP based template engine
Author: By
Last change:
Date: 2005-11-14 12:45
Size: 458 bytes
 

Contents

Class file image Download
<html>
<head>
    <title><?=$title?></title>
</head>

<body>
<h1><?=$title?></h1>
<?=$content?>

<table border="1">
<? if($rows_count 0) foreach ($rows as $row): ?>
    <tr>
        <td><?=$row[0]?></td>
        <td><?=$row[1]?></td>
        <td><?=$row[2]?></td>
    </tr>
<? endforeach ?>
    <tr>
        <th colspan="2" align="right">LINES:</th>
        <td><?=$rows_count?></td>
    </tr>
</table>

<?=$footer?>
</body>
</html>