function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new SwimmerAddForm("Add Swimmer", null, 600); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { // Add the InfoTableCSS so the tables look right $this->add_head_css(new DefaultGUIDataListCSS()); $swimmers = new SwimmersDataList("Swimmers", '100%', "swimmerid"); $div = html_div(); $div->set_id("swimmersgdl"); $div->add($swimmers); $container->add($div); // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new FlipTurnEditHomePageForm("Home Edit", null, '100%'); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { //$container->add($form->get_action_message()) ; // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Add the InfoTableCSS so the tables look right $this->add_head_css(new InfoTableCSS()); // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new SDIFFileUploadForm("Upload SDIF File", $_SERVER['PHP_SELF'], 600); $form->setUploadFileLabel("SDIF Filename"); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { $sd3fileinfo = $form->get_file_info(); $container->add($fp, $form->get_file_info_table()); } else { // Add the Form Processor to the container. $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); $sdifqueue = new SDIFResultsQueue(); if (!$sdifqueue->ValidateQueue()) { $msgs = $sdifqueue->get_status_message(); foreach ($msgs as $msg) { $container->add($this->status_message($msg['msg'], $msg['severity'])); } return $container; } // Create the form $form = new SDIFQueueProcessForm("Process SDIF Queue", $_SERVER['PHP_SELF'], 600); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { //$container->add($form->get_action_message()) ; // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form if ($this->user_is_logged_in()) { $form = new FlipTurnAdminLogoutForm("Admin Flip Turn Logout", null, 350); } else { $form = new FlipTurnAdminLoginForm("Admin Flip Turn Login", null, 350); } // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some a welcome message. if ($fp->is_action_successful()) { // Redirect to Member page on successful login //die($_SERVER['PHP_SELF']) ; $url = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php'; header("Location: {$url}"); exit; $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new ResultsQueuePurgeForm("Purge Results Queue", $_SERVER['PHP_SELF'], 600); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { //$container->add($form->get_action_message()) ; // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // This allows passing arguments eithers as a GET or a POST $scriptargs = array_merge($_GET, $_POST); // The swimteamid is the argument which must be // dealt with differently for GET and POST operations if (array_key_exists("swimteamid", $scriptargs)) { $swimteamid = $scriptargs["swimteamid"]; } else { if (array_key_exists("_swimteamid", $scriptargs)) { $swimteamid = $scriptargs["_swimteamid"]; } else { if (array_key_exists(FT_DB_PREFIX . "radio", $scriptargs)) { $swimteamid = $scriptargs[FT_DB_PREFIX . "radio"][0]; } else { $swimteamid = null; } } } // Create the form //$form = new SwimTeamUpdateForm("Update Swim Team", $_SERVER['PHP_SELF'], 600) ; $form = new SwimTeamUpdateForm("Update Swim Team", null, 600); $form->setSwimTeamId($swimteamid); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Update the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { // Add the InfoTableCSS so the tables look right $this->add_head_css(new DefaultGUIDataListCSS()); $swimteams = new SwimTeamsDataList("Swim Teams", '100%', "swimteamid"); $div = html_div(); $div->set_id("swimteamsgdl"); $div->add($swimteams); $container->add($div); // Update the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }