AAAAshow_form.php000066600000002760151377751170007307 0ustar00 'form_utilities', 'title' => 'Utilities'); //var $events = array('confirm' => 0, 'back' => 0); var $details = array('title' => 'Show Form', 'tooltip' => 'Displays a different form.'); function run($form, $actiondata){ $params = new JParameter($actiondata->params); //get the form name $formname = $params->get('form_name', ''); if(!empty($formname)){ $method = $params->get('action_taken', ''); //get the event to load $event = $params->get('form_event', 'load'); if(!trim($event)){ $event = 'load'; } //switch the showing method if($method == 'load'){ $MyForm = CFChronoForm::getInstance($formname); $MyForm->process($event); HTML_ChronoForms::processView($MyForm); }else{ $mainframe = JFactory::getApplication(); $form_url = "index.php?option=com_chronoforms&chronoform=".$formname."&event=".$event; $mainframe->redirect($form_url); } } } function load($clear){ if($clear){ $action_params = array( 'action_taken' => 'load', 'form_name' => '', 'form_event' => '' ); } return array('action_params' => $action_params); } } ?>show_form.ctp000066600000004562151377751170007310 0ustar00
Show Form
Header(array('settings' => 'Settings', 'help' => 'Help'), 'show_form_config_{n}'); ?> tabStart('settings'); ?> input('action_show_form_{n}_action_taken_config', array('type' => 'select', 'label' => 'Action', 'options' => array('load' => 'Load Form', 'redirect' => 'Redirect to Form'), 'smalldesc' => 'How the other form will be loaded ?
1- the form will just be loaded (shown) at the currect page.
2- the page will be redirected to the url of the other form.')); ?> input('action_show_form_{n}_form_name_config', array('type' => 'text', 'label' => "Form Name", 'class' => 'medium_input', 'smalldesc' => 'The name of the form to load.')); ?> input('action_show_form_{n}_form_event_config', array('type' => 'text', 'label' => "Form Event", 'class' => 'medium_input', 'smalldesc' => 'The loaded form event which will be executed.')); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>
index.html000066600000000035151377751170006561 0ustar00 .htaccess000066600000000177151377751170006371 0ustar00 Order allow,deny Deny from all