“Cpanel Email Creator” Documentation by “The-Di-Lab” v1.3


“Cpanel Email Creator”

Created: 14/Mar/2011
By: The-Di-Lab
Email: thedilab@gmail.com

Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. Installation
  2. HTML Structure
  3. CSS Files and Structure
  4. JavaScript
  5. Validation Rules
  6. Sources and Credits

A) Installation - top


B) HTML Structure - top

This theme is using a centered column layout. The main html element is the form as below:

HTML Structure

C) CSS Files and Structure - top

There is only one css file in this appilcaiton, you can set certain properties easily from the css file directly, following are the correspoinding css class and its properties to certain elements:

CSS Structure


D) JavaScript - top

Javascript for this script is included in the header of the index.php file. The main function of the javascripts is client side validation. It basically validates the value of each field to ensure it is not empty.

If you wish to add some more validation to those four fields. You can follow the same patter as above:

if(validataion_rule_fail){
			errorDiv = $(errorDiv).clone();
			$(errorDiv).text('YOUR_VALIDATING_ERROR_MESSAGE');
			$(YOUR_VALIDATING_FIELD).parent('div').append(errorDiv);
			submit=false;
}	


E) Validation Rules - top

Starting from version 1.4, I have added some email validation rules which will be handled directly by this script before it goes to your server:

Currently, there are four valiadtion rules.

  1. 'email': ensure it is a valid email address. You can change 'email' value to your desired message.
  2. 'minLength': minimum length of the email address, excluding @blahlah.com. Set 'length' value to the minimum value required, and you can change 'msg' value to your desired message.
  3. 'maxLength': maximum length of the email address, excluding @blahlah.com. Set 'length' value to the maximum value required, and you can change 'msg' value to your desired message.
  4. 'alphaNumeric': ensure the address is made of alpha and numeric. You can change 'alphaNumeric' value to your desired message.


F) Sources and Credits - top

Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. No guarantees, but I'll do my best to assist.
Please follow my twitter for future updates of this script.

The-Di-Lab

Go To Table of Contents