Location: PHPKode > scripts > Gedar Template Engine > gedar-template-engine/template/sample2.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Sample test</title>
  </head>

  <body>
{if ($a>$b)}
	a is higher than b<br/>
{else ()}
	a is not higher than b<br/>
{/if}
{for ($i=0;$i<3;$i++)}
<div style="display:block;color:#{cycle (name="colorVal2" elements="113355,335577,557799")}">{$reza[$i]}</div>
{/for}
	<br />
{assign (name="date" , value="2000-01-01")}
	Jalali date of Y2K was 
{fdate (date=$date , separator="/")}
<br />
	<hr/>
	<h3>now include sample1 template file</h3>
	{include (file="sample1.htm")}
  </body>
</html>
Return current item: Gedar Template Engine