Location: PHPKode > scripts > Template Interface Engine > template-interface-engine/sample4.html
<html>
<head>
<title>Sample Four</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h1 align="center">Sample Four</h1>
<form name="form1" method="post" action="">
  <div align="center">
    <input type="text" name="entrytext" size="50">
    <input type="submit" name="Submit" value="Submit">
  </div>
</form>
<table border="1" cellspacing="0" cellpadding="5" align="center" bordercolor="#000000" bgcolor="#0099FF">
  <!--if:[show]=[value==='one']-->
  <tr>
    <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Yes, you typed ONE!</font></td>
  </tr>
  <!--/if:[show]-->
  <!--elseif:[show]=[value==='two']-->
  <tr>
    <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Hey, thank's to type "two"</font></td>
  </tr>
  <!--/elseif:[show]-->
  <!--elseif:[show]=[value===0]-->
  <tr>
    <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">It was Zero value exactly</font></td>
  </tr>
  <!--/elseif:[show]-->
  <!--elseif:[show]=[value === '']-->
  <tr>
    <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Try enter "one", "two", 0, or any text in above.<br>Or even an empty text ;)</font></td>
  </tr>
  <!--/elseif:[show]-->
  <!--else:[show]-->
  <tr>
    <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Just be entered "{$value$}" here.</font></td>
  </tr>
  <!--/else:[show]-->
</table>
<p>&nbsp;</p>
<table border="1" cellspacing="0" cellpadding="3" align="center" bordercolor="#000000">
  <tr>
  <!--loop:[data]-->
    <td bgcolor="#99FFCC" align="center"> 
      <strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">{$data0$}</font></strong>
    </td>
  <!--/loop:[data]-->
  </tr>
  <!--loop:[row]-->
  <tr>
  <!--loop:[col]-->
    <td align="center"><font size="2">{$col0$}</font></td>
  <!--/loop:[col]-->
  </tr>
  <!--/loop:[row]-->
</table>
<p>&nbsp;</p>
<table border="0" cellspacing="0" cellpadding="3" align="center">
  <tr>
    <td align="left"> 
      <strong><font size="2" face="Arial, Helvetica, sans-serif">Select colomn <br>
        from the table above:</font></strong>
    </td>
  </tr>
  <!--loop:[data]-->
  <tr> 
    <td> 
      <input type="checkbox" name="{$data0$}" id="{$data0$}" value="checkbox">
      <label for="{$data0$}"><font face="Trebuchet MS, Verdana, Tahoma" size="2">{$data0$}</font></label></td>
  </tr>
  <!--/loop:[data]-->
</table>
</body>
</html>
Return current item: Template Interface Engine