cv im pdf <- rand und umbrüche
This commit is contained in:
parent
28525f0b44
commit
c4e8a696a6
|
@ -108,12 +108,6 @@ class RegistrationController extends AppController {
|
||||||
|
|
||||||
$result = $this->DreamjobWorker->registration($data);
|
$result = $this->DreamjobWorker->registration($data);
|
||||||
|
|
||||||
if($result){
|
|
||||||
$result = $this->registrationMail($data,$key);
|
|
||||||
if($result){
|
|
||||||
$this->log("Registratrion Mail:"+$data['User']['mail']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$regResult = true;
|
$regResult = true;
|
||||||
$this->MiconwareSession->setFlash('dreamjob.registration.done','flash',array('alert'=>'success'));
|
$this->MiconwareSession->setFlash('dreamjob.registration.done','flash',array('alert'=>'success'));
|
||||||
|
|
|
@ -8,8 +8,7 @@ class XTCPDF extends TCPDF{
|
||||||
var $title = '' ;
|
var $title = '' ;
|
||||||
var $mail = 'dasa@sdsa.de' ;
|
var $mail = 'dasa@sdsa.de' ;
|
||||||
|
|
||||||
function Header()
|
function Header(){
|
||||||
{
|
|
||||||
$this->SetY(25);
|
$this->SetY(25);
|
||||||
$this->SetTextColor(0,0, 0);
|
$this->SetTextColor(0,0, 0);
|
||||||
$this->SetFont($this->font,'B',$this->fontsize);
|
$this->SetFont($this->font,'B',$this->fontsize);
|
||||||
|
@ -21,8 +20,7 @@ class XTCPDF extends TCPDF{
|
||||||
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo.png',0,10,20,20,'','','','',300,'R');
|
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo.png',0,10,20,20,'','','','',300,'R');
|
||||||
}
|
}
|
||||||
|
|
||||||
function Footer()
|
function Footer(){
|
||||||
{
|
|
||||||
$this->SetY(-20);
|
$this->SetY(-20);
|
||||||
$this->SetTextColor(0, 0, 0);
|
$this->SetTextColor(0, 0, 0);
|
||||||
$this->SetFont($this->font,'',$this->fontsize);
|
$this->SetFont($this->font,'',$this->fontsize);
|
||||||
|
|
|
@ -2,14 +2,12 @@
|
||||||
App::import('Vendor','tcpdf/xtcpdf');
|
App::import('Vendor','tcpdf/xtcpdf');
|
||||||
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser']
|
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser']
|
||||||
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
|
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
|
||||||
//die($cvinhalt);
|
|
||||||
//$cvinhalt = "<i>asd</i>";
|
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
|
|
||||||
$dev = 0;
|
$dev = 0;
|
||||||
$tcpdf = new XTCPDF();
|
$tcpdf = new XTCPDF();
|
||||||
|
$tcpdf->SetMargins(25,25,20,25);
|
||||||
$tcpdf->SetAuthor("Miconware");
|
$tcpdf->SetAuthor("Miconware");
|
||||||
$tcpdf->SetAutoPageBreak( false );
|
$tcpdf->SetAutoPageBreak( false );
|
||||||
|
|
||||||
|
@ -52,10 +50,11 @@ $tcpdf->SetY(85);
|
||||||
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
|
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
|
||||||
$tcpdf->Cell(0,0, __('dreamjob.application.subject'), 0,1,'L');
|
$tcpdf->Cell(0,0, __('dreamjob.application.subject'), 0,1,'L');
|
||||||
$tcpdf->SetFont($tcpdf->font);
|
$tcpdf->SetFont($tcpdf->font);
|
||||||
$tcpdf->writeHTMLCell(0,175,10,95, $application['DreamjobJobApplication']['text'], $dev,0,false,true,'L');
|
$tcpdf->SetAutoPageBreak( true,50);
|
||||||
|
$tcpdf->writeHTML($application['DreamjobJobApplication']['text']);
|
||||||
|
//$tcpdf->writeHTMLCell(0,175,10,95, $application['DreamjobJobApplication']['text'], $dev,0,false,true,'L');
|
||||||
|
|
||||||
//Lebenslauf
|
//Lebenslauf
|
||||||
$tcpdf->SetAutoPageBreak( true );
|
|
||||||
$tcpdf->title=__('dreamjob.cv');
|
$tcpdf->title=__('dreamjob.cv');
|
||||||
$tcpdf->AddPage();
|
$tcpdf->AddPage();
|
||||||
$tcpdf->SetY(35);
|
$tcpdf->SetY(35);
|
||||||
|
|
Loading…
Reference in New Issue