本文整理汇总了PHP中Pdf::AddLink方法的典型用法代码示例。如果您正苦于以下问题:PHP Pdf::AddLink方法的具体用法?PHP Pdf::AddLink怎么用?PHP Pdf::AddLink使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pdf
的用法示例。
在下文中一共展示了Pdf::AddLink方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor.
*
* @return void
*/
public function __construct($tagProperties = array())
{
$this->pdf = Pdf::singleton();
if (isset($tagProperties['ID'])) {
$this->id = $tagProperties['ID'];
if (!isset($this->pdf->linksIds[$this->id])) {
$this->pdf->linksIds[$this->id] = $this->pdf->AddLink();
}
$this->pdf->SetLink($this->pdf->linksIds[$this->id], -1);
}
}
示例2: foreach
$pdf->SetFont('Helvetica', '', 10);
}
$pdf->SetFillColor(238, 238, 238);
$pdf->Cell(28, 6, $HostIP, 1, 0, 'C', 1);
$pdf->Cell(52, 6, $HostName, 1, 0, 'C', 1);
//$pdf->Cell(20, 6, "LocalChks",1,0,'C');
$pdf->Cell(22, 6, $Serious, 1, 0, 'C', 1);
$pdf->Cell(22, 6, $High, 1, 0, 'C', 1);
$pdf->Cell(22, 6, $Med, 1, 0, 'C', 1);
$pdf->Cell(22, 6, $Low, 1, 0, 'C', 1);
$pdf->Cell(22, 6, $Info, 1, 0, 'C', 1);
//$pdf->Cell(20, 6, "Exceptions",1,0,'C');
$pdf->Ln();
foreach ($hosts as $hostIP_ctx => $hostname) {
list($hostIP, $hostctx) = explode("#", $hostIP_ctx);
${"IP_" . $hostIP_ctx} = $pdf->AddLink();
$pdf->Cell(28, 6, $hostIP, 1, 0, 'C', 0, ${"IP_" . $hostIP_ctx});
$pdf->Cell(52, 6, $hostname, 1, 0, 'C', 0, ${"IP_" . $hostIP_ctx});
//$pdf->Cell(20, 6, $check_text,1,0,'C');
$host_risk = array(0, 0, 0, 0, 0, 0, 0, 0);
$query1 = "SELECT COUNT( risk ) AS count, risk FROM (\n SELECT DISTINCT risk, port, protocol, app, scriptid, msg, hostIP\n FROM vuln_nessus_results t1\n WHERE t1.report_id in ({$report_id})\n AND t1.ctx=UNHEX('{$hostctx}')\n AND t1.hostIp='{$hostIP}'\n {$perms_where}\n {$query_critical}\n and t1.falsepositive <> 'Y') as t group by hostIP, risk";
$ecount = 0;
$result1 = $dbconn->Execute($query1);
$prevrisk = 0;
$Eriskcount = 0;
while ($result1->fields) {
$riskcount = $result1->fields['count'];
$risk = $result1->fields['risk'];
if ($ecount > 0) {
$Eriskcount += $ecount;
$riskcount -= $ecount;