PHP Classes

File: sample_template.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of sameer shelavale  >  X2Form  >  sample_template.html  >  Download  
File: sample_template.html
Role: Auxiliary data
Content type: text/plain
Description: a template file to customize the Quidich form in example1_with_template.php
Class: X2Form
Show and validate HTML forms defined in XML files
Author: By
Last change:
Date: 2 years ago
Size: 2,595 bytes


Class file image Download
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sample Form</title>
#diamondForm>tbody>tr>td{ vertical-align:top; border:1px solid #e6e6e6; background-color:#f8f8f8; }
#diamondForm .tdTitle{ font-weight:bold; background-color:#dfdfdf; color:#444; height:20px; padding:3px 0 0 10px; margin-bottom:5px; }
#diamondForm .integer{ width:60px; }
#diamondForm .hidden{ display:none;}
<script type="text/javascript">

var fManager = {

	toggleElement: function( elemId ){
		elem = document.getElementId( elemId );
		if( == 'none' ){ = 'block';
		}else{ = 'none';

	enableElement: function( elemId ){
		document.getElementById( elemId ).style.display = 'block';				

	disableElement: function( elemId ){
		document.getElementById( elemId ).style.display = 'none';				

<table width="100%" id="diamondForm" cellspacing="5" cellpadding="3">
		<td width="25%"><div class="tdTitle">[FIRST_NAME_title]</div>[FIRST_NAME]</td>
		<td width="25%"><div class="tdTitle">[LAST_NAME_title]</div>[LAST_NAME]</td>
		<td width="25%"><div class="tdTitle">[QMAIL_title]</div>[QMAIL]</td>
		<td width="25%"><div class="tdTitle">[PROFESSION_title]</div>[PROFESSION] <br/>[PROFESSION_description]</td>
		<td colspan="1">
			<div class="tdTitle">Broomsticks</div>
		<td colspan="1">
			<div class="tdTitle">Matches played?</div>
		<td colspan="2">
			<div class="tdTitle">House</div>
		<td colspan="2">
			<div class="tdTitle">[INTRO_title]</div>
		<td  colspan="1">
			<div class="tdTitle">[PHOTO_title]</div>
		<td  colspan="1">
			<div class="tdTitle">[PORTFOLIO_title]</div>
		<td colspan="4">
			[submit] [dump] [eventbutton]
		<td colspan="5">&nbsp;</td>