The sections below detail the purpose of each of the 4 framework files, the elements contained in each file and the very bottom provides examples of each css
element available within the framework. To configure and download the framework files use the Files Page.
||Implementation of a framework page that will be displayed in a browser. Combines all functions in proper order to produce a blank skeleton page of the framework.
This file is intended to be used as the basis to create all pages of the framework.|
||Processes data of framework. Contains all the functions used to work with data: makes a database connection, validates input data, converts data and other non-layout
related functions of the framework.|
|| - Minimum functions needed to produce the HTML that will create an essentially blank page of the framework. These functions
create the HTML head section, the page header, left menu column, body structure and footer of an HTML page.
- Functions used to produce HTML for elements that are not part of the skeleton but very commonily used. These
functions help to quickly generate input forms, form elements and tables to display data.
|| - Minimum CSS elements needed to create a page with this framework. These elements are the ones that appear in the page
header, body structure and footer.
- CSS elements used to for elements that are not part of the skeleton but very commonily used. Thses elements are
for indentented paragraphs, H tags and commonly used form elements.
||Makes database connection using database variables in configuration section.|
||Converts MySQL formatted date ('2010-01-01') to displayable date format ('1/1/2010') and vice versa.|
|validate_slength($s, $min, $max)
||Verifies a string's length is within a specified range.|
$s is string to test.
$min is minimum length of string.
$max is maximum length of string.
|validate_nvalue($n, $min, $max)
||Verifies a number is within a specified range.|
$n is number to test.
$min is minimum value of number.
$max is maximum value of number.
||Verifies a string has valid format of email address.|
$e is email address to test.
||Verifies two strings match each other and meet rules for being a password.|
$p1 is first instance of password.
$p1 is second instance of password.
||Determines if admin is signed on or not.|
$p is password.
$n is admin name.
||Retrieves output of a url as a string.|
$u is url to retreive.
||Function to put any html that needs to show in the header of every page framework produces.|
||Function to put any html that needs to show in the left column of every page framework produces.|
||Function to put any html that needs to show in the footer of every page framework produces.|
||Spits out HTML code for head of document down to just before closing head tag.|
$title will appear in title tag.
||Spits out HTML code from closing head tag to beginning of main area.|
||Spits out HTML code from closing of main area to end of document.|
||Creates HTML for menu appearing in left column.|
||Creates HTML for horizontal menu of page.|
$pos determines if it is top ("top") or bottom ("bottom") menu of page.
|html_comments($s1, $s2="", $lines=2)
||Creates HTML comments.|
$s1 is first line of comment.
$s2 is second line of comment.
$lines is how many lines comments take up.
||Creates HTML for text inside a div, by default its an alert div.|
$t is text to appear inside div tag.
$class is CSS class of div tag.
|html_link($url, $t, $class="plain")
||Creates HTML for a hyperlink.|
$url is where the link goes to.
$t is what will be shown on screen.
$class is CSS class of link.
|html_form($url, $action="post", $hidnames=0, $hidvalues=0)
||Creates HTML for form tag and any hidden tags of form.
$url is where the form's data will be sent.
$action is how to send the form's data, either "get" or "post".
$hidnames is names of all hidden tags the form has.
$hidvalues is values of all hidden tags the form has.
||Creates HTML for hidden input tag.|
$name is name of input.
$default is value of input.
|html_forminput($size, $max, $name, $default="", $class="form_input")
||Creates HTML for text input tag.|
$size is how large it should appear.
$max is how many characters can be typed into it.
$name is HTML name of the tag.
$default is default value it shows.
$class is the CSS class of the tag.
|html_formselect($values, $displays, $name, $default="", $class="form_select")
||Creates HTML for select tag input.
$values is array or number that determines what is value of select tag. If number it shows from that number to $displays.
$displays is array or number that determines what is shown in select tag. If number it is upper bound.
$default is value of select tag that should be chosen initially.
$name is HTML name of the select tag.
$class is the CSS class of the select tag.
|html_formcheckbox($name, $value=1, $checked=0)
||Creates HTML for checkbox.|
$name is name of checkbox.
$value is value that checkbox returns when set to true.
$checked determines default value, 1=checked, 0 not checked.
|html_formtextarea($name, $default="", $class="form_text")
||Creates HTML for textarea tag.|
$name is name of textarea.
$default is value to appear inside textarea.
$class is CSS class of textarea.
||Creates HTML for submit button of form.|
$t is text to appear on button.
$class is CSS class of input.
||Creates HTML for entire form with horizontal rows of data.
$rows is array of array of strings which holds data for each cell of table.
$columns is array of strings that will be column headings.
||Creates HTML for entire form with vertical layout of data (1 record).
$cells is array of strings for cells of table, odd indexed items go in left cell, even indexed items on right.
||Link in top-left corner of site where site title/logo goes.|
||Container for links in top horizontal menu just under site title/logo.|
||Top horizontal menu link, inside div.horzmenu_top.|
||Table cell of left column of main portion of page.|
||Table cell of right column (main, large area) of page.|
||Container for entire main section of page.|
||Tag in top left corner of main section of page to display page name.|
||Container for links in bottom horizontal menu just under left column and main section.|
||Bottom horizontal menu link, inside div.horzmenu_bottom|
||Creates a colored box used for headings.|
||Creates left aligned, underline for subheadings.|
||Main section paragraph tag which pads it left and right just enough to come off borders.|
||Paragraph that is indented to from the left.|
||Paragraph with extra space above where it starts.|
||Common link for use within content of main section.|
||Contains highlighted message to user.|
||Form tag that doesn't have line breaks before or after it.|
||Table tag for form with raised borders.|
||Table cell tag for form laid out vertically.|
||Table cell tag for headers of a horizontal form table.|
||Tag for row of cells in horizontal form table with main color background.|
||Tag for row of cells in horizontal form table with secondary color background.|
||Link to be used within a table form cell.|
||Text box tag input|
||Select tag input|
||Input Button tag|
||Textarea tag input|