Information buildInput('title', 'Title', 'text', $field_data['title'], array(), 'The title of the page (Eg. Users)'); $html->buildInput('class_name', 'Class Name', 'text', $field_data['class_name'], array(), 'The class of the model for this Table (Eg. User'); $html->buildInput('object_name', 'Object Name', 'text', $field_data['object_name'], array(), 'The name of the model object(Eg. $User)'); $html->buildInput('table', 'Table', 'text', $field_data['table'], array(), 'Use this database table for all operations (Eg. users)'); $html->buildInput('name_single', 'Single', 'text', $field_data['name_single'], array(), 'The singular of the page title (Eg. User)'); $html->buildInput('name_plural', 'Plural', 'text', $field_data['name_plural'], array(), 'The plural of the page title (Eg. Users)'); ?>
Files buildInput('controller_name', 'Controller Name', 'text', $field_data['controller_name'], array(), 'This will be the name of the controller/template folders (Eg. user)'); $html->buildInput('model_file', 'Model File', 'text', $field_data['model_file'], array(), 'This filename will be the file name of the model file. (Eg. Users.php)'); ?>
Functionality buildInput('add_funcionality', 'Add', 'checkbox', $field_data['add_funcionality'], array(), 'Is the adding operation allowed?'); ?> buildInput('edit_funcionality', 'Edit', 'checkbox', $field_data['edit_funcionality'], array(), 'Is editing operations allowed?'); ?> buildInput('delete_funcionality', 'Delete', 'checkbox', $field_data['delete_funcionality'], array(), 'Is deletion allowed?'); ?> buildInput('status_funcionality', 'Status', 'checkbox', $field_data['status_funcionality'], array(), 'Is status changing possible?'); ?>
Fields
Field buildInput('field_name_' . $field_count, 'Field', 'text', $field_data['field_name_' . $field_count], array(), 'The database field name (Eg. user_first_name)'); $all_auto_handler = array( 'off' => 'None(Manual Handling)', 'primary_key' => 'Primary Key Field', 'time_of_insert'=> 'Insertion Time', 'time_of_update'=> 'Time of Update', 'status_holder' => 'Status Field', 'current_user' => 'User ID Field', ); $html->buildInput("auto_handler_$field_count", "Auto Handling", "select", $field_data['auto_handler_' . $field_count], array("options"=>$all_auto_handler), 'You will get moore option on how to handle this field if its set to manual.'); ?>
buildInput('field_title_' . $field_count,'Title', 'text', $field_data['field_title_' . $field_count], array(), 'The name of the field (Eg. First Name)'); $html->buildInput('field_list_' . $field_count, 'List', 'checkbox', $field_data['field_list_' . $field_count], array(), 'If checked, this field will be shown in the listing page.'); $all_types = array( 'text' => 'Text', 'textarea' => 'Textarea', 'list' => 'List', 'file' => 'File', 'date' => 'Date', 'time' => 'Time', 'url' => 'URL', 'password' => 'Password', 'editor' => 'Editor', 'foreign_key'=> 'Foreign Key', ); $html->buildInput("field_type_$field_count", "Type", "select", $field_data['field_type_' . $field_count], array("options"=>$all_types), 'The field type - what kind of data will be stored in the field.'); ?>
buildInput('field_date_format_' . $field_count, 'Date Format', 'text', $field_data['field_date_format_' . $field_count], array(), 'The date format - MySQL Format. If empty defaults to %Y-%m-%d (Eg. %d %b, %Y)'); ?> buildInput('field_show_time_' . $field_count, 'Show Time', 'checkbox', $field_data['field_show_time_' . $field_count], array(), 'If this is checked, it gives the users the ability to input time as well as date.'); ?>
'None', 'md5' => 'MD5', 'sha1' => 'SHA1', 'base64_encode'=> 'Base 64' ); $html->buildDropDownArray($all_algorithms, 'field_password_encrypt_' . $field_count,''); ?> The password will be stored in the database after it is encrypted using the given algorithm. Do NOT use the Base 64 algorithm unless you know what you are doing.
buildInput('field_password_salt_' . $field_count, 'Encryption Salt', 'text', $field_data['field_password_salt_' . $field_count], array(), 'The salt that should be used when encrypting. Only valid for MD5 and SHA1 encryptions.'); ?>
buildInput('field_filetype_' . $field_count, 'Allowed File types', 'text', $field_data['field_filetype_' . $field_count], array(), 'Comma seperated list of all allowed filetypes. (Eg. jpg,gif,jpeg,png)'); ?>
buildInput('list_values_' . $field_count, 'List Data', 'textarea', $field_data['list_values_' . $field_count], array(), 'You can enter a SQL query that will return the data for the List or create a comma seperated list of options. (Eg: "United States","Canada","Other Country")'); ?>
buildInput('field_foreign_key_reference_' . $field_count, 'Foreign Key Reference', 'text', $field_data['field_foreign_key_reference_' . $field_count], array(), 'The reference to the the foreign key used here. Should be specified in this format - Table_Name.Field . Example: Team.id'); ?>
'Must', 'email' => 'Email', 'filetype' => 'File Type', 'number' => 'Number', 'unique' => 'Unique', 'url' => 'URL', ); $html->buildDropDownArray($all_algorithms, 'field_validation_' . $field_count,'',array('multiple'=>'multiple','name'=>'field_validation_' . $field_count . '[]')); ?> Which all validation should be applied to the field.

Extra Information buildInput('pager_status', 'Enable Pager?', 'checkbox', '1', array('checked'=>'checked'), 'Enable the pager'); $html->buildInput('pager_items_per_page', 'Items Per Page', 'text', '20', array(), 'The number of items that should be shown in each page'); $html->buildInput('upload_path', 'Upload Location', 'text', '../uploads', array(), 'The folder where all the files must be upload to. Make sure that there is a "/" at the end.'); $html->buildInput('mandatory_text', 'Mandatory Text', 'text', '*', array(), 'The text that should be shown next the each mandateory field (Eg. *)'); $html->buildInput('main_query', 'Main Query', 'textarea', '', array(), 'The query that must be used when creating the display. If empty, this will default to "SELECT * FROM <Table>"'); ?>
Files to Generate buildInput(str_replace(array('/','.'),'_', $template_file), $template_file, 'checkbox', $template_file, array('checked'=>'checked', 'name'=>'generate_files[]'), 'Makes sure that this file is generated. ' . $dependancy_functionality . ''); } ?>



Enter the data at the end of the generated PHP file here to re-populate the form with the old page details.
Help!