PHP Classes

File: test.tpl

Recommend this page to a friend!
  Classes of Gregory  >  PHTML Template  >  test.tpl  >  Download  
File: test.tpl
Role: Auxiliary data
Content type: text/plain
Description: /templates/test.tpl
Class: PHTML Template
Perl HTML::Template compatible template compiler
Author: By
Last change: HTML::Template - style template
Date: 17 years ago
Size: 901 bytes
 

Contents

Class file image Download
<html>
	<head>
	<title><TMPL_VAR title></title>
	<link rel="stylesheet" href="/ctpl/css/winki.css" type="text/css">
	</head>
<body>

<br />
<h1><TMPL_VAR title></h1>
<div id="main">

<!-- TEMPLATE DRIVER TEST -->

<TMPL_INCLUDE inc>

<TMPL_IF aa>
inside 'IF' section<br />
<TMPL_ELSE>
	<TMPL_UNLESS bb>
	<b>Inside nested 'UNLESS' section</b><br />
	<TMPL_ELSE>
	<i>Inside alter 'UNLESS' section</i><br />
	</TMPL_UNLESS>
inside 'ELSE' section<br />
</TMPL_IF>
Nested 'LOOP' section:<br />
<table border="0" cellpadding="3" cellspacing="1" width="100%">
	<TMPL_LOOP rows>
	<tr bgcolor="#<TMPL_VAR color>">
		<TMPL_LOOP cols>
			<TMPL_IF odd>
			<td><TMPL_VAR var1></td>
			<TMPL_ELSE>
			<td><b><TMPL_VAR var1></b></td>
			</TMPL_IF>
		</TMPL_LOOP>
	</tr>
	</TMPL_LOOP>
</table>
</div>
<span id="copy">&copy; Gregory A. Rozanoff, 2004.</span>

</body>
</html>
For more information send a message to info at phpclasses dot org.