添加WATER协议生成功能并修改了部分文字信息
This commit is contained in:
parent
fa2c1c9311
commit
4508a97b12
|
@ -20,7 +20,7 @@
|
|||
</div>
|
||||
<div id="data2">
|
||||
<p> 为促进中国西部资源与生态环境科学研究,更好的为西部大开发服务,充分利用数据中心多年来的数据积累及国家自然科学基金委员会“中国西部环境与生态科学研究计划”、数字流域等的数据产出,
|
||||
根据我国科学数据共享和基金项目数据管理的有关规定, 中科院寒区旱区环境与工程研究所(简称甲方)同意接收__________(以下简称乙方)的数据申请,并签订数据使用协议(<strong>其中用途部分,请填写您的项目名称、项目编号、项目类型以及使用目的,如自然科学基金、863、973等,以便能更快通过申请。</strong>):
|
||||
根据我国科学数据共享和基金项目数据管理的有关规定, 中科院寒区旱区环境与工程研究所(简称甲方)同意接收__________(以下简称乙方)的数据申请,并签订数据使用协议(<strong>其中用途部分,请仔细填写您的项目名称、编号、类型、负责人以及使用目的信息,否则无法通过申请!</strong>):
|
||||
</p>
|
||||
<p style="color:red;"> 您必须点击 “提交申请到数据中心” 后西部数据中心才能开始受理您的数据申请!</p>
|
||||
<h1>数据清单</h1>
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
//生成西部数据中心离线申请表
|
||||
require_once('fpdf/chinese-unicode.php');
|
||||
require_once('fpdi/fpdi.php');
|
||||
class ApplicantWaterPDF extends FPDI
|
||||
{
|
||||
public $template;//模板文件的路径
|
||||
public $data;//包含具体的数据,数组
|
||||
public $fontsize=10;
|
||||
function drawWestdc()
|
||||
{
|
||||
$pagecount = $this->setSourceFile($this->template);
|
||||
$tplidx = $this->importPage(1, '/MediaBox');
|
||||
$this->addPage();
|
||||
$this->useTemplate($tplidx);
|
||||
$tplidx = $this->importPage(2, '/MediaBox');
|
||||
$this->addPage();
|
||||
$this->useTemplate($tplidx);
|
||||
$this->AddUniGBhwFont('ugb','AdobeSongStd-Light-Acro');
|
||||
$this->SetFont('ugb','',$this->fontsize);
|
||||
$this->SetXY(34,30);
|
||||
$this->MultiCell (152, 5, str_replace(";","\n",$this->data['datalist']));
|
||||
$this->setXY(34,100);
|
||||
$this->MultiCell(152,4,trim($this->data['project']));
|
||||
$this->setXY(36,252);
|
||||
$this->Write($this->fontsize,$this->data['unit']);
|
||||
$this->setXY(106,252);
|
||||
$this->Write($this->fontsize,$this->data['address']);
|
||||
$this->setXY(38,260);
|
||||
$this->Write($this->fontsize,$this->data['email']);
|
||||
$this->setXY(106,260);
|
||||
$this->Write($this->fontsize,$this->data['phone']);
|
||||
$this->setXY(159,260);
|
||||
$this->Write($this->fontsize,$this->data['postcode']);
|
||||
$t=getdate();
|
||||
$this->setXY(152,190);
|
||||
$this->Write($this->fontsize,$t['year']);
|
||||
$this->setXY(165,190);
|
||||
$this->Write($this->fontsize,$t['mon']);
|
||||
$this->setXY(176,190);
|
||||
$this->Write($this->fontsize,$t['mday']);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue