0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
administrator
/
components
/
com_chronoforms
/
form_actions
/
show_html
/
[
Home
]
File: show_html.ctp
<div class="dragable" id="cfaction_show_html">Show html</div> <!--start_element_code--> <div class="element_code" id="cfaction_show_html_element"> <label class="action_label" style="display: block; float:none!important;">Show html</label> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_data_republish]" id="action_show_html_{n}_data_republish" value="<?php echo $action_params['data_republish']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_display_errors]" id="action_show_html_{n}_display_errors" value="<?php echo $action_params['display_errors']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_curly_replacer]" id="action_show_html_{n}_curly_replacer" value="<?php echo $action_params['curly_replacer']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_load_token]" id="action_show_html_{n}_load_token" value="<?php echo $action_params['load_token']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_keep_alive]" id="action_show_html_{n}_keep_alive" value="<?php echo $action_params['keep_alive']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_submit_event]" id="action_show_html_{n}_submit_event" value="<?php echo $action_params['submit_event']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_page_number]" id="action_show_html_{n}_page_number" value="<?php echo $action_params['page_number']; ?>" /> <input type="hidden" name="chronoaction[{n}][action_show_html_{n}_form_container]" id="action_show_html_{n}_form_container" value="<?php echo $action_params['form_container']; ?>" /> <input type="hidden" id="chronoaction_id_{n}" name="chronoaction_id[{n}]" value="{n}" /> <input type="hidden" name="chronoaction[{n}][type]" value="show_html" /> </div> <!--end_element_code--> <script type="text/javascript"> //<![CDATA[ window.addEvent('domready', function() { refreshEventsList_showHTML('{n}', 1); }); var counter = 0; function refreshEventsList_showHTML(SID, newCall, container, prefix){ if(container == null || !container){ var container = $('droppable_area_actions'); } if(prefix == null || !prefix){ var prefix = ''; } if(counter == 0 || newCall == 1){ $('action_show_html_'+SID+'_submit_event_config').empty(); } new Element('option', {'value':'_self', 'text': 'Self'}).inject($('action_show_html_'+SID+'_submit_event_config')); container.getChildren('div.form_event').each(function(fevent){ var event_name_pcs = fevent.getFirst('input[name^=_form_actions_events_map]').get('name').split(']['); var name = event_name_pcs[event_name_pcs.length - 1].replace(/]/, ''); var nopt = new Element('option', {'value':name, 'text': name}).inject($('action_show_html_'+SID+'_submit_event_config')); counter++; }); } //]]> </script> <div class="element_config" id="cfaction_show_html_element_config"> <?php echo $PluginTabsHelper->Header(array('general' => 'General', 'multi_page' => 'Advanced (Multi Page)'), 'cfaction_show_html_element_config_{n}'); ?> <?php echo $PluginTabsHelper->tabStart('general'); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_data_republish_config', array('type' => 'select', 'label' => 'Republish form data', 'options' => array(0 => 'No', 1 => 'Yes (recommended)'), 'smalldesc' => 'Try to republish the form data in case the form has been reloaded because of some error.')); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_display_errors_config', array('type' => 'select', 'label' => 'Display Fields Errors', 'options' => array(0 => 'No', 1 => 'Yes (recommended)'), 'smalldesc' => 'Display server side errors below fields, for this to work you need to have this code in the place you want the error to appear at:<br /><div id="error-message-FIELD_NAME_HERE"></div><br /><br />*This is added automatically when using the wizard.')); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_load_token_config', array('type' => 'select', 'label' => 'Load Security Token', 'options' => array(0 => 'No', 1 => 'Yes (recommended)'), 'smalldesc' => 'Do you want to load the security token ? this is used to verify that form code has not been changed by the user before submission, you need to have the "Check Token" action to check it.')); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_keep_alive_config', array('type' => 'select', 'label' => 'Load Keep Alive', 'options' => array(0 => 'No', 1 => 'Yes'), 'smalldesc' => 'Load the keep alive element ? this will ensure that the user session does not expire while having the form opened.')); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_curly_replacer_config', array('type' => 'select', 'label' => 'Curly brackets replacer', 'options' => array(0 => 'No', 1 => 'Yes'), 'smalldesc' => 'Replace any fields names inside curly brackets, this will work only if you have some data in the $form->data array.')); ?> <?php echo $PluginTabsHelper->tabEnd(); ?> <?php echo $PluginTabsHelper->tabStart('multi_page'); ?> <input type="button" name="action_show_html_submit_event_refresh_button" id="action_show_html_submit_event_refresh_button" value="Refresh Events List" onClick="refreshEventsList_showHTML('{n}', 1)" /> <br /> <br /> <?php echo $HtmlHelper->input('action_show_html_{n}_submit_event_config', array('type' => 'select', 'label' => 'Submission Event', 'options' => array('_self' => 'Self', 'load' => 'load', 'submit' => 'submit'), 'smalldesc' => 'Choose the event which will be executed when the form is submitted.')); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_page_number_config', array('type' => 'text', 'label' => 'Page Number', 'smalldesc' => 'Enter the page number to show in case you have more than 1 page in your form or leave it as its (1).')); ?> <?php echo $HtmlHelper->input('action_show_html_{n}_form_container_config', array('type' => 'text', 'label' => 'Div container id', 'smalldesc' => 'Enter an id and it will be assigned to a div element wrapping the form element in the page.')); ?> <?php echo $PluginTabsHelper->tabEnd(); ?> </div>
©
2018.