exit; } catch (Exception $v_exception) { Cloudbank::PushError(Book::XtractMessage($v_exception)); } //print "submitted/after create/modifyEvent(): " . $p_variables->get('amount'); } else { $v_isEmpty = !$p_variables->get('date'); //print "not submitted/before PopulateEventForm():" . $p_variables->get('amount'); if ($v_isEmpty) { setDefaultValues($p_variables); } else { Book::Singleton()->PopulateEventForm($p_variables); } //print "not submitted/after PopulateEventForm():" . $p_variables->get('amount'); } return $v_isEdit; } function renderView(&$p_form, $p_variables, $p_isEdit) { global $title, $page_output, $notification; $title = $p_isEdit ? 'Edit Event' : 'Add Event'; $page_output->header(); $notification->notify(array('listeners' => 'status')); $p_form->renderActive(new Horde_Form_Renderer(), $p_variables, 'event.php', 'post'); $page_output->footer(); } /* main() */ $g_variables =& Horde_Variables::getDefaultVariables(); $g_form = prepareForm($g_variables); $g_isEdit = processActions($g_variables, $g_form); renderView($g_form, $g_variables, $g_isEdit);
restart_session(); prepareForm(); header("Location:report.php"); } else { db_saveFinalReport(); $confid = $REPDATA['id']; restart_session(); header("Location:thanks.php?conf={$confid}"); include "thanks.php"; exit; } } else { //preparePostedForm(); } } else { prepareForm(); } //print_r($REPDATA); ?> <html lang="en"> <head> <meta charset="utf-8"> <title>Atlanta Coyote Project - Report a Sighting</title> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="jquery/themes/ui-lightness/jquery-ui.css"> <script src="jquery/jquery-1.11.3.min.js"></script> <script src="jquery/ui/jquery-ui.min.js"></script> <!--<script> $(function() {