} $msg .= get_text('TargetAssigned', 'Tournament', substr($d['target'], 1)) . '<br/>'; } //exit; } else { $msg .= get_text('NoTargetFound') . '<br/>'; } } } } } } else { $msg = get_text('Error'); } } $JS_SCRIPT = array('<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/adapter/ext/ext-base.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext-all-debug.js"></script>', phpVars2js(array('StrError' => get_text('Error'))), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Partecipants/Fun_TargetFromRank.js"></script>'); include 'Common/Templates/head.php'; ?> <form id="frm" method="post" action="<?php print $_SERVER['PHP_SELF']; ?> "> <table class="Tabella"> <tr><th class="Title"><?php print get_text('MenuLM_TargetFromRank'); ?> </th></tr> <tr class="Divider"><TD></TD></tr> <tr><th><?php
$combos['indcl'] = array('descr' => get_text('IndClEvent', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnIndClEvent_', 'd_e_EnIndClEvent_')); $combos['teamcl'] = array('descr' => get_text('TeamClEvent', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnTeamClEvent_', 'd_e_EnTeamClEvent_')); $combos['indfin'] = array('descr' => get_text('IndFinEvent', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnIndFEvent_', 'd_e_EnIndFEvent_')); $combos['teamfin'] = array('descr' => get_text('TeamFinEvent', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnTeamFEvent_', 'd_e_EnTeamFEvent_')); $combos['mixteamfin'] = array('descr' => get_text('MixedTeamFinEvent', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnTeamMixEvent_', 'd_e_EnTeamMixEvent_')); $combos['wc'] = array('descr' => get_text('WheelChair', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnWChair_', 'd_e_EnWChair_')); $combos['double'] = array('descr' => get_text('DoubleSpace', 'Tournament'), 'combo' => ComboFromRs(array(array('key' => '0', 'descr' => get_text('No')), array('key' => '1', 'descr' => get_text('Yes'))), 'key', 'descr', 1, null, null, 'd_e_EnDoubleSpace_', 'd_e_EnDoubleSpace_')); // per i reset js delle combo list($allDivs, $allAgeCls, $allCls) = getAllDivCl(); // print'<pre>'; // print_r($allDivs); // print_r($allAgeCls); // print_r($allCls); // print'</pre>'; // exit; $JS_SCRIPT = array(getTargetsScript(), $record !== null ? phpVars2js(array('record' => $record)) : '', phpVars2js(array('allDivs' => $allDivs, 'allCls' => $allCls, 'allAgeCls' => $allAgeCls)), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/Fun_JS.inc.js"></script>', '<script type="text/javascript" src="Fun_AJAX_PopEdit.js"></script>', '<script type="text/javascript"> function save(c) { if (document.getElementById(\'d_e_EnCode_\').value.length>0 && !CtrlCode_Error && !TargetNo_Error && !SubTeam_Error) { document.getElementById(\'d_e_EnAgeClass_\').disabled=false; document.getElementById(\'Command\').value=c; document.Frm.submit(); } } function hideFinder() { var finder=document.getElementById(\'finder\'); if (finder.style.display==\'none\') {
return isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']) || preg_match($regex_match, strtolower($_SERVER['HTTP_USER_AGENT'])); } CheckTourSession(true); // tiro fuori i parametri dei timer $param = GetParameter('SpkTimer'); $tmp = explode(';', $param); $timers = array(); $colors = array(); for ($i = 0; $i < count($tmp); ++$i) { list($t, $c) = explode('|', $tmp[$i]); if ($t != '#') { $timers[$i] = $t; } if ($c != '#') { $colors[$i] = $c; } } /*print '<pre>'; print_r($timers); print_r($colors); print '</pre>';exit;*/ $isMobile = isMobile() ? 1 : 0; //print $mobile;exit; $array = array('StrOk' => get_text('CmdOk'), 'StrEvent' => get_text('Event'), 'StrTarget' => get_text('Target'), 'StrSetPoints' => get_text('SetPoints', 'Tournament'), 'StrScore' => get_text('TotalShort', 'Tournament'), 'StrStatus' => get_text('Status', 'Tournament'), 'timers' => $timers, 'colors' => $colors, 'WebDir' => $CFG->ROOT_DIR, 'StrSchedule' => get_text('Schedule', 'Tournament'), 'StrStopRefresh' => get_text('StopRefresh', 'Tournament'), 'isMobile' => $isMobile); $JS_SCRIPT = array('<link href="' . $CFG->ROOT_DIR . 'Common/Styles/ext-2.2/css/ext-all.css" media="screen" rel="stylesheet" type="text/css">', '<link href="' . $CFG->ROOT_DIR . 'Final/Speaker/css/speaker.css" media="screen" rel="stylesheet" type="text/css">', phpVars2js($array), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/adapter/ext/ext-base.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext-all-debug.js"></script>', '<script type="text/javascript">Ext.BLANK_IMAGE_URL=\'' . $CFG->ROOT_DIR . 'Common/Styles/ext-2.2/images/default/s.gif\';</script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext.ux/ext.ux.js"></script> ', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext.util/ext.util.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Final/Speaker/js/speaker.ViewStore.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Final/Speaker/js/speaker.TaskCheck.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Final/Speaker/js/speaker.Filter.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Final/Speaker/js/speaker.View.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Final/Speaker/js/speaker.ViewBBar.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Final/Speaker/js/main.js"></script>'); //$PAGE_TITLE=get_text('PrintBackNo','BackNumbers'); include 'Common/Templates/head-min.php'; ?> <div id="panel"></div> <?php include 'Common/Templates/tail-min.php';
require_once dirname(dirname(dirname(__FILE__))) . '/config.php'; CheckTourSession(true); require_once 'Common/Fun_FormatText.inc.php'; require_once 'Common/Lib/ArrTargets.inc.php'; require_once 'Common/Fun_Various.inc.php'; /*$Select = "SELECT TtElimination " . "FROM Tournament INNER JOIN Tournament*Type ON ToType=TtId AND ToId=" . StrSafe_DB($_SESSION['TourId']) . " ";*/ $Select = "SELECT ToElimination AS TtElimination " . "FROM Tournament WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " "; $RsElim = safe_r_sql($Select); $Elim = 0; if (safe_num_rows($RsElim) == 1) { $Row = safe_fetch($RsElim); $Elim = $Row->TtElimination; } $JS_SCRIPT = array(phpVars2js(array('StrResetElimError' => get_text('ResetElimError', 'Tournament'))), '<script type="text/javascript" src="../../Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="Fun_AJAX_ListEvents.js"></script>', '<script type="text/javascript" src="../../Common/Fun_JS.inc.js"></script>', '<script type="text/javascript" src="Fun_JS.js"></script>'); $ONLOAD = ' onLoad="javascript:ChangeNew_EvElim();"'; include 'Common/Templates/head.php'; ?> <table class="Tabella" id="MyTable"> <tbody id="tbody"> <tr><th class="Title" colspan="<?php echo 10 + $Elim; ?> "><?php print get_text('IndEventList'); ?> </th></tr> <tr class="Divider"><td colspan="<?php echo 10 + $Elim; ?>
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; require_once 'Common/Fun_Various.inc.php'; CheckTourSession(true); $array = array('StrTourPartecipants' => get_text('TourPartecipants', 'Tournament'), 'StrSession' => get_text('Session'), 'StrTarget' => get_text('Target'), 'StrCode' => get_text('Code', 'Tournament'), 'StrFamilyName' => get_text('FamilyName', 'Tournament'), 'StrName' => get_text('Name', 'Tournament'), 'StrDOB' => get_text('DOB', 'Tournament'), 'StrGender' => get_text('Sex', 'Tournament'), 'StrCountry' => get_text('Country'), 'StrNationShort' => get_text('NationShort', 'Tournament'), 'StrDiv' => get_text('Div'), 'StrAgeCl' => get_text('AgeCl'), 'StrCl' => get_text('Cl'), 'StrSubCl' => get_text('SubCl', 'Tournament'), 'StrError' => get_text('Error'), 'StrWarning' => get_text('Warning', 'Tournament'), 'StrMsgAreYouSure' => get_text('MsgAreYouSure'), 'StrYes' => get_text('Yes'), 'StrNo' => get_text('No'), 'StrCmdAdd' => get_text('CmdAdd', 'Tournament'), 'StrStatus' => get_text('Status', 'Tournament'), 'StrOk' => get_text('CmdOk'), 'StrSearch' => get_text('Search', 'Tournament'), 'StrFilterRules' => get_text('FilterRules'), 'StrArcher' => get_text('Archer'), 'StrNoRowSelected' => get_text('NoRowSelected', 'Tournament'), 'StrBlockFill' => get_text('BlockFill', 'Tournament'), 'StrPhoto' => get_text('Photo', 'Tournament'), 'StrClose' => get_text('Close'), 'StrEvents' => get_text('Events', 'Tournament'), 'StrEventAccess' => get_text('EventAccess', 'Tournament'), 'StrError' => get_text('Error'), 'WebDir' => $CFG->ROOT_DIR, 'StrSubTeam' => get_text('PartialTeam'), 'StrHideGroup' => get_text('HideGroup')); foreach ($Arr_StrStatus as $key => $val) { $array['Arr_StrStatus'][$key] = $val; } $JS_SCRIPT = array('<link href="' . $CFG->ROOT_DIR . 'Common/Styles/ext-2.2/css/ext-all.css" media="screen" rel="stylesheet" type="text/css">', '<link href="' . $CFG->ROOT_DIR . 'Partecipants-exp/css/partecipants.css" media="screen" rel="stylesheet" type="text/css">', phpVars2js($array), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/adapter/ext/ext-base.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext-all-debug.js"></script>', '<script type="text/javascript">Ext.BLANK_IMAGE_URL=\'' . $CFG->ROOT_DIR . 'Common/Styles/ext-2.2/images/default/s.gif\';</script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/plugins/FilterRow.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext.ux/ext.ux.js"></script> ', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext.util/ext.util.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Partecipants-exp/js/partecipantsApp.Partecipants.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Partecipants-exp/js/partecipantsApp.Search.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Partecipants-exp/js/partecipantsApp.Photo.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Partecipants-exp/js/partecipantsApp.EventsAccess.js"></script>', '<script type="text/javascript">Ext.BLANK_IMAGE_URL=\'' . $CFG->ROOT_DIR . 'Common/Styles/ext-2.2/images/default/s.gif\';</script>', '<script type="text/javascript">', ' Ext.onReady', ' (', ' function()', ' {', ' // evito che il backspace torni indietro nella cronologia', ' var keyMap=new Ext.KeyMap', ' (', ' document,', ' {', ' key: Ext.EventObject.BACKSPACE,', ' fn: function(keyCode,e)', ' {', ' e.preventDefault();', ' return;', ' },', ' scope: document', ' } ', ' );', ' var p=new partecipantsApp.Partecipants(\'grid-partecipants\');', ' p.bootstrap();', ' },', ' window', ' );', '</script>'); //$PAGE_TITLE=get_text('PrintBackNo','BackNumbers'); include 'Common/Templates/head.php'; ?> <div id="grid-partecipants"> <?php /* * Qui verrà renderizzata la griglia dei partecipanti. * NON bisogna aggiungere nulla a questo div */ ?> </div> <?php include 'Common/Templates/tail.php';
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; require_once 'Common/Lib/CommonLib.php'; $PAGE_TITLE = get_text('TakePicture', 'Tournament'); $JS_SCRIPT = array(phpVars2js(array('ROOT_DIR' => $CFG->ROOT_DIR)), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Accreditation/Fun_AJAX_AccreditationPicture.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Accreditation/TakePicture.js"></script>'); $ONLOAD = ' onLoad="javascript:setupVideo();searchAthletes();"'; include 'Common/Templates/head' . (isset($_REQUEST["showMenu"]) ? '' : '-min') . '.php'; ?> <table class="Tabella Speaker"> <tr onClick="showOptions();"><th class=Title colspan="4"><?php echo get_text('TakePicture', 'Tournament'); ?> </th></tr> <tr class="Divider"><td colspan="2"></td></tr> <tbody id="options"> <tr> <th class="Title" width="50%"><?php echo get_text('Options', 'Tournament'); ?> </th> <th class="Title" width="50%"><?php echo get_text('FilterRules'); ?> </th> </tr> <tr> <td class="Center">
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; require_once 'Common/Lib/CommonLib.php'; if (defined('hideSpeaker')) { header('location: /index.php'); exit; } $PAGE_TITLE = get_text('MenuLM_Speaker'); $JS_SCRIPT = array(phpVars2js(array('UpdateTimeout' => empty($CFG->ONLINE) ? 2500 : 30000)), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Modules/Speaker/Fun_AJAX.js"></script>', '<link href="speaker.css" media="screen" rel="stylesheet" type="text/css">'); $ONLOAD = ' onload="GetSchedule()"'; $enableHHT = $_SESSION["MenuHHT"]; if ($enableHHT) { $Rs = safe_r_sql("SELECT HeTournament FROM HhtEvents WHERE HeTournament=" . StrSafe_DB($_SESSION['TourId'])); $enableHHT = safe_num_rows($Rs) != 0; } if (empty($CFG->IS)) { $JS_SCRIPT[] = '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>'; include 'Common/Templates/head' . (isset($_REQUEST["showMenu"]) ? '' : '-min') . '.php'; } else { include_once $CFG->DOCUMENT_PATH . "Common/Styles/head.php"; } ?> <table class="Tabella Speaker"> <tr onClick="showOptions();"><th class=Title colspan="4"><?php print get_text('MenuLM_Speaker'); ?> </th></tr> <tr class="Divider"><td colspan="4"></td></tr> <tbody id="options">
<?php @define('debug', false); // settare a true per l'output di debug require_once dirname(dirname(__FILE__)) . '/config.php'; require_once 'Common/Fun_FormatText.inc.php'; require_once 'Common/Fun_Various.inc.php'; require_once 'Common/Fun_Sessions.inc.php'; CheckTourSession(true); $JS_SCRIPT = array('<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Qualification/Fun_AJAX_index.js.php"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/Fun_JS.inc.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Qualification/Fun_JS.js"></script>', phpVars2js(array('CmdPostUpdate' => get_text('CmdPostUpdate'), 'PostUpdating' => get_text('PostUpdating'), 'PostUpdateEnd' => get_text('PostUpdateEnd'), 'RootDir' => $CFG->ROOT_DIR . 'Qualification/'))); $PAGE_TITLE = get_text('QualRound'); include 'Common/Templates/head.php'; /*$Select = "SELECT ToId,ToNumSession,TtNumDist,TtGolds,TtXNine " . "FROM Tournament INNER JOIN Tournament*Type ON ToType=TtId " . "WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " ";*/ $Select = "SELECT ToId,ToNumSession,ToNumDist AS TtNumDist,ToGolds AS TtGolds,ToXNine AS TtXNine " . "FROM Tournament " . "WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " "; $RsTour = safe_r_sql($Select); $RowTour = NULL; $ComboSes = ''; $TxtFrom = ''; $TxtTo = ''; $ComboDist = ''; $ChkG = ''; $ChkX = ''; if (safe_num_rows($RsTour) == 1) { $RowTour = safe_fetch($RsTour); $ComboSes = '<select name="x_Session" id="x_Session" onChange="javascript:SelectSession();">' . "\n"; $ComboSes .= '<option value="-1">---</option>' . "\n"; $ComboDist = '<select name="x_Dist" id="x_Dist">' . "\n"; $ComboDist .= '<option value="-1">---</option>' . "\n";
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null; require_once dirname(dirname(dirname(__FILE__))) . '/config.php'; if (!CheckTourSession() || is_null($id)) { PrintCheckError(); } require_once 'Common/Fun_Various.inc.php'; $query = "SELECT " . "EnIndClEvent,EnTeamClEvent,EnIndFEvent,EnTeamFEvent,EnTeamMixEvent " . "FROM " . "Entries " . "WHERE " . "EnId=" . StrSafe_DB($id) . " "; $rs = safe_r_sql($query); $myRow = null; if (safe_num_rows($rs) != 1) { $errMsg = get_text('Error'); } else { $myRow = safe_fetch($rs); } $JS_SCRIPT = array('<link href="' . $CFG->ROOT_DIR . 'Partecipants-exp/css/partecipants.css" media="screen" rel="stylesheet" type="text/css">', phpVars2js(array('StrPhoto' => get_text('Photo', 'Tournament'), 'StrClose' => get_text('Close'), 'StrEvents' => get_text('Events', 'Tournament'), 'StrEventAccess' => get_text('EventAccess', 'Tournament'), 'StrError' => get_text('Error'), 'StrOk' => get_text('CmdOk'), 'WebDir' => $CFG->ROOT_DIR)), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/adapter/ext/ext-base.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext-all-debug.js"></script>', '<script type="text/javascript">', ' Ext.onReady', ' (', ' function ()', ' {', ' Ext.get(\'error-msg\').update(\'\');', ' ', ' Ext.select(\'.ev\')', ' .on(\'change\',', ' function()', ' {', ' var o=', ' {', ' url: \'' . $CFG->ROOT_DIR . 'Partecipants-exp/actions/xmlUpdateEventAccess.php\',', ' method: \'POST\',', ' params:', ' {', ' p: this.id,', ' v: this.value', ' },', ' success: function(response)', ' {', ' var xml=response.responseXML;', ' ', ' var dq=Ext.DomQuery;', ' ', ' var error=dq.selectNode(\'error\',xml).firstChild.data;', ' ', ' if (error==1)', ' {', ' Ext.get(\'error-msg\').update(StrError);', ' }', ' else', ' {', ' Ext.get(\'error-msg\').update(StrOk);', ' }', ' }', ' }', ' Ext.Ajax.request(o);', ' }', ' );', ' },', ' window', ' );', '</script>'); include 'Common/Templates/head-min.php'; ?> <div id="events-access"> <form name="frm" id="frm" method="post" action="<?php print $_SERVER['PHP_SELF']; ?> " enctype="multipart/form-data"> <input type="hidden" name="id" value="<?php print $id; ?> " /> <table class="Tabella"> <tr> <th class="TitleLeft"><?php
if (safe_w_affected_rows() > 0) { $msg = get_text('TargetDeleted'); } else { $msg = get_text('NoTargetFound'); } } else { $msg = get_text('Error'); } } else { $msg = get_text('Error'); } } else { $msg = get_text('Error'); } } $JS_SCRIPT = array(phpVars2js(array('StrAreYouSure' => get_text('MsgAreYouSure'))), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Partecipants/Fun_DeleteTarget.js"></script>'); include 'Common/Templates/head.php'; ?> <form id="frm" method="post" action="<?php print $_SERVER['PHP_SELF']; ?> "> <table class="Tabella"> <tr><th class="Title"><?php print get_text('MenuLM_DeleteTarget'); ?> </th></tr> <tr class="Divider"><TD></TD></tr> <tr>
$Rs = safe_r_sql($Sql); if (safe_num_rows($Rs)) { $QualCode = 'TQ' . $MyRowEv->EvCode; $FinCode = 'TF' . $MyRowEv->EvCode; $BraCode = 'TB' . $MyRowEv->EvCode; $outputTeamAbs .= '<input type="checkbox" name="QualificationTeam[]" value="' . $QualCode . '" id="' . $QualCode . '"' . (empty($_POST['QualificationTeam']) || !in_array($QualCode, $_POST['QualificationTeam']) ? '' : 'checked="checked"') . '>' . $MyRowEv->EvEventName . '<br/>' . "\n"; // solo chi ha la fase > 0 va avanti if (!$MyRowEv->EvFinalFirstPhase or in_array($MyRowEv->EvCode, $_SESSION['MenuFinT'])) { continue; } $outputTeamFin .= '<input type="checkbox" name="FinalTeam[]" value="' . $FinCode . '" id="' . $FinCode . '"' . (empty($_POST['FinalTeam']) || !in_array($FinCode, $_POST['FinalTeam']) ? '' : 'checked="checked"') . '>' . $MyRowEv->EvEventName . '<br/>' . "\n"; $outputTeamBra .= '<input type="checkbox" name="BracketsTeam[]" value="' . $BraCode . '" id="' . $BraCode . '"' . (empty($_POST['BracketsTeam']) || !in_array($BraCode, $_POST['BracketsTeam']) ? '' : 'checked="checked"') . '>' . $MyRowEv->EvEventName . '<br/>' . "\n"; } } } $JS_SCRIPT = array(phpVars2js(array('StrInitProcess' => get_text('InitProcess', 'Tournament'), 'StrOk' => get_text('CmdOk'), 'StrError' => get_text('Error'), 'StrCreateFiles' => get_text('CreateFiles', 'Tournament'), 'StrMakingZip' => get_text('MakingZip', 'Tournament'), 'StrMakingManifest' => get_text('MakingManifest', 'Tournament'), 'StrNoCredential' => get_text('NoCredential', 'Tournament'), 'StrSendData' => get_text('SendData', 'Tournament'), 'StrErrorCode' => get_text('ErrorCode', 'Tournament'), 'StrDeleting' => get_text('Deleting', 'Tournament'), 'OnlineId' => isset($_SESSION['OnlineId']) ? $_SESSION['OnlineId'] : 0, 'RootDir' => $CFG->DOCUMENT_PATH, 'WebDir' => $CFG->ROOT_DIR, 'StrMsgAreYouSure' => get_text('MsgAreYouSure'))), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Tournament/Fun_JS.js"></script>'); $PAGE_TITLE = get_text('Send2Ianseo', 'Tournament'); include 'Common/Templates/head.php'; ?> <form method="POST"> <div align="center"> <div class="medium"> <table class="Tabella"> <tr> <th colspan="4"><?php print get_text('Send2Ianseo', 'Tournament'); ?> </th> </tr> <tr> <td class="Left"><input type="checkbox" name="btnDelOnline"><?php
if ($r && safe_num_rows($r) > 0) { while ($myRow = safe_fetch($r)) { $sessions[$v][] = $myRow; $schedules = array(); //print_r($schedules); $sessions[$v][count($sessions[$v]) - 1]->schedules = $schedules; } } } /*print '<pre>'; print_r($sessions); print '</pre>'; exit;*/ $PAGE_TITLE = get_text('ManSession', 'Tournament'); $array = array('StrMsgAreYouSure' => get_text('MsgAreYouSure')); $JS_SCRIPT = array(phpVars2js($array), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/adapter/ext/ext-base.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ext-2.2/ext-all-debug.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Tournament/Fun_ManSessions.js"></script>'); include 'Common/Templates/head.php'; ?> <div align="center"> <div class="medium"> <form id="frmSave" name="frmSave" method="post" action="<?php print $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="Command" value="SAVE"/> <input type="hidden" id="d_SesOrder" name="d_SesOrder" value="0"/> <input type="hidden" id="oldKey" name="oldKey" value=""/> <table class="Tabella"> <tr><th colspan="7" class="Title"><?php print get_text('ManSession', 'Tournament');
<?php require_once dirname(dirname(__FILE__)) . '/config.php'; CheckTourSession(true); require_once 'Common/Lib/CommonLib.php'; $Session = empty($_REQUEST['Session']) ? '0' : $_REQUEST['Session']; $SesType = empty($_REQUEST['SesType']) ? 'Q' : $_REQUEST['SesType']; $ElPhase = empty($_REQUEST['ElPhase']) ? '0' : $_REQUEST['ElPhase']; $SesRow = ''; $tgt = $Session . '%03s'; $PAGE_TITLE = get_text('API-TargetGrouping', 'Api'); $JS_SCRIPT = array(phpVars2js(array('ConfirmDeleteRow' => get_text('API-ConfirmDeleteRow', 'Api'))), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="./ApiGrouping.js"></script>'); require_once './lib.php'; include 'Common/Templates/head.php'; echo '<select name="Session" onchange="if(this.value) {window.location.href=this.value;}">'; // fetch the Qualification sessions echo '<option value="">==> ' . get_text('QualRound') . '</option>'; $q = safe_r_sql(getSesSQL('Q')); while ($r = safe_fetch($q)) { echo '<option value="?SesType=Q&Session=' . $r->SesOrder . '"' . ($SesType == 'Q' && $r->SesOrder == $Session ? ' selected="selected"' : '') . '>' . ($r->SesName ? $r->SesName : get_text('Session') . ' ' . $r->SesOrder) . '</option>'; if ($r->SesOrder == $Session and $SesType == 'Q') { $SesRow = $r; $SesRow->Range = Range($r->SesFirstTarget, $r->SesTar4Session + $r->SesFirstTarget - 1); } } // If Eliminations if ($_SESSION['MenuElimDo']) { $OldPhase = ''; $SQL = getSesSQL('E'); $q = safe_r_SQL($SQL); while ($r = safe_fetch($q)) {
* Barbatrucco per fare le righe alternate */ $eval4ref = ' if ($ref!=$style) { $ref=$style; {{:style}} } '; break; } //print $eval4ref;exit; $eval4ref = str_replace('{{:style}}', '$style=($style==\'warning\' ? \'\' : \'warning\');', $eval4ref); $MyHeader = '<tr>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordStatus&dir=' . $OrderCol['ordStatus'] . '">' . get_text('Status', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordTar&dir=' . $OrderCol['ordTar'] . '">' . get_text('Session') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordTar&dir=' . $OrderCol['ordTar'] . '">' . get_text('Target') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordCode&dir=' . $OrderCol['ordCode'] . '">' . get_text('Code', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordName&dir=' . $OrderCol['ordName'] . '">' . get_text('FamilyName', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordName&dir=' . $OrderCol['ordName'] . '">' . get_text('Name', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordEmail&dir=' . $OrderCol['ordEmail'] . '">' . get_text('Email', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordCtrl&dir=' . $OrderCol['ordCtrl'] . '">' . get_text('DOB', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordSex&dir=' . $OrderCol['ordSex'] . '">' . get_text('Sex', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordCountryCode&dir=' . $OrderCol['ordCountryCode'] . '">' . get_text('Country') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordCountry&dir=' . $OrderCol['ordCountry'] . '">' . get_text('NationShort', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordWc&dir=' . $OrderCol['ordWc'] . '">' . get_text('WheelChair', 'Tournament') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordDiv&dir=' . $OrderCol['ordDiv'] . '">' . get_text('Div') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordAgeCl&dir=' . $OrderCol['ordAgeCl'] . '">' . get_text('AgeCl') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordCl&dir=' . $OrderCol['ordCl'] . '">' . get_text('Cl') . '</a></td>' . '<td class="Title"><a class="LinkRevert" href="' . $_SERVER['PHP_SELF'] . '?AllTargets=' . $AllTargets . '&ord=ordSubCl&dir=' . $OrderCol['ordSubCl'] . '">' . get_text('SubCl', 'Tournament') . '</a></td>' . '<td class="Title">' . get_text('TargetType') . '</td>' . '<td class="Title"> </td>' . '</tr>' . "\n"; $Rows = GetRows(null, $OrderBy, $AllTargets); $JS_SCRIPT = array(phpVars2js(array('StrAreYouSure' => get_text('MsgAreYouSure'))), '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/Fun_JS.inc.js"></script>', '<script type="text/javascript" src="Fun_index_edit.js"></script>', '<script type="text/javascript"> function PopEdit(id,opts) { var other=(opts!==null ? \'&\'+opts : \'\'); OpenPopup(\'PopEdit.php?id=\'+id+other, \'PopEdit\', 910,700); } function chkAllTargets(ord,dir) { var url="index.php?ord="+ord+"&dir="+dir; var c=document.getElementById("AllTargets"); if (c.checked) { url+="&AllTargets=1";