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

<body bgcolor="#FFFFFF" text="#000000">
<h1 align="center">Sample Three </h1>
<!--action: this is how variable escaping will not be parsed by engine-->
<table border="0" align="center">
  <tr>
    <td>\{\$variable1\$\}</td>
    <td>:</td>
    <td>{$variable1$}</td>
  </tr>
  <tr>
    <td>\{\$variable2\$\}</td>
    <td>:</td>
    <td>{$variable2$}</td>
  </tr>
  <tr>
    <td>\{\$variable3\$\}</td>
    <td>:</td>
    <td>{$variable3$}</td>
  </tr>
</table>
<!--include:[table.html]-->
<p>&nbsp;</p>
<table width="100%" border="0">
  <tr>
    <td align="center" valign="top"> 
      <form name="form1" method="post" action="">
        <input type="text" name="entrytxt" value="{$thetext$}" size="60">
        <input type="submit" name="Submit" value="Enter Any Text">
      </form>
      <form name="form1" method="post" action="">
        <input type="hidden" name="entrytxt" value="">
        <input type="submit" name="Submit" value="Clear The Textbox and Hide The Message">
      </form>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
	<!--action: do the trick to show/hide the messagebox-->
	<!--if:[message]=[thetext != '']-->
      <table border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#000000">
        <tr>
          <td bgcolor="#6699CC"><font size="2"><b><font face="Verdana, Arial, Helvetica, sans-serif">Message 
            :</font></b></font></td>
        </tr>
        <tr>
          <td bgcolor="#CCCCCC"><font face="Trebuchet MS, Verdana, Tahoma" size="2">You 
            just enter &quot;{$thetext$}&quot; in textbox.</font></td>
        </tr>
      </table>
	  <!--action: when include tag is inside the 'if' block-->
	  <!--include:[table.html]-->
	  <!--/if:[message]-->
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<table border="0" align="center" cellpadding="5" cellspacing="0">
  <tr align="center" valign="top"> 
    <td colspan="2">{$table1$}</td>
  </tr>
  <tr align="center" valign="top"> 
    <td colspan="2">{$table2$}</td>
  </tr>
  <tr align="center" valign="top"> 
    <td>{$table3$}</td>
    <td>{$table4$}</td>
  </tr>
</table>
</body>
</html>
Return current item: Template Interface Engine