Пример #1
0
// Nomi delle textbox dei punti a sinistra e a destra
$TxtPuntiSx = array("", "", "");
$TxtPuntiDx = array("", "", "");
$StrPuntiSx = "";
$StrPuntiDx = "";
// Vettore dei punti (bersaglio)
$MySym = ${GetTargetType($_REQUEST['Event'], 1)};
//print GetTargetType($_REQUEST['Event']);exit;
$MyTargetComplete = TargetIsComplete(GetTargetType($_REQUEST['Event'], 1));
$MyTargetHitMiss = strstr(GetTargetType($_REQUEST['Event'], 1), 'TrgHM');
$MyTargetField = strstr(GetTargetType($_REQUEST['Event'], 1), 'TrgField');
//print $MyTargetComplete;exit;
$MyTargetSize = 0;
$MyTargetSize = $MyTargetComplete ? 100 : 200;
if (debug) {
    print GetTargetType($_REQUEST['Event'], 1) . '<br>';
    print ($MyTargetComplete ? 'Completo' : 'Non completo') . '<br>';
    print 'Volee: ' . $nEND . '<br>';
    print 'Frecce: ' . $nARR . '<br>';
}
/*
 * MatchNo dell'incontro
 *
 * Se $_REQUEST['MatchNo'] è pari la coppia è data da lui e dal successivo
 * altrimenti dal precedente e lui.
 */
$MatchSx = -1;
$MatchDx = -1;
if ($_REQUEST['MatchNo'] % 2 == 0) {
    $MatchSx = $_REQUEST['MatchNo'];
    $MatchDx = $_REQUEST['MatchNo'] + 1;
Пример #2
0
//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;
/*
	if (debug)
	{
		print_r($_REQUEST);
		print "<br>";
		print GetTargetType($_REQUEST['Event']) . '<br>';
		print ($MyTargetComplete ? 'Completo' : 'Non completo') . '<br>';
	}
*/
/***********************
 MatchNo dell'incontro
************************/
$MatchNo = isset($_REQUEST['MatchNo']) ? $_REQUEST['MatchNo'] : NULL;
Пример #3
0
        }
        /**************************
          Contenitore dell'output
        ***************************/
        $WinnerRow = '';
        if ($MyRow->Winner or $MyRow->OppWinner) {
            $WinnerRow = '<tr>' . ($PosArrDx || $PosArrSx ? '<td>&nbsp;</td>' : '') . '<td' . ($MyRow->Winner ? ' class="Winner"' : '') . '>' . ($MyRow->Winner ? get_text('Winner') : '&nbsp;') . '</td>' . '<td' . ($MyRow->OppWinner ? ' class="Winner"' : '') . '>' . ($MyRow->OppWinner ? get_text('Winner') : '&nbsp;') . '</td>' . ($PosArrDx || $PosArrSx ? '<td>&nbsp;</td>' : '') . '</tr>';
        }
        $Output = '<table class="Tabella">' . "\n" . '<tr height="1%">' . '<th colspan="4" class="Title" style="font-size:200%; font-weight:bold; text-align:center;">' . ($Live ? '<img src="' . $CFG->ROOT_DIR . 'Common/Images/greendot_anim.gif" align="absmiddle"> ' : '') . get_text($MyRow->EventName, '', '', true) . ($Live ? ' - ' . get_text('LiveUpdate', 'Tournament') . ' <img src="' . $CFG->ROOT_DIR . 'Common/Images/greendot_anim.gif" align="absmiddle">' : '') . ($LiveExists ? ' - <a href="./">' . get_text('GoLive', 'Tournament') . '</a>' : '') . '</th>' . '</tr>' . "\n" . '<tr height="1%">' . '<th colspan="4" class="Title">' . get_text($MyRow->Phase . '_Phase') . '</th>' . '</tr>' . "\n" . '<tr height="1%">' . ($PosArrSx || $PosArrDx ? '<td style="font-size:150%; font-weight:bold; text-align:center; width:17%;">' . $MyRow->Nation . '</td>' : '') . '<td style="font-size:180%; font-weight:bold; text-align:center; width:32%;">' . $MyRow->FirstName . ' ' . $MyRow->Name . '<br>(' . $MyRow->Nation . ')</td>' . '<td style="font-size:180%; font-weight:bold; text-align:center; width:32%;">' . $MyRow->OppFirstName . ' ' . $MyRow->OppName . '<br>(' . $MyRow->OppNation . ')</td>' . ($PosArrSx || $PosArrDx ? '<td style="font-size:150%; font-weight:bold; text-align:center; width:17%;">' . $MyRow->OppNation . '</td>' : '') . '</tr>' . "\n" . $WinnerRow . '<tr>' . ($PosArrSx || $PosArrDx ? '<td valign="top" rowspan="3">' . $SemaforoSx . '</td>' : '') . '<td valign="top" class="Center" nowrap>' . $ScoreSx . '<br>' . ($PhotoSx != '' ? '<img src="' . $PhotoSx . '" border="0" width="150px">' : '') . '<br>' . '<div style="font-size:180%; text-align:justify; margin:10px;">' . nl2br($StorySx) . '</div>' . '</td>' . '<td valign="top" class="Center" nowrap>' . $ScoreDx . '<br>' . ($PhotoDx != '' ? '<img src="' . $PhotoDx . '" border="0" width="150px">' : '') . '<br>' . '<div style="font-size:180%; text-align:justify; margin:10px;">' . nl2br($StoryDx) . '</div>' . '</td>' . ($PosArrSx || $PosArrDx ? '<td valign="top" rowspan="3">' . $SemaforoDx . '</td>' : '') . '</tr>' . "\n" . '<tr>' . '<td valign="top" colspan="2" style="font-size:150%; text-align:justify; margin:10px;">' . nl2br(htmlentities($ReviewLang1, ENT_NOQUOTES, "UTF-8")) . '<spacer></spacer></td>' . '</tr>' . "\n" . '<tr>' . '<td valign="top" colspan="2" style="font-size:150%; text-align:justify; margin:10px;">' . nl2br(htmlentities($ReviewLang2, ENT_NOQUOTES, "UTF-8")) . '<spacer></spacer></td>' . '</tr>' . "\n";
        $Output .= '</table>' . "\n";
    }
} else {
    //////// VIEW TEAM
    $MatchSx = $MatchNo;
    $MatchDx = $MatchNo + 1;
    $MyTargetComplete = TargetIsComplete(GetTargetType($Event, 1));
    //print $MyTargetComplete;exit;
    $MyTargetSize = 0;
    $MyTargetSize = $MyTargetComplete ? 100 : 200;
    // Contatori per la distribuzione di freccie
    $CountersSx = array_fill(1, 10, 0);
    $CountersSx["X"] = 0;
    $CountersSx["M"] = 0;
    //foreach ($Counters1 as $key => $value) print $key . ' --> ' . $value . "<br>";
    $CountersDx = array_fill(1, 10, 0);
    $CountersDx["X"] = 0;
    $CountersDx["M"] = 0;
    // check event material!
    $Select = "select distinct count(*) TeamMates, Events.* from Events inner join TeamComponent on EvTournament=TcTournament and EvTeamEvent=1 and EvCode=TcEvent where EvTournament={$_SESSION['TourId']} and EvCode='{$Event}' group by TcCoId, TcSubTeam";
    $t = safe_r_sql($Select);
    $EVENT = safe_fetch($t);