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.