$value) { if (isset($request[$key])) { if ($request[$key] == 'on') { $value = 1; } else { $value = $request[$key]; } } if ($key == 'id') { continue; } else if ($key == 'name') { $changes[] = $key.'=\''.$value.'\''; } else { $changes[] = $key.'='.$value; } } $sql = 'UPDATE tournament_types SET '.join(',', $changes).' WHERE id = '.$request['id']; // echo $sql; silent_query($sql); return db_affected_rows(); } function displayTournamentForm($request, $data) { $form_data = array(); foreach ($data as $key => $value) { $form_data[$key] = isset($request[$key]) ? $request[$key] : $value; } ?>
Speichern nicht erfolgreich.'; } } if ( !$persisted ) { displayTournamentForm($request, getTournamentType($request['id'])); } else { echo 'Editieren erfolgreich. Weiter'; } } function displayTournamentMenu($request) { switch ($request['action']) { case 'start': displayStartTournament($request['id']); break; case 'edit': displayEditTournament($request); break; default: ?>Turniere | ||||
---|---|---|---|---|
: | starten | starten | edit | edit |
Zum Hauptmenu |