コード例 #1
0
ファイル: PDFScoreMatch.php プロジェクト: brian-nelson/ianseo
<?php

require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
require_once 'Common/Fun_FormatText.inc.php';
require_once 'Common/pdf/ResultPDF.inc.php';
require_once 'Common/Lib/ArrTargets.inc.php';
require_once 'Common/Fun_Phases.inc.php';
require_once 'Common/Lib/Fun_PrintOuts.php';
$pdf = new ResultPDF(get_text('IndFinal'), false);
$pdf->setBarcodeHeader(70);
$Score3D = false;
//$MyQuery = "SELECT (TtElabTeam=2) as is3D FROM Tournament INNER JOIN Tournament*Type AS tt ON ToType=TtId WHERE ToId=" . StrSafe_DB($_SESSION['TourId']);
$MyQuery = "SELECT (ToElabTeam=2) as is3D FROM Tournament WHERE ToId=" . StrSafe_DB($_SESSION['TourId']);
$Rs = safe_r_sql($MyQuery);
if (safe_num_rows($Rs) == 1) {
    $r = safe_fetch($Rs);
    $Score3D = $r->is3D;
}
if (!$Score3D) {
    define("CellH", 9);
} else {
    define("CellH", 6);
}
error_reporting(E_ALL);
$FillWithArrows = false;
if (isset($_REQUEST["ScoreFilled"]) && $_REQUEST["ScoreFilled"] == 1) {
    $FillWithArrows = true;
}
$pdf->PrintFlags = !empty($_REQUEST["ScoreFlags"]);
$MyQuery = "";
if (isset($_REQUEST['Blank'])) {