当前位置: 首页>>代码示例>>PHP>>正文


PHP Pdf::AddLink方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:umbecr,项目名称:camilaframework,代码行数:16,代码来源:Xml2PdfTag.php

示例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;
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:respdf.php


注:本文中的Pdf::AddLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。