Login   Register  
PHP Classes
elePHPant
Icontem

File: example.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David Agar  >  Templateze  >  example.html  >  Download  
File: example.html
Role: Auxiliary data
Content type: text/plain
Description: Example Template
Class: Templateze
Template engine based on replacement processing
Author: By
Last change:
Date: 2004-10-02 11:49
Size: 1,596 bytes
 

Contents

Class file image Download
<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>TemplateEze Example</title>
</head>

<body>

<table border="0" cellpadding="5" cellspacing="0" width="100%" bordercolorlight="#808080" bordercolordark="#000000" id="table1">
	<tr>
		<td colspan="2">~header~</td>
	</tr>
	<tr>
		<td width="17%" valign="top">~sidebar~</td>
		<td width="81%">In this example both the header and sidebar contents are 
		pulled from 2 seperate html files.<p><b>Basic Variable Replacers</b></p>
		<p>~var1~<br>%var2%<br>@@var3@@<p>Variable tags can be easily changed.<p>
		<b>Loop Replacer</b><p>
		<div align="center">
			<TABLE BORDER="0" BGCOLOR="#000000" STYLE="font-family: monospace; font-size: 10pt" CELLSPACING="1" width="40%">
        <TR>
                <TH BGCOLOR="#000080"><font face="Arial" color="#FFFFFF">
				ID</font></TH>
                <TH BGCOLOR="#000080"><font face="Arial" color="#FFFFFF">First Name</font></TH>
                <TH BGCOLOR="#000080"><font face="Arial" color="#FFFFFF">Surname</font></TH>
        </TR>


        <LOOP NAME="table_rows">
        <TR>
                <TD BGCOLOR="#FFFFCC" align="center"><font face="Arial">~id~</font></TD>
                <TD BGCOLOR="#FFFFCC" align="center"><font face="Arial">~first_name~</font></TD>
                <TD BGCOLOR="#FFFFCC" align="center"><font face="Arial">~surname~</font></TD>
        </TR>
        </LOOP NAME="table_rows"></TABLE></div>
		</td>
	</tr>
</table>

</body>

</html>