Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_template.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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
 

Contents

Class file image Download
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sample Form</title>
</head>
<body>
<style>
#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;}
</style>
<script type="text/javascript">

var fManager = {

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

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

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

</script>
<table width="100%" id="diamondForm" cellspacing="5" cellpadding="3">
	<tr>
		<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>
	</tr>
	<tr>
		<td colspan="1">
			<div class="tdTitle">Broomsticks</div>
			[BROOMSTICKS_title]<br/>
			[BROOMSTICKS]<br/>[BROOMSTICKS_description]
		
		</td>
		<td colspan="1">
			<div class="tdTitle">Matches played?</div>
			[MATCHES_PLAYED_title]
			<div>[MATCHES_PLAYED]</div>
			[MATCHES_PLAYED_description]
		</td>
		<td colspan="2">
			<div class="tdTitle">House</div>
			[HOUSE] 
			&nbsp;&nbsp;
			[IS_SEPARABLE_title] [IS_SEPARABLE]
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<div class="tdTitle">[INTRO_title]</div>
			[INTRO] 
		</td>
		<td  colspan="1">
			<div class="tdTitle">[PHOTO_title]</div>
			[PHOTO]<br/>
			[PHOTO_description]
		</td>
		<td  colspan="1">
			<div class="tdTitle">[PORTFOLIO_title]</div>
			[PORTFOLIO]<br/>
			[PORTFOLIO_description]
		</td>
	</tr>
	
	<tr>
		<td colspan="4">
			[submit] [dump] [eventbutton]
		</td>
				
	</tr>
	
	<tr>
		<td colspan="5">&nbsp;</td>
	</tr>
</table>

</body>
</html>