function processActions(&$p_variables, &$p_form) { /* + create new event (ID is empty) + just render empty form (set defaults) + form submitted (call server create, if OK redirect to events view) + if error, render the form w/ data entered + create new event from statement data (ID is empty) + render the form w/ data got in paramters (adjust is_income, amount) + form submitted (call server create, if OK redirect to events view) + if error, render the form w/ data entered + modify event (ID is filled) + render the form w/ data got in paramters (adjust is_income, amount, populate old_ variables) + form submitted (call server modify, if OK redirect to events view) + if error, render the form w/ data entered */ $v_event_id = $p_variables->get('event_id'); $v_isEdit = !empty($v_event_id); if ($p_form->validate($p_variables)) { // submitted -> process $v_account_id = $p_variables->get('account_id'); try { if ($v_isEdit) { Book::Singleton()->modifyEvent($p_variables); } else { //print "submitted/before createEvent(): " . $p_variables->get('amount'); Book::Singleton()->createEvent($p_variables); } header('Location: ' . Horde::url('events.php', true)->add(array('ledger_account_id' => $v_account_id, 'ledger_account_type' => CloudBankConsts::LedgerAccountType_Account), NULL, false)); 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; }
//...und die standard-sprache: setStandardSprache($unterkunft_id, $sprache, $link); setStandardSpracheBelegungsplan($unterkunft_id, $sprache, $link); //anonymen gast anlegen: //der bekommt die id = 1 insertGuestWithID(1, $unterkunft_id, " ", "Anonym", "Anonymous", "no street address", "no post code", "no city", "no land", "no e-mail", "no tel", "no fax", "anonymous guest", "en", $link); //die standard-framegroessen setzen: //zuerst mal einen eintrag in den einstellungen machen: $query = "REPLACE INTO \n\t\t\t Rezervi_Einstellungen_Neu\n\t\t\t (FK_Unterkunft_ID)\n\t\t\t VALUES\t\t\t\t \n\t\t\t ('{$unterkunft_id}')\n\t\t\t "; $res = mysqli_query($link, $query); setFramesizeRightBP($unterkunft_id, "", "*", $link); setFramesizeLeftBP($unterkunft_id, "280", "px", $link); setFramesizeLeftWI($unterkunft_id, "280", "px", $link); setFramesizeRightWI($unterkunft_id, "", "*", $link); //speichert der default Values in der properties tabelle: setDefaultValues($unterkunft_id, $link); if (!$fail) { $fehler = false; $unterkunft = true; $antwort = $antwort . "Anlegen der Unterkunft erfolgreich durchgeführt."; } else { $fehler = true; $unterkunft = false; $antwort .= getUebersetzung("Installationsfehler.", $sprache, $link) . "<br/>"; $antwort .= getUebersetzung("Überprüfen Sie die Zugangsdaten in conf/rdbmsConfig.php und die Version Ihrer MySQL Datenbank.", $sprache, $link) . "<br/>"; $antwort .= getUebersetzung("Ansonsten wenden sie sich bitte per E-Mail an utilo.eu - wir helfen ihnen gerne weiter!", $sprache, $link) . "<br/>"; } ?> </body> </html>
$serverInfo = array(); $serverRules = array(); $playerList = array(); // Create an array to hold all the map data imported from the data source // and an integer to quickly keep track of the number of maps inside $allMaps = array(); $numOfMaps = 0; // Create an array to use if we're searching for a certain string in map names $filteredMaps = array(); // We also need an array to hold the index values of maps from $allMaps we want // to display on the current page based on viewing mode and sort order $displayedMaps = array(); // Lastly, a global map container used by the printThisMap_...() functions $thisMap = new mapclass(); // Set up the current environment setDefaultValues(); getPreferences(); getParameters(); getRealtimeServerStatus(); // Load all map data from the data source if ($prefs["DATA_LOCATION"] === "mysql") { getMapDetails_mysql(); } else { getMapDetails_text(); } // Grab only the records we need for displaying the current page populateMapsForPage(); // Determine which template file we use based on the arguments passed // in the URL and insert our template file here-- it does the rest // of the work for us. switch ($params["mode"]) {