예제 #1
0
<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'Common/pdf/ResultPDF.inc.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Lib/Fun_PrintOuts.php';
$pdf = new ResultPDF(get_text('IndFinal'), false);
$pdf->setBarcodeHeader(70);
$CellH = 12;
$GoldW = ($pdf->GetPageWidth() - 3 * $pdf->getSideMargin()) / 2 * (1 / 18);
$ArrowTotW = ($pdf->GetPageWidth() - 3 * $pdf->getSideMargin()) / 2 * (9 / 18);
$TotalW = ($pdf->GetPageWidth() - 3 * $pdf->getSideMargin()) / 2 * (3 / 18);
$GridTotH = $pdf->GetPageheight() * 0.25;
$FillWithArrows = false;
if (isset($_REQUEST["ScoreFilled"]) && $_REQUEST["ScoreFilled"] == 1) {
    $FillWithArrows = true;
}
$pdf->PrintFlags = !empty($_REQUEST["ScoreFlags"]);
$NumColStd = 6;
$NumColField = 3;
$StdCols = 1;
$NumRow = 0;
$Fita3D = false;
/*$Select
		= "SELECT (TtElabTeam=0) as StdTournament, (TtCategory=8) as 3DTournament "
		. "FROM Tournament INNER JOIN Tournament*Type ON ToType=TtId "
		. "WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " ";*/
$Select = "SELECT (ToElabTeam=0) as StdTournament, (ToCategory=8) as 3DTournament " . "FROM Tournament " . "WHERE ToId=" . StrSafe_DB($_SESSION['TourId']) . " ";
$RsTour = safe_r_sql($Select);
if (safe_num_rows($RsTour) == 1) {