删除了项目负责人职称的填写

This commit is contained in:
Li Jianxuan 2013-09-05 09:14:00 +00:00
parent 7b150ee8ac
commit 3e881ec267
2 changed files with 3 additions and 8 deletions

View File

@ -306,7 +306,7 @@ class Order
$pdf->template = $this->config->offline->template; $pdf->template = $this->config->offline->template;
$pdf->heihetemplate = $this->config->offline->heihetemplate; $pdf->heihetemplate = $this->config->offline->heihetemplate;
$formData['project'].='['.$formData['project_title'].' | '.$formData['project_type'].' | '.$formData['project_id'].' | ' . $formData['leader'] . ' | ' .$formData['leadertitle']. ']'; $formData['project'].='['.$formData['project_title'].' | '.$formData['project_type'].' | '.$formData['project_id'].' | ' . $formData['leader'] . ']';
$pdf->data = $formData; $pdf->data = $formData;
if (isset($formData['westdclist'])) $pdf->drawWestdc(); if (isset($formData['westdclist'])) $pdf->drawWestdc();
@ -324,8 +324,8 @@ class Order
//header("Content-Length: " . strlen($pdfstring)); //header("Content-Length: " . strlen($pdfstring));
echo $pdf->Output('westdc-data-apply.pdf','S'); echo $pdf->Output('westdc-data-apply.pdf','S');
}else{ }else{
//$fn = $formData['realname'].date('YmdHis').".pdf"; $fn = $formData['realname'].date('YmdHis').".pdf";
$fn = date('YmdHis').".pdf"; //$fn = date('YmdHis').".pdf";
$path = realpath($this->config->offline->savepath); $path = realpath($this->config->offline->savepath);
$pdf->pdflink = $fn; $pdf->pdflink = $fn;
@$pdf->Output($path.DIRECTORY_SEPARATOR.$fn, 'F'); @$pdf->Output($path.DIRECTORY_SEPARATOR.$fn, 'F');

View File

@ -115,11 +115,6 @@ class PdfForm implements \Order\listener\PdfFormEvents
return "请填写项目负责人"; return "请填写项目负责人";
} }
if(empty($formData['leadertitle']))
{
return "请填写项目负责人职称";
}
if(empty($formData['project'])) if(empty($formData['project']))
{ {
return "请填写用途"; return "请填写用途";