Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/example.xtpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stefan Gabos  >  PHP Forms Generation and Validation Class  >  examples/example.xtpl  >  Download  
File: examples/example.xtpl
Role: Auxiliary data
Content type: text/plain
Description: example template file
Class: PHP Forms Generation and Validation Class
Generate and validate HTML forms
Author: By
Last change:
Date: 2006-12-21 23:52
Size: 1,978 bytes
 

Contents

Class file image Download
<!--
    NOTE THAT WE'RE NOT DEFINING NEITHER <FORM></FORM> AND <INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE">
    BOTH BEING IN THE MAIN TEMPLATE IN THE /TEMPLATES FOLDER
-->

<!-- BEGIN: main -->
<table>
    <tr>
        <td>
            {controls.label_name}:&nbsp;
        </td>
        <td>
            {controls.name}
        </td>
    </tr>
    <!-- BEGIN: e1 -->
    <tr>
        <td></td>
        <td>{errors.e1}</td>
    </tr>
    <!-- END: e1 -->
    <tr>
        <td>
            {controls.label_password}:&nbsp;
        </td>
        <td>
            {controls.password}
        </td>
    </tr>
    <tr>
        <td>
            {controls.label_confirm_password}:&nbsp;
        </td>
        <td>
            {controls.confirm}
        </td>
    </tr>
    <!-- BEGIN: e2 -->
    <tr>
        <td></td>
        <td>{errors.e2}</td>
    </tr>
    <!-- END: e2 -->
    <tr>
        <td>
            {controls.label_age}:&nbsp;
        </td>
        <td>
            {controls.age}
        </td>
    </tr>
    <!-- BEGIN: e3 -->
    <tr>
        <td></td>
        <td>{errors.e3}</td>
    </tr>
    <!-- END: e3 -->
    <tr>
        <td valign="top">
            {controls.label_option}:&nbsp;
        </td>
        <td>
            {controls.option}
        </td>
    </tr>
    <!-- BEGIN: e4 -->
    <tr>
        <td></td>
        <td>{errors.e4}</td>
    </tr>
    <!-- END: e4 -->
    <tr>
        <td valign="top">
            {controls.label_date}:&nbsp;
        </td>
        <td>
            {controls.date}
        </td>
    </tr>
    <!-- BEGIN: e5 -->
    <tr>
        <td></td>
        <td>{errors.e5}</td>
    </tr>
    <!-- END: e5 -->
    <tr>
        <td>
        </td>
        <td>
            {controls.file}
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            {controls.submit}
        </td>
    </tr>
</table>
<!-- END: main -->