示例#1
0
文件: PDFLabel.php 项目: dschwen/CRM
if ($startrow < 1) {
    $startrow = 1;
}
$sLabelType = FilterInput($_GET["labeltype"], 'char', 8);
setcookie("labeltype", $sLabelType, time() + 60 * 60 * 24 * 90, "/");
$pdf = new PDF_Label($sLabelType, $startcol, $startrow);
$pdf->Open();
$sFontInfo = FontFromName($_GET["labelfont"]);
setcookie("labelfont", $_GET["labelfont"], time() + 60 * 60 * 24 * 90, "/");
$sFontSize = $_GET["labelfontsize"];
setcookie("labelfontsize", $sFontSize, time() + 60 * 60 * 24 * 90, "/");
$pdf->SetFont($sFontInfo[0], $sFontInfo[1]);
if ($sFontSize == "default") {
    $sFontSize = "10";
}
$pdf->Set_Char_Size($sFontSize);
// Manually add a new page if we're using offsets
if ($startcol > 1 || $startrow > 1) {
    $pdf->AddPage();
}
$mode = $_GET["groupbymode"];
setcookie("groupbymode", $mode, time() + 60 * 60 * 24 * 90, "/");
if (array_key_exists("bulkmailpresort", $_GET)) {
    $bulkmailpresort = $_GET["bulkmailpresort"];
} else {
    $bulkmailpresort = false;
}
setcookie("bulkmailpresort", $bulkmailpresort, time() + 60 * 60 * 24 * 90, "/");
if (array_key_exists("bulkmailquiet", $_GET)) {
    $bulkmailquiet = $_GET["bulkmailquiet"];
} else {