Ejemplo n.º 1
0
}
// get the rule
$q = safe_r_sql("select * from TVRules where TVRId={$RuleId} AND TVRTournament={$TourId}");
if (!($RULE = safe_fetch($q))) {
    die('No data');
}
// set the correct defines for the torunament
set_defines($RULE->TVRTournament);
// set the event and the div number
$u->TVPEventInd = $Event;
$u->TVPEventTeam = $Event;
if (!empty($_GET['Session'])) {
    $u->TVPSession = intval($_GET['Session']);
}
$RotMatches = false;
$tmp = genera_html_rot($u, $RULE);
$pagina = '';
foreach ($tmp as $key => $Event) {
    if ($Event['type'] == 'DB') {
        $pagina .= '<table width="100%">' . "\n";
        $pagina .= $Event['cols'];
        $pagina .= $Event['head'];
        $pagina .= $Event['fissi'];
        //$pagina .= '</table>'."\n";
    }
    // il riquadro di riempimento
    $pagina .= '<tbody id="scrolldiv' . $quadro . '" title="' . $Event['type'] . $quadro . '">' . "\n";
    if ($Event['basso']) {
        $pagina .= '<tbody width="100%" id="scrolltab' . $quadro . '" class="' . $Event['type'] . '">' . "\n";
        $pagina .= $Event['cols'];
        $pagina .= $Event['basso'];
Ejemplo n.º 2
0
@define('PRINTLANG', $RULE->ToPrintLang);
// set the correct defines for the torunament
set_defines($RULE->TVRTournament);
// Estraggo gli spezzoni di regola
$Select = "SELECT * FROM TVSequence " . "WHERE TVSRule={$RuleId} AND TVSTournament={$TourId} " . "ORDER BY TVSOrder ";
$Rs = safe_r_sql($Select);
if (!safe_num_rows($Rs)) {
    printcrackerror();
}
$RotMatches = false;
while ($r = safe_fetch($Rs)) {
    $tmp = '';
    switch ($r->TVSTable) {
        case 'DB':
            $t = safe_r_sql("select * from TVParams where TVPId={$r->TVSContent} AND TVPTournament={$r->TVSTournament}");
            $tmp = genera_html_rot(safe_fetch($t), $RULE);
            break;
        case 'MM':
            $t = safe_r_sql("select * from TVContents where TVCId={$r->TVSContent} AND TVCTournament=" . ($r->TVSCntSameTour == 1 ? $r->TVSTournament : "-1"));
            $tmp = genera_content_rot(safe_fetch($t), $r);
            break;
    }
    if ($tmp) {
        $pagine[] = $tmp;
    }
}
$pagina = '';
$Styles = array();
$JavaScript = array();
$quadro = 0;
$firstdiv = '';