How to create content box split into two peaces (plain)

Please note:

  • Always use createLink to display links
  • Do not hardcode template name use <?php echo $this->template;?> instead
  • Always use type="button" instead of type="submit"
					
Heading
Description
Heading Box One
Text for Box One - FUll
Heading Box One
Text for Box One- LEFT
Heading Box Two
Text for Box Two

How do we use form elements

Each form element has to have label and input (if to be displayed on different lines
						
						
					
Make sure following rules are applied
  • Field name matches DB name
  • You have maxlength
  • You use class="text"
  • You apply the validation rules as class: required, nospaces, etc
  • Your label for matches your id in input
For the actual form, make sure that you use following syntax
						
Make sure following rules are applied
  • Always use index.php
  • For option, task and section use hidden fields
  • Always have id that starts with frm_* frm_contact_info

How do we use table

Each table has to have following elements in order to be valid XHTML
						
Heading One Heading Two
Row One Column One Row One Column two
Row Two Column One Row Two Column Two
Spanning Footer
Make sure following rules are applied
  • You use thead, tfoot, tbody all the time when necessary
  • Each table has to have unique class name that starts with tbl_* tbl_tlds
  • Always use class="reg_row" and class="alt_row" instead of class=""

How to add validation

Each table has to have following elements in order to be valid XHTML
						
					
Make sure following rules are applied:
  • If you are just looking for pass or fail on validation instead of text, then call your validateForm without param:
    Example: $("#frm_add_contact").validateForm();