Login   Register  
PHP Classes
elePHPant
Icontem

File: test.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nicholas Sack  >  TemplateThis  >  test.tpl  >  Download  
File: test.tpl
Role: Auxiliary data
Content type: text/plain
Description: example template
Class: TemplateThis
Template compiler to separate content from logic
Author: By
Last change:
Date: 2004-07-29 08:25
Size: 903 bytes
 

Contents

Class file image Download
<html>
<head>
<title>{title}</title>
</head>
<body>
<a href="{url}">{text}</a><br><br>
<table border="1" cellspacing="0" cellpadding="2">

<!-- BEGIN users -->

  <tr>
    <td>{NAME}</td>
    <td>{CITY}</td>
  </tr>

<!-- END users -->

</table><br><br>

<table border="1" cellspacing="0" cellpadding="2">

<!-- BEGIN groups -->

  <tr>
    <td>{GROUP}</td>
  </tr>

<!-- END groups -->

</table><br><br>

{group}<br><br>

<!-- IF group="admin" -->

<a href="admin.php">Administrator Login</a>

<!-- ELSEIF group="moderator" -->

<a href="moderator.php">Moderator Login</a>

<!-- ELSEIF group="user" -->

<a href="user.php">User Login</a>

<!-- ELSE -->

<b>You dont have a username!</b>

<!-- ENDIF -->

<br><br>

<select name="colors">

{options:pick_color,pick_default}

</select>

<br><br>

{dump_variables:pick_color}

</body>
</html>