break; case "restore_forms": restore_forms(); break; case "action_task": action_task(); break; case "admin_form": admin_form(); break; default: if (strpos($task, ":") !== false) { $details = explode(":", $task); JRequest::setVar('task', $details[0]); JRequest::setVar('event', $details[1]); admin_form(); break; } index(); break; } function print_r2($array = array()) { echo '<pre>'; print_r($array); echo '</pre>'; } function admin_form() { require_once JPATH_SITE . DS . 'components' . DS . 'com_chronoforms' . DS . 'libraries' . DS . 'chronoform.php'; require_once JPATH_SITE . DS . 'components' . DS . 'com_chronoforms' . DS . 'chronoforms.html.php';
public function s3_submenu_page() { ?> <div class="wrap"> <h2>Settings</h2> <form method="POST" action="options.php"> <?php settings_fields('s3_options'); ?> <?php $s3_options = get_option('s3_options'); $s3_options['ss-available-services'] = $this->s3_get_services(); ?> <?php admin_form($s3_options); ?> </div> <?php }