require './lib/cl_xml_data.lib.php'; require './lib/cl_ftp_data.lib.php'; require './lib/cl_http_data.lib.php'; if (AA_connectToDB() == FALSE) { // invalid DB connection return; } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } // // Display enrolement list // $page = new GUI_Page('admin_base'); $page->startPage(); $page->printPageTitle($strResultUpload); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/administration/results.html', $strHelp, '_blank'); $menu->printMenu(); $login = false; if ($_POST['arg'] == "login") { $http = new HTTP_data(); $post = "clubnr=" . urlencode($_POST['clubnr']) . "&pass="******"error":
AA_heats_seedHeat($heat); } } } } } } } } } } } // // Display heats // $page = new GUI_Page('event_heats'); $page->startPage(); $page->printPageTitle($strHeatSeeding . ": " . $_COOKIE['meeting']); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/event/heats.html', $strHelp, '_blank'); $menu->printMenu(); ?> <script type="text/javascript"> <!-- var selected = 0; var oldClass = 0; var focus = ""; var obj = 0; var value1 = ""; var value2 = "";
$d++; } // end if not combiend } // end loop if ($comb > 0) { echo "</table></div></td>"; } echo "</tr></table></div>\n"; echo $combDiv; mysql_free_result($result); } // // display page // $page = new GUI_Page('meeting_entry_add', false, 'stylesheet_small-fonts.css'); $page->startPage(); $page->printPageTitle($strNewEntryFromBase); ?> <script language="javascript"> var allowSearch = <?php echo $allow_search_from_base; ?> ; var categories = new Array(); var clubs = new Array(); var clubsearch = ""; var combined = new Array();
*/ require './lib/cl_gui_menulist.lib.php'; require './lib/cl_gui_page.lib.php'; require './lib/common.lib.php'; require './lib/results.lib.php'; if (AA_connectToDB() == FALSE) { // invalid DB connection return; // abort } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } $page = new GUI_Page('speaker_rankinglists'); $page->startPage(); $page->printPageTitle($strRankingLists . ": " . $_COOKIE['meeting']); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/speaker/rankinglists.html', $strHelp, '_blank'); $menu->printMenu(); ?> <script type="text/javascript"> <!-- function checkDisc() { e = document.getElementById("combined"); e.checked=true; }
require './lib/results.lib.php'; if (AA_connectToDB() == FALSE) { // invalid DB connection return; // abort } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } $round = 0; if (!empty($_GET['round'])) { $round = $_GET['round']; } $page = new GUI_Page('speaker_entry'); $page->startPage(); $page->printPageTitle($strEntry . ": " . $_COOKIE['meeting']); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/speaker/entry.html', $strHelp, '_blank'); if (!empty($_POST['back'])) { $menu->addButton($_POST['back'], $strBack); } $menu->printMenu(); ?> <p /> <?php $item = 0; if (!empty($_GET['item'])) { $item = $_GET['item']; }
**/ require './lib/cl_gui_page.lib.php'; require './lib/common.lib.php'; if (AA_connectToDB() == FALSE) { return; // abort } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } // // display data // $page = new GUI_Page('meeting_online_convert'); $page->startPage(); $page->printPageTitle("Meeting Online Convert"); $mid = $_COOKIE['meeting_id']; $c = 33; $res = mysql_query("SELECT xControl FROM meeting WHERE xMeeting = {$mid}"); if (mysql_errno() > 0) { printf(mysql_error()); die; } else { $row = mysql_fetch_array($res); $control = $row[0]; } mysql_free_result($res); $res = mysql_query("SELECT xStaffel FROM staffel WHERE xMeeting = {$mid}"); if (mysql_errno() > 0) {
if ($rows == 0) { mysql_query("DELETE FROM kategorie WHERE xKategorie=" . $_GET['item']); } else { AA_printErrorMsg($strCategory . $strErrStillUsed); } mysql_query("UNLOCK TABLES"); } } // Check if any error returned from DB if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } // // Display current data // $page = new GUI_Page('admin_categories', TRUE); $page->startPage(); $page->printPageTitle($strCategories); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/administration/categories.html', $strHelp, '_blank'); $menu->printMenu(); // sort argument $img_cat = "img/sort_inact.gif"; $img_short = "img/sort_inact.gif"; $img_age = "img/sort_inact.gif"; $img_order = "img/sort_inact.gif"; $img_sex = "img/sort_inact.gif"; $img_activ = "img/sort_inact.gif"; if ($_GET['arg'] == "cat") { $argument = "Name"; $img_cat = "img/sort_act.gif";
} // ET Team valid } // ET Club valid } // ET Meeting valid } // ET Category valid // Check if any error returned from DB mysql_query("UNLOCK TABLES"); } } // // display data // $page = new GUI_Page('meeting_relay_add'); $page->startPage(); $page->printPageTitle("{$strNewEntry} {$strRelays}"); if ($_POST['arg'] == "add") { ?> <script> window.open("meeting_relaylist.php?item=" + <?php echo $xStaffel; ?> + "#" + <?php echo $xStaffel; ?> , "list"); </script>
$_SESSION['temp'] = array('action' => 'disc', 'res' => 'ok', 'queries' => $queries); header('Location: admin_service.php'); exit; } if (isset($_GET['a']) && $_GET['a'] == 'xControl') { $xMeeting = isset($_GET['m']) ? intval($_GET['m']) : 0; $xControl = isset($_GET['c']) ? intval($_GET['c']) : 0; $sql = "UPDATE meeting \r\n\t\t\t SET xControl = " . $xControl . " \r\n\t\t\t WHERE xMeeting = " . $xMeeting . ";"; $query = mysql_query($sql); header('Location: admin_service.php'); exit; } // // Display administration // $page = new GUI_Page('admin_service'); $page->startPage(); $page->printPageTitle($strServiceMenu); $menu = new GUI_Menulist(); $menu->printMenu(); ?> <p/> <?php if ($res_srv_lg == 'ok') { if (isset($_SESSION['temp']) && $_SESSION['temp']['action'] == 'disc' && $_SESSION['temp']['res'] == 'select') { $menu = new GUI_Menulist(); $menu->addButton('admin_service.php', $strBack); $menu->printMenu(); ?> <br/>
} if ($_POST['techDisc']) { $perf = AA_formatResultMeter($perf); } else { $perf = AA_formatResultTime($perf, true); } if ($perf == 0) { $perf = ''; } mysql_query("UNLOCK TABLES"); } } // // display data // $page = new GUI_Page('meeting_teamsm_add'); $page->startPage(); $page->printPageTitle("{$strNewEntry} {$strTeamsTeamSM}"); if ($_POST['arg'] == "add") { ?> <script> window.open("meeting_teamsmlist.php?item=" + <?php echo $xTeam; ?> + "#" + <?php echo $xTeam; ?> , "list"); </script>
if ($_POST['firstheat1'] > 0) { mysql_query("UPDATE start SET\r\n Erstserie = 'y'\r\n WHERE\r\n xStart = " . $_POST['firstheat1']); } if ($_POST['firstheat2'] > 0) { mysql_query("UPDATE start SET\r\n Erstserie = 'y'\r\n WHERE\r\n xStart = " . $_POST['firstheat2']); } } if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } mysql_query("UNLOCK TABLES"); } // // Display data // ------------ $page = new GUI_Page('meeting_entry', false, 'stylesheet_small-fonts.css'); $page->startPage(); $page->printPageTitle($strEntry); if ($_GET['arg'] == 'del') { ?> <script type="text/javascript"> window.open("meeting_entrylist.php", "list") </script> <?php } else { ?> <script type="text/javascript"> window.open("meeting_entrylist.php?arg=<?php echo $_POST['lsort']; ?> &item=<?php
if (AA_connectToDB() == FALSE) { // invalid DB connection return; } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } // // Display enrolement list // if (isset($_POST['ukc_meeting'])) { $ukc_meeting = $_POST['ukc_meeting']; } $page = new GUI_Page('admin_onlineRegUKC.php'); $page->startPage(); $page->printPageTitle($strImportUKC_Title); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/administration/base.html', $strHelp, '_blank'); $menu->printMenu(); // get xml file for registrations from athletes // get uploaded XML file and read its content $fd = fopen($_FILES['xmlfile']['tmp_name'], 'rb'); $content = fread($fd, filesize($_FILES['xmlfile']['tmp_name'])); if (!$fd) { AA_printErrorMsg($strErrFtpNoGet); } else { $xml = new XML_simple_data(); $arr_noCat = $xml->load_xml_simple($_FILES['xmlfile']['tmp_name'], 'regUKC', '', $ukc_meeting); if ($arr_noCat['cat'][0] != '') {
if (AA_connectToDB() == FALSE) { // invalid DB connection return; // abort } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } $arg = !empty($_GET['arg']) ? $_GET['arg'] : (!empty($_COOKIE['sort_entrylist']) ? $_COOKIE['sort_entrylist'] : 'nbr'); setcookie('sort_entrylist', $arg, time() + 2419200); // // Display data // ------------ $page = new GUI_Page('meeting_entrylist'); $page->startPage(); // sort argument $img_nbr = "img/sort_inact.gif"; $img_name = "img/sort_inact.gif"; $img_verein = "img/sort_inact.gif"; /*if(isset($_POST['arg'])){ $_GET['arg'] = $_POST['arg']; }*/ if ($arg == "nbr") { $argument = "a.Startnummer"; $img_nbr = "img/sort_act.gif"; } else { if ($arg == "name") { $argument = "at.Name, at.Vorname"; $img_name = "img/sort_act.gif";
if (AA_checkReference("wettkampf", "xDisziplin", $_GET['item']) == 0) { mysql_query("DELETE FROM disziplin WHERE xDisziplin=" . $_GET['item']); } else { AA_printErrorMsg($strDiscipline . $strErrStillUsed); } mysql_query("UNLOCK TABLES"); } } // Check if any error returned from DB if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } // // Display current data // $page = new GUI_Page('admin_disciplines', TRUE); $page->startPage(); $page->printPageTitle($strDisciplines); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/administration/disciplines.html', $strHelp, '_blank'); $menu->printMenu(); // sort argument $img_disc = "img/sort_inact.gif"; $img_short = "img/sort_inact.gif"; $img_time = "img/sort_inact.gif"; $img_rel = "img/sort_inact.gif"; $img_heat = "img/sort_inact.gif"; $img_order = "img/sort_inact.gif"; $img_mtime = "img/sort_inact.gif"; $img_activ = "img/sort_inact.gif"; if ($_GET['arg'] == "disc") {
// abort } $round = 0; if (!empty($_GET['round'])) { $round = $_GET['round']; } else { if (!empty($_POST['round'])) { $round = $_POST['round']; } } $presets = AA_results_getPresets($round); // read GET/POST variables // // print HTML page header // $page = new GUI_Page('speaker_results'); $page->startPage(); $page->printPageTitle($strResults . ": " . $_COOKIE['meeting']); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/speaker/results.html', $strHelp, '_blank'); $menu->addSearchfield('speaker_entry.php', '_self', 'post', 'speaker_results.php?round=' . $round); $menu->printMenu(); // // print round selection menu // ?> <p/> <table><tr> <td class='forms'> <?php
function GUI_ListPage($title = 'Defaulttitle') { $this->rowclass = array('even', 'odd'); parent::GUI_Page($title); }
$athlete = 0; if ($_POST['arg'] == 'change_athlete') { $enrolement = $_POST['athleteSearch']; $sql_athlet = "SELECT \r\n at.Vorname, \r\n at.Name, \r\n a.xAnmeldung \r\n FROM \r\n anmeldung AS a\r\n LEFT JOIN athlet AS at USING (xAthlet)\r\n WHERE \r\n xMeeting = " . $_COOKIE['meeting_id'] . "\r\n AND a.xAnmeldung = " . $enrolement; $res = mysql_query($sql_athlet); if (mysql_errno() > 0) { AA_printErrorMsg("Line " . __LINE__ . ": " . mysql_errno() . ": " . mysql_error()); } else { if (mysql_num_rows($res) > 0) { // data found $row = mysql_fetch_row($res); $athlete = $row[1] . " " . $row[0]; } } } $page = new GUI_Page('meeting_entries_receipt'); $page->startPage(); $page->printPageTitle($strReceipt); ?> <script type="text/javascript"> <!-- function setPrint() { document.printdialog.formaction.value = 'print' document.printdialog.target = '_blank'; } //--> </script> <table class='dialog'> <tr>
mysql_query("UNLOCK TABLES"); } } } } } } // Check if any error returned if (!empty($GLOBALS['AA_ERROR'])) { AA_printErrorMsg($GLOBALS['AA_ERROR']); } else { if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } } $page = new GUI_Page('meeting_definitions'); $page->startPage(); ?> <script type="text/javascript"> <!-- window.open("meeting_definition_eventlist.php?item=" + <?php echo $event; ?> + "&updateCat=" + <?php echo $category; ?> , "list");
*/ require './lib/cl_gui_menulist.lib.php'; require './lib/cl_gui_page.lib.php'; require './lib/common.lib.php'; if (AA_connectToDB() == FALSE) { // invalid DB connection return; // abort } if (empty($_COOKIE['meeting_id'])) { AA_printErrorMsg($GLOBALS['strNoMeetingSelected']); } // // show dialog // $page = new GUI_Page('meeting_entries_setgroups'); $page->startPage(); // sort argument $img_nbr = "img/sort_inact.gif"; $img_name = "img/sort_inact.gif"; $img_comb = "img/sort_inact.gif"; $img_pole = "img/sort_inact.gif"; $img_high = "img/sort_inact.gif"; $argument = ""; $direction = "asc"; if ($_GET['sort'] == "nbr") { $argument = "4"; $img_nbr = "img/sort_act.gif"; } else { if ($_GET['sort'] == "name") { $argument = "1";
if (isset($_GET['catTo'])) { $catTo = $_GET['catTo']; } $discFrom = 0; if (isset($_GET['discFrom'])) { $discFrom = $_GET['discFrom']; } $discTo = 0; if (isset($_GET['discTo'])) { $discTo = $_GET['discTo']; } $mDate = ""; if (isset($_GET['mDate'])) { $mDate = $_GET['mDate']; } $page = new GUI_Page('dlg_print_event_enrolement'); $page->startPage(); $page->printPageTitle($strPrint . ": " . $strEnrolement); /*$menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/meeting/print_entries.html', $strHelp, '_blank'); $menu->printMenu();*/ ?> <script type="text/javascript"> </script> <form action='print_event_enrolement.php' method='get' name='printdialog' target="_blank"> <input type="hidden" name="category" value="<?php echo $category; ?> ">
require './lib/cl_gui_menulist.lib.php'; require './lib/cl_gui_page.lib.php'; require './lib/common.lib.php'; require './lib/cl_xml_data.lib.php'; require './lib/cl_http_data.lib.php'; if (AA_connectToDB() == FALSE) { // invalid DB connection return; } /*if(AA_checkMeetingID() == FALSE){ // no meeting selected return; // abort }*/ // // Display enrolement list // $page = new GUI_Page('admin_base'); $page->startPage(); $page->printPageTitle($strBaseUpdate); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/administration/base.html', $strHelp, '_blank'); $menu->printMenu(); ?> <p/> <?php // handle reset request if ($_GET['arg'] == "reset") { ?> <p><?php echo $strResetDo; ?>
// wish to create a new svm contest (without creating a discipline first) $cNewSVM = false; if ($_GET['arg'] == "create_svm" || $_POST['svm'] == "create_svm") { $cNewSVM = true; $cCategory = $category; } // Check if any error returned from DB if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } /*************************** * * General meeting data * ***************************/ $page = new GUI_Page('meeting_definition_category'); $page->startPage(); ?> <script type="text/javascript"> <!-- // preselect formula for new disciplines function selectFormula() { var oDisc = document.newdisc.elements[0]; var oFormula = document.newdisc.elements[9]; if(document.newdisc.discipline.value == 'new') { window.open("admin_disciplines.php", "_self"); }
if (AA_connectToDB() == FALSE) { // invalid DB connection return; } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } $now = getdate(); $zero = ''; if ($now['minutes'] < 10) { $zero = '0'; } $timestamp = $now['mday'] . "." . $now['mon'] . "." . $now['year'] . ", " . $now['hours'] . "." . $zero . $now['minutes']; $page = new GUI_Page('event_monitor'); $page->startPage(); $page->printPageTitle($strEventMonitor . " " . $_COOKIE['meeting'] . " ({$timestamp} Uhr)"); // // check if export for timing is forced // if ($_GET['arg'] == "export_timing") { $timing = AA_timing_getTiming(); if ($timing == "alge") { // export round wise /*$res = mysql_query("SELECT r.xRunde FROM wettkampf as w , runde as r WHERE r.xWettkampf = w.xWettkampf AND w.xMeeting = ".$_COOKIE['meeting_id']."
$error = false; // // do login // if ($arg == "login") { $p = new Protect(); $res = $p->login($_COOKIE['meeting_id'], $_POST['password']); if ($res) { $redirect = isset($_POST['redirect']) && trim($_POST['redirect']) != '' ? $_POST['redirect'] : 'admin'; header("Location: " . $redirect . ".php"); exit; } else { $error = true; } } $page = new GUI_Page('login'); $page->startPage(); $page->printPageTitle($strLoginToMeeting . ": " . $_COOKIE['meeting']); ?> <br> <p><?php echo $strRestrictedAccess; ?> </p> <br> <?php if ($error) { echo "<p>{$strErrAccessDenied}</p>"; }
$row_t = mysql_fetch_assoc($query); if ($row_t['total'] > 0) { if (!file_exists('layout/' . $entry)) { @copy('tmp/' . $entry, 'layout/' . $entry); } @unlink('tmp/' . $entry); } } } } } $dir->close(); // // display the 6 positions for page layout // $page = new GUI_Page('meeting_page_layout'); $page->startPage(); $page->printPageTitle($strPageLayout); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/meeting/print_layout.html', $strHelp, '_blank'); $menu->printMenu(); ?> <p/> <table class='dialog'> <form name="layout" method="POST" action="meeting_page_layout.php" enctype="multipart/form-data"> <input type="hidden" name="arg" value="save"> <input type="hidden" name="item" value="<?php echo $row['xLayout']; ?> ">
} } } // Check if any error returned from DB if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } mysql_query("UNLOCK TABLES"); } } } } // // Display current data // $page = new GUI_Page('meeting'); $page->startPage(); $page->printPageTitle($cfgApplicationName . " (Version " . $cfgApplicationVersion . ")"); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/meeting/index.html', $strHelp, '_blank'); $menu->printMenu(); ?> <script type="text/javascript"> <!-- function selectMeeting(meetingID) { document.selection.item.value=meetingID; document.selection.submit(); } function check(item)
} // ET DB error mysql_query("UNLOCK TABLES"); } else { mysql_query("LOCK TABLE staffel WRITE"); mysql_query("UPDATE staffel SET\r\n Startnummer = 0\r\n WHERE xMeeting=" . $_COOKIE['meeting_id']); if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } mysql_query("UNLOCK TABLES"); } } // // show dialog // $page = new GUI_Page('meeting_relays_startnumbers'); $page->startPage(); $page->printPageTitle($strAssignStartnumbers); if ($_GET['arg'] == 'assign') { ?> <script> window.open("meeting_relaylist.php", "list") </script> <?php } ?> <script type="text/javascript"> function check_rounds(){ check = confirm("<?php
} else { // delete team events mysql_query("\r\n\t\t\tDELETE FROM team\r\n\t\t\tWHERE xTeam = " . $_GET['item']); if (mysql_errno() > 0) { AA_printErrorMsg(mysql_errno() . ": " . mysql_error()); } } // ET DB error (still in use) mysql_query("UNLOCK TABLES"); $_POST['item'] = $_GET['item']; // show empty form after delete } // // display data // $page = new GUI_Page('meeting_team'); $page->startPage(); $page->printPageTitle($strTeam); if ($_GET['arg'] == 'del') { ?> <script type="text/javascript"> window.open("meeting_teamlist.php", "list") </script> <?php } else { ?> <script type="text/javascript"> window.open("meeting_teamlist.php?item=" + <?php echo $_POST['item']; ?>
*/ require './lib/cl_gui_dropdown.lib.php'; require './lib/cl_gui_menulist.lib.php'; require './lib/cl_gui_page.lib.php'; require './lib/common.lib.php'; if (AA_connectToDB() == FALSE) { // invalid DB connection return; // abort } if (AA_checkMeetingID() == FALSE) { // no meeting selected return; // abort } $page = new GUI_Page('meeting_entries_print'); $page->startPage(); $page->printPageTitle($strPrint); ?> <script type="text/javascript"> <!-- function setPrint() { document.printdialog.formaction.value = 'print' document.printdialog.target = '_blank'; } function setView() { document.printdialog.formaction.value = 'view' document.printdialog.target = '';
} if ($_POST['arg'] == "set_password") { $p = new Protect(); if (!empty($_POST['password'])) { $p->secureMeeting($_COOKIE['meeting_id'], $_POST['password']); } } if ($_POST['arg'] == "del_password") { $p = new Protect(); $p->unsecureMeeting($_COOKIE['meeting_id']); } $ukc_meeting = AA_checkMeeting_UKC(); // // Display administration // $page = new GUI_Page('admin'); $page->startPage(); $page->printPageTitle($strAdministration); $menu = new GUI_Menulist(); $menu->addButton($cfgURLDocumentation . 'help/administration/index.html', $strHelp, '_blank'); $menu->printMenu(); ?> <p/> <script type="text/javascript"> function checkForm(){ var obj = document.meetingpw; if(obj.password.value==''){ alert('<?php echo $strProtectPasswordEmpty;