AAAAinput_custom.ctp000066600000006665151374537360010044 0ustar00
Custom Element (HTML/PHP)

Custom Element Here

Header(array('general' => 'General'), 'input_custom_element_config_{n}'); ?> tabStart('general'); ?> input('input_custom_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'can be used to show the server side error messages.')); ?> input('input_custom_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> input('input_custom_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_custom_{n}_clean_config', array('type' => 'checkbox', 'label' => 'Pure code', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'Should the code be rendered without being included inside any containers ?')); ?> input('input_custom_{n}_code_config', array('type' => 'textarea', 'label' => 'Code', 'rows' => 15, 'cols' => 50, 'style' => 'width:450px !important;')); ?> input('input_custom_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_custom_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> tabEnd(); ?>
input_radio.ctp000066600000025135151374537360007621 0ustar00
Radio Box
radio('Chronoforms.'.$element_params['input_name'], $element_params['options'], array('value' => $element_params['input_value'], 'legend' => $element_params['legend'])); ?> $radio_option_text): ?> $radio_option_text){ if(!empty($options)){ $options .= "\n"; } $options .= $radio_option_value.'='.$radio_option_text; } ?> input('chronofield[{n}][input_radio_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_radio_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_radio_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_radio_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_radio_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_radio_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_radio_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_radio_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_radio_{n}_radios_over]', array('type' => 'hidden', 'id' => 'input_radio_{n}_radios_over', 'value' => $element_params['radios_over'])); ?> input('chronofield[{n}][input_radio_{n}_legend]', array('type' => 'hidden', 'id' => 'input_radio_{n}_legend', 'value' => $element_params['legend'])); ?> input('chronofield[{n}][input_radio_{n}_ghost]', array('type' => 'hidden', 'id' => 'input_radio_{n}_ghost', 'value' => $element_params['ghost'])); ?> input('chronofield[{n}][input_radio_{n}_ghost_value]', array('type' => 'hidden', 'id' => 'input_radio_{n}_ghost_value', 'value' => $element_params['ghost_value'])); ?> input('chronofield[{n}][input_radio_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_radio_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_radio_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_radio_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_radio_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_radio_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_radio_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_radio_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_radio_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_radio_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?> input('chronofield[{n}][input_radio_{n}_enable_dynamic_data]', array('type' => 'hidden', 'id' => 'input_radio_{n}_enable_dynamic_data', 'value' => $element_params['enable_dynamic_data'])); ?> input('chronofield[{n}][input_radio_{n}_data_path]', array('type' => 'hidden', 'id' => 'input_radio_{n}_data_path', 'value' => $element_params['data_path'])); ?> input('chronofield[{n}][input_radio_{n}_value_key]', array('type' => 'hidden', 'id' => 'input_radio_{n}_value_key', 'value' => $element_params['value_key'])); ?> input('chronofield[{n}][input_radio_{n}_text_key]', array('type' => 'hidden', 'id' => 'input_radio_{n}_text_key', 'value' => $element_params['text_key'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'ghost' => 'Ghost', 'dynamic_data' => 'Dynamic Data'), 'input_radio_element_config_{n}'); ?> tabStart('general'); ?> input('input_radio_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_radio_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_radio_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_radio_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_radio_{n}_options_config', array('type' => 'textarea', 'label' => 'Options', 'rows' => 5, 'cols' => 50, 'operation' => "multi_option", 'operation_fieldtype' => "radio", 'smalldesc' => 'in value=text multi line format.')); ?> input('input_radio_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_radio_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_radio_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_radio_{n}_radios_over_config', array('type' => 'checkbox', 'label' => 'Radios Vertical', 'value' => '1', 'rule' => "bool")); ?> input('input_radio_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_radio_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_radio_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_radio_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_radio_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?> tabStart('ghost'); ?> input('input_radio_{n}_ghost_config', array('type' => 'checkbox', 'label' => 'Enable Ghost', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'The ghost is a hidden field with the same name to assure that a key with this field name always exists in the POST array.')); ?> input('input_radio_{n}_ghost_value_config', array('type' => 'text', 'label' => 'Ghost Value', 'value' => '', 'class' => 'medium_input', 'smalldesc' => 'Value here will appear if no choice has been made.')); ?> tabEnd(); ?> tabStart('dynamic_data'); ?> input('input_radio_{n}_enable_dynamic_data_config', array('type' => 'select', 'label' => 'Enable', 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => '1', 'smalldesc' => 'Enable Dynamic options loading, the options should exist in the $form->data array.')); ?> input('input_radio_{n}_data_path_config', array('type' => 'text', 'label' => 'Data Path', 'value' => '', 'smalldesc' => 'The data path in the $form->data array, can be a MODEL ID, or a path using dots: MODEL1.MODEL2')); ?> input('input_radio_{n}_value_key_config', array('type' => 'text', 'label' => 'Value Key', 'smalldesc' => 'The key name under which each option value will be found, so for example, if you have a multi list of users data loaded, then you may enter here "id"')); ?> input('input_radio_{n}_text_key_config', array('type' => 'text', 'label' => 'Text Key', 'smalldesc' => 'The key name under which each option text will be found, so for example, if you have a multi list of users data loaded, then you may enter here "username"')); ?> tabEnd(); ?>
input_submit.php000066600000004322151374537360010022 0ustar00 'input_submit_{n}', 'input_id' => '', 'input_class' => '', 'multiline_start' => '0', 'multiline_add' => '0', 'button_type' => 'submit', 'button_align' => 'left', 'back_button' => 0, 'reset_button' => 0, 'container_id' => 0, 'back_button_value' => 'Back', 'reset_button_value' => 'Reset', 'input_value' => 'Submit'); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['name'] = $formdata_element[$field_header.'_input_name']; $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['class'] = $formdata_element[$field_header.'_input_class']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['button_type'] = $formdata_element[$field_header.'_button_type']; $formcontent_item_array['button_align'] = $formdata_element[$field_header.'_button_align']; $formcontent_item_array['back_button'] = $formdata_element[$field_header.'_back_button']; $formcontent_item_array['reset_button'] = $formdata_element[$field_header.'_reset_button']; $formcontent_item_array['back_button_value'] = $formdata_element[$field_header.'_back_button_value']; $formcontent_item_array['reset_button_value'] = $formdata_element[$field_header.'_reset_button_value']; $formcontent_item_array['value'] = $formdata_element[$field_header.'_input_value']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_checkbox_group.ctp000066600000026143151374537360011525 0ustar00
CheckBoxes Group
$checkbox_group_option_text): ?> $checkbox_group_option_text){ if(!empty($options)){ $options .= "\n"; } $options .= $checkbox_group_option_value.'='.$checkbox_group_option_text; } }else{ $options = ''; } ?> input('chronofield[{n}][input_checkbox_group_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_radios_over]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_radios_over', 'value' => $element_params['radios_over'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_checked]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_checked', 'value' => $element_params['checked'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_ghost]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_ghost', 'value' => $element_params['ghost'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_ghost_value]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_ghost_value', 'value' => $element_params['ghost_value'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_enable_dynamic_data]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_enable_dynamic_data', 'value' => $element_params['enable_dynamic_data'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_data_path]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_data_path', 'value' => $element_params['data_path'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_value_key]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_value_key', 'value' => $element_params['value_key'])); ?> input('chronofield[{n}][input_checkbox_group_{n}_text_key]', array('type' => 'hidden', 'id' => 'input_checkbox_group_{n}_text_key', 'value' => $element_params['text_key'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'ghost' => 'Ghost', 'dynamic_data' => 'Dynamic Data'), 'input_checkbox_group_element_config_{n}'); ?> tabStart('general'); ?> input('input_checkbox_group_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_checkbox_group_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_checkbox_group_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_checkbox_group_{n}_checked_config', array('type' => 'text', 'label' => 'Checked value', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'the checkbox value which should be checked by default.')); ?> input('input_checkbox_group_{n}_options_config', array('type' => 'textarea', 'label' => 'Options', 'rows' => 5, 'cols' => 50, 'operation' => "multi_option", 'operation_fieldtype' => "checkbox", 'smalldesc' => 'in value=text multi line format.')); ?> input('input_checkbox_group_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_checkbox_group_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_radios_over_config', array('type' => 'checkbox', 'label' => 'Checkboxes Vertical', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_checkbox_group_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_checkbox_group_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_group_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_checkbox_group_{n}_validations_config', array('type' => 'checkbox', 'label' => '1 Required', 'class' => 'small_input', 'value' => 'group[{n}]', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?> tabStart('ghost'); ?> input('input_checkbox_group_{n}_ghost_config', array('type' => 'checkbox', 'label' => 'Enable Ghost', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'The ghost is a hidden field with the same name to assure that a key with this field name always exists in the POST array.')); ?> input('input_checkbox_group_{n}_ghost_value_config', array('type' => 'text', 'label' => 'Ghost Value', 'value' => '', 'class' => 'medium_input', 'smalldesc' => 'Value here will appear if no choice has been made.')); ?> tabEnd(); ?> tabStart('dynamic_data'); ?> input('input_checkbox_group_{n}_enable_dynamic_data_config', array('type' => 'select', 'label' => 'Enable', 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => '1', 'smalldesc' => 'Enable Dynamic options loading, the options should exist in the $form->data array.')); ?> input('input_checkbox_group_{n}_data_path_config', array('type' => 'text', 'label' => 'Data Path', 'value' => '', 'smalldesc' => 'The data path in the $form->data array, can be a MODEL ID, or a path using dots: MODEL1.MODEL2')); ?> input('input_checkbox_group_{n}_value_key_config', array('type' => 'text', 'label' => 'Value Key', 'smalldesc' => 'The key name under which each option value will be found, so for example, if you have a multi list of users data loaded, then you may enter here "id"')); ?> input('input_checkbox_group_{n}_text_key_config', array('type' => 'text', 'label' => 'Text Key', 'smalldesc' => 'The key name under which each option text will be found, so for example, if you have a multi list of users data loaded, then you may enter here "username"')); ?> tabEnd(); ?>
input_textarea.ctp000066600000021213151374537360010331 0ustar00
Text Area
input('chronofield[{n}][input_textarea_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_textarea_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_textarea_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_textarea_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_textarea_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_textarea_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_textarea_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_textarea_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_textarea_{n}_input_cols]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_cols', 'value' => $element_params['input_cols'])); ?> input('chronofield[{n}][input_textarea_{n}_input_rows]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_input_rows', 'value' => $element_params['input_rows'])); ?> input('chronofield[{n}][input_textarea_{n}_wysiwyg_editor]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_wysiwyg_editor', 'value' => $element_params['wysiwyg_editor'])); ?> input('chronofield[{n}][input_textarea_{n}_editor_buttons]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_editor_buttons', 'value' => $element_params['editor_buttons'])); ?> input('chronofield[{n}][input_textarea_{n}_editor_width]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_editor_width', 'value' => $element_params['editor_width'])); ?> input('chronofield[{n}][input_textarea_{n}_editor_height]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_editor_height', 'value' => $element_params['editor_height'])); ?> input('chronofield[{n}][input_textarea_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_textarea_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_textarea_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'editors' => 'Editors', 'validation' => 'Validation'), 'input_textarea_element_config_{n}'); ?> tabStart('general'); ?> input('input_textarea_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_textarea_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_textarea_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_textarea_{n}_input_cols_config', array('type' => 'text', 'label' => 'Field Columns', 'class' => 'small_input', 'value' => '')); ?> input('input_textarea_{n}_input_rows_config', array('type' => 'text', 'label' => 'Field Rows', 'class' => 'small_input', 'value' => '')); ?> input('input_textarea_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_textarea_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> input('input_textarea_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_textarea_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_textarea_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_textarea_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_textarea_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_textarea_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_textarea_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('editors'); ?> input('input_textarea_{n}_wysiwyg_editor_config', array('type' => 'checkbox', 'label' => 'Enable WYSIWYG Editor', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'Enable the WYSIWYG editor for this text area ?')); ?> input('input_textarea_{n}_editor_buttons_config', array('type' => 'checkbox', 'label' => 'Show editor buttons', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'Enable the editor buttons ?')); ?> input('input_textarea_{n}_editor_width_config', array('type' => 'text', 'label' => 'Editor Width', 'class' => 'small_input', 'value' => '')); ?> input('input_textarea_{n}_editor_height_config', array('type' => 'text', 'label' => 'Wditor Height', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_textarea_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?>
input_panel_end.ctp000066600000002717151374537360010451 0ustar00
Panel End
input('chronofield[{n}][input_panel_end_{n}_tab_key]', array('type' => 'hidden', 'id' => 'input_panel_end_{n}_tab_key', 'value' => $element_params['tab_key'])); ?>
Header(array('settings' => 'Settings', 'help' => 'Help'), 'input_panel_end_element_config_{n}'); ?> tabStart('settings'); ?> input('input_panel_end_{n}_tab_key_config', array('type' => 'text', 'label' => 'Tab Key', 'class' => 'small_input', 'smalldesc' => 'Your tab key which should exist in the tabs list in the "Tab Pane" element.')); ?> tabEnd(); ?> tabStart('help'); ?> This element will close an opened panel. tabEnd(); ?>
.htaccess000066600000000177151374537360006371 0ustar00 Order allow,deny Deny from all input_hidden.php000066600000002024151374537360007747 0ustar00 'input_hidden_{n}', 'input_id' => '', 'label_text' => '# {n}', 'container_id' => 0, 'input_value' => ''); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['default'] = $formdata_element[$field_header.'_input_value']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_pane_start.php000066600000001176151374537360010663 0ustar00 'pane_{n}', 'pane_type' => 'tabs', 'container_id' => 0, 'pane_start' => 0 ); } return array('element_params' => $element_params); } } ?>input_pane_end.ctp000066600000002702151374537360010267 0ustar00
Pane End
input('chronofield[{n}][input_pane_end_{n}_tab_key]', array('type' => 'hidden', 'id' => 'input_pane_end_{n}_tab_key', 'value' => $element_params['tab_key'])); ?>
Header(array('settings' => 'Settings', 'help' => 'Help'), 'input_pane_end_element_config_{n}'); ?> tabStart('settings'); ?> input('input_pane_end_{n}_tab_key_config', array('type' => 'text', 'label' => 'Tab Key', 'class' => 'small_input', 'smalldesc' => 'Your tab key which should exist in the tabs list in the "Tab Pane" element.')); ?> tabEnd(); ?> tabStart('help'); ?> This element will close an opened pane. tabEnd(); ?>
input_panel_start.php000066600000001164151374537360011034 0ustar00 'panel_{n}', 'container_id' => 0, 'panel_label' => 'Example Panel {n}' ); } return array('element_params' => $element_params); } } ?>input_panel_end.php000066600000001036151374537360010443 0ustar00 0, ); } return array('element_params' => $element_params); } } ?>input_panel_start.ctp000066600000003635151374537360011040 0ustar00
Panel Start
input('chronofield[{n}][input_panel_start_{n}_panel_id]', array('type' => 'hidden', 'id' => 'input_panel_start_{n}_panel_id', 'value' => $element_params['panel_id'])); ?> input('chronofield[{n}][input_panel_start_{n}_panel_label]', array('type' => 'hidden', 'id' => 'input_panel_start_{n}_panel_label', 'value' => $element_params['panel_label'])); ?>
Header(array('settings' => 'Settings', 'help' => 'Help'), 'input_panel_start_element_config_{n}'); ?> tabStart('settings'); ?> input('input_panel_start_{n}_panel_id_config', array('type' => 'text', 'label' => 'Panel ID', 'class' => 'small_input', 'smalldesc' => 'Your panel id, make sure its unique in your Pane.')); ?> input('input_panel_start_{n}_panel_label_config', array('type' => 'text', 'label' => 'Panel Label', 'class' => 'small_input', 'smalldesc' => 'Your panel label text.')); ?> tabEnd(); ?> tabStart('help'); ?> This element will start a new panel, make sure that your panel is started inside an opened "Pane". tabEnd(); ?>
index.html000066600000000000151374537360006551 0ustar00input_pane_start.ctp000066600000004622151374537360010661 0ustar00
Pane Start
input('chronofield[{n}][input_pane_start_{n}_pane_id]', array('type' => 'hidden', 'id' => 'input_pane_start_{n}_pane_id', 'value' => $element_params['pane_id'])); ?> input('chronofield[{n}][input_pane_start_{n}_pane_type]', array('type' => 'hidden', 'id' => 'input_pane_start_{n}_pane_type', 'value' => $element_params['pane_type'])); ?> input('chronofield[{n}][input_pane_start_{n}_pane_start]', array('type' => 'hidden', 'id' => 'input_pane_start_{n}_pane_start', 'value' => $element_params['pane_start'])); ?>
Header(array('settings' => 'Settings', 'help' => 'Help'), 'input_pane_start_element_config_{n}'); ?> tabStart('settings'); ?> input('input_pane_start_{n}_pane_id_config', array('type' => 'text', 'label' => 'Pane ID', 'class' => 'big_input', 'smalldesc' => 'The id of your pane, should be unique one in your form.')); ?> input('input_pane_start_{n}_pane_type_config', array('type' => 'select', 'label' => 'Pane Type', 'options' => array('tabs' => 'Tabs', 'sliders' => 'Sliders'), 'smalldesc' => 'Select the type of your Pane.')); ?> input('input_pane_start_{n}_pane_start_config', array('type' => 'text', 'label' => 'Pane Start Offset', 'class' => 'small_input', 'smalldesc' => 'The numeric key of the panel which will be active on start, for first panel use 0, for the 2nd use 1,...etc')); ?> tabEnd(); ?> tabStart('help'); ?> This element will start a new pane, you will need to enter your panels inside this pane. tabEnd(); ?>
input_hidden.ctp000066600000004733151374537360007757 0ustar00
Hidden Box
input('chronofield[{n}][input_hidden_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_hidden_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_hidden_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_hidden_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_hidden_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_hidden_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_hidden_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_hidden_{n}_label_text', 'value' => $element_params['label_text'])); ?>
input('input_hidden_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'medium_input', 'smalldesc' => 'Some text to identify your field in the wizard.')); ?> input('input_hidden_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_hidden_{n}_input_value_config', array('type' => 'text', 'label' => 'Field default value', 'class' => 'small_input', 'value' => '')); ?> input('input_hidden_{n}_input_id_config', array('type' => 'text', 'label' => 'Field id', 'class' => 'small_input', 'value' => '')); ?>
input_pane_end.php000066600000001035151374537360010266 0ustar00 0, ); } return array('element_params' => $element_params); } } ?>input_custom.php000066600000001574151374537360010037 0ustar00 'input_custom_{n}', 'label_id' => 'input_custom_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'input_name' => 'input_custom_{n}', 'input_id' => 'input_id_{n}', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'code' => '', 'clean' => '', ); } return array('element_params' => $element_params); } } ?>input_submit.ctp000066600000013175151374537360010027 0ustar00
Submit Button
input('chronofield[{n}][input_submit_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_submit_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_submit_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_submit_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_submit_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_submit_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_submit_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_submit_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_submit_{n}_button_type]', array('type' => 'hidden', 'id' => 'input_submit_{n}_button_type', 'value' => $element_params['button_type'])); ?> input('chronofield[{n}][input_submit_{n}_button_align]', array('type' => 'hidden', 'id' => 'input_submit_{n}_button_align', 'value' => $element_params['button_align'])); ?> input('chronofield[{n}][input_submit_{n}_back_button]', array('type' => 'hidden', 'id' => 'input_submit_{n}_back_button', 'value' => $element_params['back_button'])); ?> input('chronofield[{n}][input_submit_{n}_reset_button]', array('type' => 'hidden', 'id' => 'input_submit_{n}_reset_button', 'value' => $element_params['reset_button'])); ?> input('chronofield[{n}][input_submit_{n}_back_button_value]', array('type' => 'hidden', 'id' => 'input_submit_{n}_back_button_value', 'value' => $element_params['back_button_value'])); ?> input('chronofield[{n}][input_submit_{n}_reset_button_value]', array('type' => 'hidden', 'id' => 'input_submit_{n}_reset_button_value', 'value' => $element_params['reset_button_value'])); ?> input('chronofield[{n}][input_submit_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_submit_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_submit_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_submit_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other'), 'input_submit_element_config_{n}'); ?> tabStart('general'); ?> input('input_submit_{n}_input_name_config', array('type' => 'text', 'label' => 'Name', 'class' => 'small_input', 'value' => '')); ?> input('input_submit_{n}_input_id_config', array('type' => 'text', 'label' => 'ID', 'class' => 'small_input', 'value' => '')); ?> input('input_submit_{n}_input_value_config', array('type' => 'text', 'label' => 'Text', 'class' => 'small_input', 'value' => '')); ?> input('input_submit_{n}_input_class_config', array('type' => 'text', 'label' => 'Class', 'class' => 'small_input', 'value' => '')); ?> input('input_submit_{n}_button_type_config', array('type' => 'select', 'label' => 'Button Type', 'options' => array('submit' => 'Submit', 'button' => 'Regular Button'), 'smalldesc' => 'A regular button will NOT submit the form, but may be useful in AJAX forms.')); ?> input('input_submit_{n}_back_button_config', array('type' => 'checkbox', 'label' => 'Add Back Button', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?> input('input_submit_{n}_back_button_value_config', array('type' => 'text', 'label' => 'Back Button Text', 'class' => 'small_input', 'value' => '')); ?> input('input_submit_{n}_reset_button_config', array('type' => 'checkbox', 'label' => 'Add Reset Button', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?> input('input_submit_{n}_reset_button_value_config', array('type' => 'text', 'label' => 'Reset Button Text', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_submit_{n}_button_align_config', array('type' => 'select', 'label' => 'Button Align', 'options' => array('left' => 'Left', 'center' => 'Center', 'right' => 'Right'), 'smalldesc' => 'The alignment of this button element.')); ?> input('input_submit_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_submit_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?>
input_checkbox_group.php000066600000006500151374537360011521 0ustar00 'input_checkbox_group_{n}', 'label_id' => 'input_checkbox_group_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'enable_dynamic_data' => 0, 'data_path' => '', 'value_key' => '', 'text_key' => '', 'radios_over' => '0', 'input_name' => 'input_checkbox_group_{n}', 'input_id' => '', 'ghost' => '1', 'ghost_value' => '', 'input_title' => '', 'checked' => '', 'validations' => '', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'options' => "choice 1=Choice 1\nchoice 2=Choice 2\nchoice 3=Choice 3"); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['selected'] = $formdata_element[$field_header.'_checked']; $temp_options = explode("\n", $formdata_element[$field_header.'_options']); foreach($temp_options as $temp_option){ $temp_option_details = explode('=', $temp_option); $formcontent_item_array['options'][strval($temp_option_details[0])] = trim($temp_option_details[1]); } $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['ghost'] = $formdata_element[$field_header.'_ghost']; $formcontent_item_array['ghost_value'] = $formdata_element[$field_header.'_ghost_value']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['radios_over'] = $formdata_element[$field_header.'_radios_over']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['enable_dynamic_data'] = $formdata_element[$field_header.'_enable_dynamic_data']; $formcontent_item_array['data_path'] = $formdata_element[$field_header.'_data_path']; $formcontent_item_array['value_key'] = $formdata_element[$field_header.'_value_key']; $formcontent_item_array['text_key'] = $formdata_element[$field_header.'_text_key']; $formcontent_item_array['multiple'] = 'checkbox'; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_radio.php000066600000006574151374537360007630 0ustar00 'input_radio_{n}', 'label_id' => 'input_radio_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'radios_over' => '0', 'input_name' => 'input_radio_{n}', 'input_id' => '', 'ghost' => '1', 'ghost_value' => '', 'input_title' => '', 'enable_dynamic_data' => 0, 'data_path' => '', 'value_key' => '', 'text_key' => '', 'input_value' => '', 'options' => 'No=No'."\n".'Yes=Yes', 'legend' => '', 'validations' => '', 'tooltip' => '', 'container_id' => 0, 'instructions' => ''); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ if(!empty($formdata_element[$field_header.'_input_value'])){ $formcontent_item_array['value'] = $formdata_element[$field_header.'_input_value']; } $temp_options = explode("\n", $formdata_element[$field_header.'_options']); foreach($temp_options as $temp_option){ $temp_option_details = explode('=', $temp_option); $formcontent_item_array['options'][strval($temp_option_details[0])] = trim($temp_option_details[1]); } $formcontent_item_array['legend'] = $formdata_element[$field_header.'_legend']; $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['ghost'] = $formdata_element[$field_header.'_ghost']; $formcontent_item_array['ghost_value'] = $formdata_element[$field_header.'_ghost_value']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['enable_dynamic_data'] = $formdata_element[$field_header.'_enable_dynamic_data']; $formcontent_item_array['data_path'] = $formdata_element[$field_header.'_data_path']; $formcontent_item_array['value_key'] = $formdata_element[$field_header.'_value_key']; $formcontent_item_array['text_key'] = $formdata_element[$field_header.'_text_key']; $formcontent_item_array['radios_over'] = $formdata_element[$field_header.'_radios_over']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_textarea.php000066600000005650151374537360010341 0ustar00 'input_textarea_{n}', 'label_id' => 'input_textarea_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'wysiwyg_editor' => '0', 'editor_buttons' => '1', 'editor_width' => '400', 'editor_height' => '200', 'input_name' => 'input_textarea_{n}', 'input_id' => '', 'input_value' => '', 'input_class' => '', 'input_title' => '', 'validations' => '', 'instructions' => '', 'input_rows' => '12', 'tooltip' => '', 'container_id' => 0, 'input_cols' => '45'); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['default'] = $formdata_element[$field_header.'_input_value']; $formcontent_item_array['cols'] = $formdata_element[$field_header.'_input_cols']; $formcontent_item_array['rows'] = $formdata_element[$field_header.'_input_rows']; $formcontent_item_array['class'] = $formdata_element[$field_header.'_input_class']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['wysiwyg_editor'] = $formdata_element[$field_header.'_wysiwyg_editor']; $formcontent_item_array['editor_buttons'] = $formdata_element[$field_header.'_editor_buttons']; $formcontent_item_array['editor_width'] = $formdata_element[$field_header.'_editor_width']; $formcontent_item_array['editor_height'] = $formdata_element[$field_header.'_editor_height']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_file.php000066600000004417151374537360007443 0ustar00 'input_file_{n}', 'label_id' => 'input_file_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'input_name' => 'input_file_{n}', 'input_id' => '', 'ghost' => '1', 'ghost_value' => '', 'input_class' => '', 'input_title' => '', 'validations' => '', 'tooltip' => '', 'container_id' => 0, 'instructions' => ''); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['class'] = $formdata_element[$field_header.'_input_class']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['ghost'] = $formdata_element[$field_header.'_ghost']; $formcontent_item_array['ghost_value'] = $formdata_element[$field_header.'_ghost_value']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_page_break.ctp000066600000003403151374537360010575 0ustar00
Page Break
input('chronofield[{n}][input_page_break_{n}_page_label]', array('type' => 'hidden', 'id' => 'input_page_break_{n}_page_label', 'value' => $element_params['page_label'])); ?>
Header(array('settings' => 'Settings', 'help' => 'Help'), 'input_page_break_element_config_{n}'); ?> tabStart('settings'); ?> input('input_page_break_{n}_page_label_config', array('type' => 'text', 'label' => 'Page Label', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('help'); ?> This element will start a new form page, you should configure the page shown under the "Show HTML" action settings, each form page can be inside its own Event.

If you want to do the same inside a custom code then please use this formula: '); ?> tabEnd(); ?>
input_container.ctp000066600000010707151374537360010504 0ustar00
Container
Collapse input('chronofield[{n}][input_container_{n}_area_label]', array('type' => 'hidden', 'id' => 'input_container_{n}_area_label', 'value' => $element_params['area_label'])); ?> input('chronofield[{n}][input_container_{n}_collapsed]', array('type' => 'hidden', 'id' => 'input_container_{n}_collapsed', 'value' => $element_params['collapsed'])); ?> input('chronofield[{n}][input_container_{n}_container_type]', array('type' => 'hidden', 'id' => 'input_container_{n}_container_type', 'value' => $element_params['container_type'])); ?> input('chronofield[{n}][input_container_{n}_container_class]', array('type' => 'hidden', 'id' => 'input_container_{n}_container_class', 'value' => $element_params['container_class'])); ?>
Header(array('settings' => 'Settings', 'help' => 'Help'), 'input_container_element_config_{n}'); ?> tabStart('settings'); ?> input('input_container_{n}_area_label_config', array('type' => 'text', 'label' => 'Area Label', 'class' => 'small_input', 'value' => '')); ?> input('input_container_{n}_container_type_config', array('type' => 'select', 'label' => 'Container Type', 'options' => array('' => 'Virtual (none)', 'div' => 'Div', 'fieldset' => 'Field Set', 'tabs_area' => 'Tabs Area', 'tab' => 'Tab', 'sliders_area' => 'Sliders Area', 'slider' => 'Slider', 'custom' => 'Custom'), 'smalldesc' => 'Virtual = no output, Custom mode output can be inserted below.')); ?> input('input_container_{n}_container_class_config', array('type' => 'text', 'label' => 'Container Class', 'class' => 'small_input', 'value' => '')); ?> input('input_container_{n}_start_code_config', array('type' => 'textarea', 'label' => 'Start Code', 'rows' => 5, 'cols' => 50, 'style' => 'width:380px !important;', 'smalldesc' => 'The code to be inserted at the start of the container when in "custom" mode.')); ?> input('input_container_{n}_end_code_config', array('type' => 'textarea', 'label' => 'End Code', 'rows' => 5, 'cols' => 50, 'style' => 'width:380px !important;', 'smalldesc' => 'The code to be inserted at the end of the container when in "custom" mode.')); ?> input('input_container_{n}_collapsed_config', array('type' => 'hidden', 'value' => '')); ?> tabEnd(); ?> tabStart('help'); ?> Select the container type and drag other elements inside, the "Virtual" type will not have any output in the form code, use it if you want to save space or oragnize your wizard view.

If you need a "Tabs" box then you will have to have multiple containers configured to "Tab" inside a parent container configured to "Tabs Area", same applies to "Sliders". tabEnd(); ?>
input_password.php000066600000004655151374537360010372 0ustar00 'input_password_{n}', 'label_id' => 'input_password_{n}_label', 'label_text' => 'Enter password', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'input_name' => 'input_password_{n}', 'input_id' => '', 'input_value' => '', 'input_class' => '', 'input_title' => '', 'input_maxlength' => '150', 'validations' => '', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'input_size' => '30'); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['default'] = $formdata_element[$field_header.'_input_value']; $formcontent_item_array['maxlength'] = $formdata_element[$field_header.'_input_maxlength']; $formcontent_item_array['size'] = $formdata_element[$field_header.'_input_size']; $formcontent_item_array['class'] = $formdata_element[$field_header.'_input_class']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_checkbox.ctp000066600000017364151374537360010316 0ustar00
Checkbox
input('chronofield[{n}][input_checkbox_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_checkbox_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_checkbox_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_checkbox_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_checkbox_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_checkbox_{n}_checked]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_checked', 'value' => $element_params['checked'])); ?> input('chronofield[{n}][input_checkbox_{n}_ghost]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_ghost', 'value' => $element_params['ghost'])); ?> input('chronofield[{n}][input_checkbox_{n}_ghost_value]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_ghost_value', 'value' => $element_params['ghost_value'])); ?> input('chronofield[{n}][input_checkbox_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_checkbox_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_checkbox_{n}_label_position]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_label_position', 'value' => $element_params['label_position'])); ?> input('chronofield[{n}][input_checkbox_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_checkbox_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_checkbox_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'ghost' => 'Ghost'), 'input_checkbox_element_config_{n}'); ?> tabStart('general'); ?> input('input_checkbox_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_checkbox_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_checkbox_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_checkbox_{n}_checked_config', array('type' => 'checkbox', 'label' => 'Checked', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_{n}_label_position_config', array('type' => 'select', 'label' => 'Label Position', 'options' => array('left' => 'Left', 'right' => 'Right'), 'smalldesc' => 'Right is more appropriate for things like "accept terms and conditions".')); ?> input('input_checkbox_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_checkbox_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_checkbox_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_checkbox_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_checkbox_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_checkbox_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_checkbox_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?> tabStart('ghost'); ?> input('input_checkbox_{n}_ghost_config', array('type' => 'checkbox', 'label' => 'Enable Ghost', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'The ghost is a hidden field with the same name to assure that a key with this field name always exists in the POST array.')); ?> input('input_checkbox_{n}_ghost_value_config', array('type' => 'text', 'label' => 'Ghost Value', 'value' => '', 'class' => 'medium_input', 'smalldesc' => 'Value here will appear if no choice has been made.')); ?> tabEnd(); ?>
input_captcha.php000066600000002023151374537360010116 0ustar00 'input_captcha_{n}', 'label_id' => 'input_captcha_{n}_label', 'label_text' => 'Enter the code', 'hide_label' => '0', 'input_name' => 'chrono_verification', 'input_id' => '', 'input_title' => '', 'input_value' => '', 'input_maxlength' => '5', 'input_class' => 'chrono_captcha_input', 'label_over' => '0', 'validations' => '', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'input_size' => '5'); } return array('element_params' => $element_params); } } ?>input_select.php000066600000006767151374537360010015 0ustar00 'input_select_{n}', 'label_id' => 'input_select_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'input_name' => 'input_select_{n}', 'input_id' => '', 'input_class' => '', 'input_title' => '', 'enable_dynamic_data' => 0, 'data_path' => '', 'value_key' => '', 'text_key' => '', 'selected' => '', 'options' => 'No=No'."\n".'Yes=Yes', 'showempty' => '', 'multiple' => '0', 'size' => '1', 'validations' => '', 'tooltip' => '', 'container_id' => 0, 'instructions' => ''); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ if(strlen($formdata_element[$field_header.'_showempty'])){ $showempty = $formdata_element[$field_header.'_showempty']; }else{ $showempty = false; } $formcontent_item_array['empty'] = $showempty; if((bool)$formdata_element[$field_header.'_multiple']){ $formcontent_item_array['multiple'] = (bool)$formdata_element[$field_header.'_multiple']; } $formcontent_item_array['size'] = $formdata_element[$field_header.'_size']; $formcontent_item_array['selected'] = $formdata_element[$field_header.'_selected']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['enable_dynamic_data'] = $formdata_element[$field_header.'_enable_dynamic_data']; $formcontent_item_array['data_path'] = $formdata_element[$field_header.'_data_path']; $formcontent_item_array['value_key'] = $formdata_element[$field_header.'_value_key']; $formcontent_item_array['text_key'] = $formdata_element[$field_header.'_text_key']; $temp_options = explode("\n", $formdata_element[$field_header.'_options']); foreach($temp_options as $temp_option){ $temp_option_details = explode('=', $temp_option); $formcontent_item_array['options'][strval($temp_option_details[0])] = trim($temp_option_details[1]); } $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['class'] = $formdata_element[$field_header.'_input_class']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_datetime.php000066600000002170151374537360010312 0ustar00 'input_datetime_{n}', 'label_id' => 'input_datetime_{n}_label', 'label_text' => 'Select date', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'input_name' => 'input_datetime_{n}', 'input_id' => '', 'input_value' => '', 'input_class' => '', 'input_title' => '', 'input_maxlength' => '150', 'validations' => '', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'addtime' => 0, 'timeonly' => 0, 'input_size' => '16'); } return array('element_params' => $element_params); } } ?>input_header.php000066600000001170151374537360007745 0ustar00 '', 'clean' => 0, 'multiline_start' => '0', 'multiline_add' => '0', 'container_id' => 0, ); } return array('element_params' => $element_params); } } ?>input_text.php000066600000004631151374537360007506 0ustar00 'input_text_{n}', 'label_id' => 'input_text_{n}_label', 'label_text' => 'Label Text', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'input_name' => 'input_text_{n}', 'input_id' => '', 'input_value' => '', 'input_maxlength' => '150', 'input_class' => '', 'input_title' => '', 'validations' => '', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'input_size' => '30'); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['default'] = $formdata_element[$field_header.'_input_value']; $formcontent_item_array['maxlength'] = $formdata_element[$field_header.'_input_maxlength']; $formcontent_item_array['size'] = $formdata_element[$field_header.'_input_size']; $formcontent_item_array['class'] = $formdata_element[$field_header.'_input_class']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_security_q.php000066600000002061151374537360010704 0ustar00 'input_security_q_{n}', 'label_id' => 'input_security_q_{n}_label', 'label_text' => '{chrono_security_question}', 'hide_label' => '0', 'input_name' => 'chrono_security_answer', 'input_id' => '', 'input_title' => '', 'input_value' => '', 'input_maxlength' => '150', 'input_class' => '', 'label_over' => '0', 'validations' => '', 'instructions' => '', 'tooltip' => '', 'container_id' => 0, 'input_size' => '30'); } return array('element_params' => $element_params); } } ?>input_datetime.ctp000066600000020570151374537360010315 0ustar00
Datetime Picker
input('chronofield[{n}][input_datetime_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_datetime_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_datetime_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_datetime_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_datetime_{n}_input_maxlength]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_maxlength', 'value' => $element_params['input_maxlength'])); ?> input('chronofield[{n}][input_datetime_{n}_input_size]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_size', 'value' => $element_params['input_size'])); ?> input('chronofield[{n}][input_datetime_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_datetime_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_datetime_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_datetime_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_datetime_{n}_timeonly]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_timeonly', 'value' => $element_params['timeonly'])); ?> input('chronofield[{n}][input_datetime_{n}_addtime]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_addtime', 'value' => $element_params['addtime'])); ?> input('chronofield[{n}][input_datetime_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_datetime_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_datetime_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation'), 'input_datetime_element_config_{n}'); ?> tabStart('general'); ?> input('input_datetime_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_datetime_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_datetime_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_datetime_{n}_input_maxlength_config', array('type' => 'text', 'label' => 'Field Max Length', 'class' => 'small_input', 'value' => '')); ?> input('input_datetime_{n}_input_size_config', array('type' => 'text', 'label' => 'Field Size', 'class' => 'small_input', 'value' => '')); ?> input('input_datetime_{n}_input_title_config', array('type' => 'text', 'label' => 'Field Title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_datetime_{n}_addtime_config', array('type' => 'checkbox', 'label' => 'Enable Time picker', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?> input('input_datetime_{n}_timeonly_config', array('type' => 'checkbox', 'label' => 'Time picker ONLY', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?> input('input_datetime_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> input('input_datetime_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_datetime_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_datetime_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_datetime_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_datetime_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_datetime_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_datetime_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> You should have the 2 checkboxes below checked in order for the "Default" date/time picker validation to work correctly, but if you are using the "Mootools Picker" then only "Required" should be checked.
input('input_datetime_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> input('input_datetime_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Point to Clone', 'class' => 'small_input', 'value' => 'target:%field_name%_clone_id', 'rule' => "split", 'splitter' => ",", "smalldesc" => 'You must enable this for the "Default" time picker ONLY!')); ?> tabEnd(); ?>
input_header.ctp000066600000005227151374537360007753 0ustar00
Formatted Text

input('chronofield[{n}][input_header_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_header_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_header_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_header_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General'), 'input_header_element_config_{n}'); ?> tabStart('general'); ?> input('input_header_{n}_clean_config', array('type' => 'checkbox', 'label' => 'Pure code', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'Should the code be outputed without being included inside any stuff ?')); ?> Add/Remove editor input('input_header_{n}_code_config', array('type' => 'textarea', 'label' => 'Code', 'class' => 'text_editor', 'label_over' => true, 'rows' => 20, 'cols' => 70, 'style' => 'width:450px !important;')); ?> input('input_header_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_header_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?>
input_text.ctp000066600000021300151374537360007475 0ustar00
Text Box
input('chronofield[{n}][input_text_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_text_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_text_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_text_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_text_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_text_{n}_input_maxlength]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_maxlength', 'value' => $element_params['input_maxlength'])); ?> input('chronofield[{n}][input_text_{n}_input_size]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_size', 'value' => $element_params['input_size'])); ?> input('chronofield[{n}][input_text_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_text_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_text_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_text_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_text_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_text_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_text_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_text_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_text_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_text_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_text_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation'), 'input_text_element_config_{n}'); ?> tabStart('general'); ?> input('input_text_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_text_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_text_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_text_{n}_input_maxlength_config', array('type' => 'text', 'label' => 'Field Max Length', 'class' => 'small_input', 'value' => '')); ?> input('input_text_{n}_input_size_config', array('type' => 'text', 'label' => 'Field Size', 'class' => 'small_input', 'value' => '')); ?> input('input_text_{n}_input_title_config', array('type' => 'text', 'label' => 'Field Title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_text_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> input('input_text_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_text_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_text_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_text_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_text_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_text_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_text_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Alpha', 'class' => 'small_input', 'value' => 'alpha', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'AlphaNum', 'class' => 'small_input', 'value' => 'alphanum', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Digit', 'class' => 'small_input', 'value' => 'digit', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'No Digit', 'class' => 'small_input', 'value' => 'nodigit', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Number', 'class' => 'small_input', 'value' => 'number', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Email', 'class' => 'small_input', 'value' => 'email', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Phone', 'class' => 'small_input', 'value' => 'phone', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'International Phone', 'class' => 'small_input', 'value' => 'phone_inter', 'rule' => "split", 'splitter' => ",")); ?> input('input_text_{n}_validations_config', array('type' => 'checkbox', 'label' => 'URL', 'class' => 'small_input', 'value' => 'url', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?>
input_security_q.ctp000066600000014420151374537360010705 0ustar00
Security Question Input
input('chronofield[{n}][input_security_q_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_security_q_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_security_q_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_security_q_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_security_q_{n}_input_maxlength]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_maxlength', 'value' => $element_params['input_maxlength'])); ?> input('chronofield[{n}][input_security_q_{n}_input_size]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_size', 'value' => $element_params['input_size'])); ?> input('chronofield[{n}][input_security_q_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_security_q_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_security_q_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_security_q_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_security_q_{n}_hide_label', 'value' => $element_params['hide_label'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation'), 'input_security_q_element_config_{n}'); ?> tabStart('general'); ?> input('input_security_q_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_input_maxlength_config', array('type' => 'text', 'label' => 'Field Max Length', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_input_size_config', array('type' => 'text', 'label' => 'Field Size', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '')); ?> input('input_security_q_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_security_q_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_security_q_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_security_q_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_security_q_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_security_q_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?>
input_page_break.php000066600000001106151374537360010574 0ustar00 'New Page', 'container_id' => 0, ); } return array('element_params' => $element_params); } } ?>input_file.ctp000066600000015177151374537360007447 0ustar00
File Upload
input('chronofield[{n}][input_file_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_file_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_file_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_file_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_file_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_file_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_file_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_file_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_file_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_file_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_file_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_file_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_file_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_file_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_file_{n}_ghost]', array('type' => 'hidden', 'id' => 'input_file_{n}_ghost', 'value' => $element_params['ghost'])); ?> input('chronofield[{n}][input_file_{n}_ghost_value]', array('type' => 'hidden', 'id' => 'input_file_{n}_ghost_value', 'value' => $element_params['ghost_value'])); ?> input('chronofield[{n}][input_file_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_file_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_file_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_file_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'ghost' => 'Ghost'), 'input_file_element_config_{n}'); ?> tabStart('general'); ?> input('input_file_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_file_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_file_{n}_input_title_config', array('type' => 'text', 'label' => 'Field Title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_file_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> input('input_file_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_file_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_file_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_file_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_file_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_file_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_file_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_file_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?> tabStart('ghost'); ?> input('input_file_{n}_ghost_config', array('type' => 'checkbox', 'label' => 'Enable Ghost', 'class' => 'small_input', 'value' => '1', 'rule' => "bool", 'smalldesc' => 'The ghost is a hidden field with the same name to assure that a key with this field name always exists in the POST array.')); ?> input('input_file_{n}_ghost_value_config', array('type' => 'text', 'label' => 'Ghost Value', 'value' => '', 'class' => 'medium_input', 'smalldesc' => 'Value here will appear if no choice has been made.')); ?> tabEnd(); ?>
input_checkbox.php000066600000005036151374537360010310 0ustar00 'input_checkbox_{n}', 'label_id' => 'input_checkbox_{n}_label', 'label_text' => 'Label Text', 'label_position' => 'left', 'hide_label' => '0', 'label_over' => '0', 'multiline_start' => '0', 'multiline_add' => '0', 'input_name' => 'input_checkbox_{n}', 'input_id' => '', 'ghost' => '1', 'ghost_value' => '', 'input_title' => '', 'input_value' => '1', 'checked' => '0', 'validations' => '', 'tooltip' => '', 'container_id' => 0, 'instructions' => ''); } return array('element_params' => $element_params); } function save($formdata_element = array(), $field_header = '', $formcontent_item_array = array()){ $formcontent_item_array['checked'] = (bool)$formdata_element[$field_header.'_checked']; $formcontent_item_array['value'] = $formdata_element[$field_header.'_input_value']; $formcontent_item_array['id'] = $formdata_element[$field_header.'_input_id']; $formcontent_item_array['ghost'] = $formdata_element[$field_header.'_ghost']; $formcontent_item_array['ghost_value'] = $formdata_element[$field_header.'_ghost_value']; $formcontent_item_array['label_over'] = $formdata_element[$field_header.'_label_over']; $formcontent_item_array['hide_label'] = $formdata_element[$field_header.'_hide_label']; $formcontent_item_array['multiline_start'] = $formdata_element[$field_header.'_multiline_start']; $formcontent_item_array['multiline_add'] = $formdata_element[$field_header.'_multiline_add']; $formcontent_item_array['title'] = $formdata_element[$field_header.'_input_title']; $formcontent_item_array['label_position'] = $formdata_element[$field_header.'_label_position']; $formcontent_item_array['validations'] = $formdata_element[$field_header.'_validations']; $formcontent_item_array['smalldesc'] = $formdata_element[$field_header.'_instructions']; $formcontent_item_array['tooltip'] = $formdata_element[$field_header.'_tooltip']; $formcontent_item_array['type'] = $formdata_element['type']; return $formcontent_item_array; } } ?>input_captcha.ctp000066600000014607151374537360010130 0ustar00
Captcha Input
input('chronofield[{n}][input_captcha_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_captcha_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_captcha_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_captcha_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_captcha_{n}_input_maxlength]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_maxlength', 'value' => $element_params['input_maxlength'])); ?> input('chronofield[{n}][input_captcha_{n}_input_size]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_size', 'value' => $element_params['input_size'])); ?> input('chronofield[{n}][input_captcha_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_captcha_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_captcha_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_captcha_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_captcha_{n}_hide_label', 'value' => $element_params['hide_label'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation'), 'input_captcha_element_config_{n}'); ?> tabStart('general'); ?> input('input_captcha_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_captcha_{n}_input_name_config', array('type' => 'text', 'disabled' => 'true', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, underscores allowed.')); ?> input('input_captcha_{n}_input_title_config', array('type' => 'text', 'label' => 'Field Title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_captcha_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_captcha_{n}_input_maxlength_config', array('type' => 'text', 'label' => 'Field Max Length', 'class' => 'small_input', 'value' => '')); ?> input('input_captcha_{n}_input_size_config', array('type' => 'text', 'label' => 'Field Size', 'class' => 'small_input', 'value' => '')); ?> input('input_captcha_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> input('input_captcha_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_captcha_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_captcha_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_captcha_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_captcha_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_captcha_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?>
input_password.ctp000066600000016741151374537360010370 0ustar00
Password Box
input('chronofield[{n}][input_password_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_password_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_password_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_password_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_password_{n}_input_value]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_value', 'value' => $element_params['input_value'])); ?> input('chronofield[{n}][input_password_{n}_input_maxlength]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_maxlength', 'value' => $element_params['input_maxlength'])); ?> input('chronofield[{n}][input_password_{n}_input_size]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_size', 'value' => $element_params['input_size'])); ?> input('chronofield[{n}][input_password_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_password_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_password_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_password_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_password_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_password_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_password_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_password_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_password_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_password_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_password_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation'), 'input_password_element_config_{n}'); ?> tabStart('general'); ?> input('input_password_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_password_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_password_{n}_input_value_config', array('type' => 'text', 'label' => 'Field Default Value', 'class' => 'small_input', 'value' => '')); ?> input('input_password_{n}_input_maxlength_config', array('type' => 'text', 'label' => 'Field Max Length', 'class' => 'small_input', 'value' => '')); ?> input('input_password_{n}_input_size_config', array('type' => 'text', 'label' => 'Field Size', 'class' => 'small_input', 'value' => '')); ?> input('input_password_{n}_input_title_config', array('type' => 'text', 'label' => 'Field Title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_password_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> input('input_password_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_password_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_password_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_password_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_password_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_password_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_password_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_password_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> input('input_password_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Alpha', 'class' => 'small_input', 'value' => 'alpha', 'rule' => "split", 'splitter' => ",")); ?> input('input_password_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Digits', 'class' => 'small_input', 'value' => 'digits', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?>
input_container.php000066600000001342151374537360010500 0ustar00 'Container #{n}', 'container_id' => 0, 'collapsed' => 0, 'container_type' => '', 'start_code' => '', 'end_code' => '', 'container_class' => '', ); } return array('element_params' => $element_params); } } ?>input_select.ctp000066600000024766151374537360010013 0ustar00
Drop Down
0){ $temp_options = explode("\n", $element_params['options']); $element_params['options'] = array(); foreach($temp_options as $temp_option){ $temp_option_details = explode('=', $temp_option); $element_params['options'][strval($temp_option_details[0])] = trim($temp_option_details[1]); } }else{ $element_params['options'] = array(); } ?> $select_option_text){ if(!empty($options)){ $options .= "\n"; } $options .= $select_option_value.'='.$select_option_text; } ?> input('chronofield[{n}][input_select_{n}_input_id]', array('type' => 'hidden', 'id' => 'input_select_{n}_input_id', 'value' => $element_params['input_id'])); ?> input('chronofield[{n}][input_select_{n}_label_text]', array('type' => 'hidden', 'id' => 'input_select_{n}_label_text', 'value' => $element_params['label_text'])); ?> input('chronofield[{n}][input_select_{n}_input_name]', array('type' => 'hidden', 'id' => 'input_select_{n}_input_name', 'value' => $element_params['input_name'])); ?> input('chronofield[{n}][input_select_{n}_size]', array('type' => 'hidden', 'id' => 'input_select_{n}_size', 'value' => $element_params['size'])); ?> input('chronofield[{n}][input_select_{n}_input_class]', array('type' => 'hidden', 'id' => 'input_select_{n}_input_class', 'value' => $element_params['input_class'])); ?> input('chronofield[{n}][input_select_{n}_input_title]', array('type' => 'hidden', 'id' => 'input_select_{n}_input_title', 'value' => $element_params['input_title'])); ?> input('chronofield[{n}][input_select_{n}_label_over]', array('type' => 'hidden', 'id' => 'input_select_{n}_label_over', 'value' => $element_params['label_over'])); ?> input('chronofield[{n}][input_select_{n}_hide_label]', array('type' => 'hidden', 'id' => 'input_select_{n}_hide_label', 'value' => $element_params['hide_label'])); ?> input('chronofield[{n}][input_select_{n}_selected]', array('type' => 'hidden', 'id' => 'input_select_{n}_selected', 'value' => $element_params['selected'])); ?> input('chronofield[{n}][input_select_{n}_showempty]', array('type' => 'hidden', 'id' => 'input_select_{n}_showempty', 'value' => $element_params['showempty'])); ?> input('chronofield[{n}][input_select_{n}_multiple]', array('type' => 'hidden', 'id' => 'input_select_{n}_multiple', 'value' => $element_params['multiple'])); ?> input('chronofield[{n}][input_select_{n}_multiline_start]', array('type' => 'hidden', 'id' => 'input_select_{n}_multiline_start', 'value' => $element_params['multiline_start'])); ?> input('chronofield[{n}][input_select_{n}_multiline_add]', array('type' => 'hidden', 'id' => 'input_select_{n}_multiline_add', 'value' => $element_params['multiline_add'])); ?> input('chronofield[{n}][input_select_{n}_enable_dynamic_data]', array('type' => 'hidden', 'id' => 'input_select_{n}_enable_dynamic_data', 'value' => $element_params['enable_dynamic_data'])); ?> input('chronofield[{n}][input_select_{n}_data_path]', array('type' => 'hidden', 'id' => 'input_select_{n}_data_path', 'value' => $element_params['data_path'])); ?> input('chronofield[{n}][input_select_{n}_value_key]', array('type' => 'hidden', 'id' => 'input_select_{n}_value_key', 'value' => $element_params['value_key'])); ?> input('chronofield[{n}][input_select_{n}_text_key]', array('type' => 'hidden', 'id' => 'input_select_{n}_text_key', 'value' => $element_params['text_key'])); ?>
Header(array('general' => 'General', 'other' => 'Other', 'validation' => 'Validation', 'dynamic_data' => 'Dynamic Data'), 'input_select_element_config_{n}'); ?> tabStart('general'); ?> input('input_select_{n}_label_text_config', array('type' => 'text', 'label' => 'Label Text', 'class' => 'small_input', 'value' => '')); ?> input('input_select_{n}_input_name_config', array('type' => 'text', 'label' => 'Field Name', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'No spaces or any special characters, but underscores _ and square brackets [] are allowed.')); ?> input('input_select_{n}_input_title_config', array('type' => 'text', 'label' => 'Field title', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Change this to override the default JS validation error message.')); ?> input('input_select_{n}_multiple_config', array('type' => 'checkbox', 'label' => 'Multiple', 'class' => 'small_input', 'value' => '1', 'rule' => "bool")); ?> input('input_select_{n}_size_config', array('type' => 'text', 'label' => 'Size', 'class' => 'small_input', 'value' => '')); ?> input('input_select_{n}_selected_config', array('type' => 'text', 'label' => 'Selected', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'The selected value by default if any.')); ?> input('input_select_{n}_showempty_config', array('type' => 'text', 'label' => 'Show Empty', 'class' => 'small_input', 'value' => '', 'smalldesc' => 'Write the text for the empty value (Please select) or leave empty for no empty value.')); ?> input('input_select_{n}_options_config', array('type' => 'textarea', 'label' => 'Options', 'rows' => 5, 'cols' => 50, 'operation' => "multi_option", 'operation_fieldtype' => "select", 'smalldesc' => 'in value=text multi line format.')); ?> input('input_select_{n}_input_id_config', array('type' => 'text', 'label' => 'Field ID', 'class' => 'small_input', 'value' => '')); ?> input('input_select_{n}_input_class_config', array('type' => 'text', 'label' => 'Field Class', 'class' => 'small_input', 'value' => '')); ?> tabEnd(); ?> tabStart('other'); ?> input('input_select_{n}_label_over_config', array('type' => 'checkbox', 'label' => 'Label Over', 'value' => '1', 'rule' => "bool")); ?> input('input_select_{n}_hide_label_config', array('type' => 'checkbox', 'label' => 'Hide Label', 'value' => '1', 'rule' => "bool")); ?> input('input_select_{n}_instructions_config', array('type' => 'textarea', 'label' => 'Instructions for users', 'rows' => 5, 'cols' => 50)); ?> input('input_select_{n}_tooltip_config', array('type' => 'textarea', 'label' => 'Tooltip', 'rows' => 5, 'cols' => 50)); ?> input('input_select_{n}_multiline_start_config', array('type' => 'checkbox', 'label' => 'Start a Multi field row', 'value' => '1', 'rule' => "bool")); ?> input('input_select_{n}_multiline_add_config', array('type' => 'checkbox', 'label' => 'Add to a Multi field row', 'value' => '1', 'rule' => "bool")); ?> tabEnd(); ?> tabStart('validation'); ?> input('input_select_{n}_validations_config', array('type' => 'checkbox', 'label' => 'Required', 'class' => 'small_input', 'value' => 'required', 'rule' => "split", 'splitter' => ",")); ?> tabEnd(); ?> tabStart('dynamic_data'); ?> input('input_select_{n}_enable_dynamic_data_config', array('type' => 'select', 'label' => 'Enable', 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => '1', 'smalldesc' => 'Enable Dynamic options loading, the options should exist in the $form->data array.')); ?> input('input_select_{n}_data_path_config', array('type' => 'text', 'label' => 'Data Path', 'value' => '', 'smalldesc' => 'The data path in the $form->data array, can be a MODEL ID, or a path using dots: MODEL1.MODEL2')); ?> input('input_select_{n}_value_key_config', array('type' => 'text', 'label' => 'Value Key', 'smalldesc' => 'The key name under which each option value will be found, so for example, if you have a multi list of users data loaded, then you may enter here "id"')); ?> input('input_select_{n}_text_key_config', array('type' => 'text', 'label' => 'Text Key', 'smalldesc' => 'The key name under which each option text will be found, so for example, if you have a multi list of users data loaded, then you may enter here "username"')); ?> tabEnd(); ?>