PHP Classes

File: nested.tpl

Recommend this page to a friend!
  Classes of Evgeny  >  tplTemplatez  >  nested.tpl  >  Download  
File: nested.tpl
Role: Example script
Content type: text/plain
Description: example
Class: tplTemplatez
Template class used to separate PHP and HTML
Author: By
Last change: 1
Date: 18 years ago
Size: 732 bytes
 

Contents

Class file image Download
<html>
<head>
    <title>Nested block</title>
</head>

<body>
Example with nested dinamic block, <br>
you can have as many nested dinamic rows in template as you want.<br>
At least, it has been tested with 2 ones.
<br><br>

<table cellpadding="5" cellspacing="1">
<form action="{PHP_SELF}" method="post" name="form" id="form">
<!-- main dinamic block -->
<tmpl:ROW>
   
    <tr bgcolor="#C0C0C0">
        <td>
        Choose the option:
        </td>
       
        <td>
        <!-- nested dinamic block -->
        <tmpl:row_checkbox>
        <input type="checkbox" name="my" value="{value}">{caption}<br>
        </tmpl:row_checkbox>
        </td>
    </tr>

</tmpl:ROW>
</table>

    <input type="submit" name="submit" value="Submit">

</form>

</body>
</html>

For more information send a message to info at phpclasses dot org.