Ejemplo n.º 1
0
<?php

define('debug', false);
// settare a true per l'output di debug
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
if (!CheckTourSession() || !isset($_REQUEST['Event']) || !isset($_REQUEST['MatchNo'])) {
    printcrackerror();
}
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Fun_Phases.inc.php';
require_once 'Final/Fun_MatchTotal.inc.php';
//Gestione Volee & Frecce
$nEND = 5;
// Numero di Volee
$nARR = 3;
// Numero di frecce
// Nomi delle textbox dei punti a sinistra e a destra
$TxtPuntiSx = array("", "", "");
$TxtPuntiDx = array("", "", "");
$StrPuntiSx = "";
$StrPuntiDx = "";
// Vettore dei punti (bersaglio)
$MySym = ${GetTargetType($_REQUEST['Event'], 0)};
//print GetTargetType($_REQUEST['Event']);exit;
$MyTargetComplete = TargetIsComplete(GetTargetType($_REQUEST['Event']));
$MyTargetHitMiss = strstr(GetTargetType($_REQUEST['Event'], 0), 'TrgHM');
$MyTargetField = strstr(GetTargetType($_REQUEST['Event'], 0), 'TrgField');
$MyTargetSize = 0;
$MyTargetSize = $MyTargetComplete ? 100 : 200;
/*
Ejemplo n.º 2
0
<?php

//define('debug',false);	// settare a true per l'output di debug
require_once dirname(dirname(__FILE__)) . '/config.php';
CheckTourSession(true);
if (BlockExperimental) {
    printcrackerror(false, 'Blocked');
}
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Fun_Various.inc.php';
$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/ajax/ObjXMLHttpRequest.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Qualification/Fun_AJAX_WriteArrows.js"></script>', '<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/Fun_JS.inc.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');
$ONLOAD = isset($_REQUEST['chk_PostUpdate']) && $_REQUEST['chk_PostUpdate'] == 1 ? ' onLoad="ManagePostUpdateArrow(true)"' : '';
include 'Common/Templates/head.php';
/*$Select
		= "SELECT ToId,ToNumSession,TtGolds,TtXNine, TtNumEnds, TtNumDist, (TtMaxDistScore/TtGolds) AS MaxArrows "
		. "FROM Tournament INNER JOIN Tournament*Type ON ToType=TtId "
		. "WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " ";*/
$Select = "SELECT ToId,ToNumSession,ToGolds AS TtGolds,ToXNine AS TtXNine, ToNumEnds AS TtNumEnds, ToNumDist AS TtNumDist, (ToMaxDistScore/ToGolds) AS MaxArrows " . "FROM Tournament " . "WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " ";
$RsTour = safe_r_sql($Select);
$RowTour = NULL;
$ComboSes = '';
$ComboDist = '';
$TxtTarget = '';
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";