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

  <body>
    <table width="400px" align="center">
{foreach ($list as $l)}
	<tr>
{foreach ($l as $key=>$v)}
	  <td bgcolor='#{cycle (name="colorVal" elements="e0e5e9,e7eaf0,f0f5f9")}'>{$key}</td>
	  <td>{$v}</td>
{/foreach}
	</tr>
{/foreach}
    </table>
  </body>
</html>
Return current item: Gedar Template Engine