This commit is contained in:
Martin Müller 2014-04-23 12:38:18 +02:00
parent 9dadc49948
commit 5f80801abb
5 changed files with 17 additions and 10 deletions

View File

@ -25,10 +25,11 @@ class PdfController extends AppController {
$this->render('/Home/error'); $this->render('/Home/error');
}else{ }else{
$this->set('application',$application); $this->set('application',$application);
//$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id']))); $cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id'])));
//$this->set("cv",$cv); $this->set("cv",$cv);
//$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0))); $cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0)));
//$this->set('cvp0', $cvp0); $this->set('cvp0', $cvp0);
$this->set('edit', false);
$this->layout = 'pdf'; $this->layout = 'pdf';
$this->render('/Pdf/opening'); $this->render('/Pdf/opening');
} }

View File

@ -10,7 +10,7 @@ class RegistrationController extends AppController {
* @var array * @var array
*/ */
public $componens = array('MiconwareSession'); public $componens = array('MiconwareSession');
public $uses = array('Mannerofaddress','DreamjobListGraducation','DreamjobListBranch','DreamjobWorker','DreamjobCompany','User'); public $uses = array('Mannerofaddress','DreamjobListGraducation','DreamjobListBranch','DreamjobWorker','DreamjobCompany','User','DreamjobListCity');
public function main() { public function main() {

View File

@ -51,6 +51,6 @@ if($isLoggedin){
--> -->
</style> </style>
<?php <?php
echo $this->Html->link(__('dreamjob.company.to'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary")); echo $this->Html->link(__('dreamjob.company.startpage'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary"));
} }
?> ?>

View File

@ -1,6 +1,12 @@
<?php <?php
App::import('Vendor','tcpdf/xtcpdf'); App::import('Vendor','tcpdf/xtcpdf');
$cvinhalt = $this->element('user_worker_cv',array('profil'=>array('User'=>$application['WorkerUser']
,'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 = 1; $dev = 1;
$tcpdf = new XTCPDF(); $tcpdf = new XTCPDF();
@ -56,8 +62,8 @@ $tcpdf->SetY(35);
$tcpdf->SetTextColor(0, 0, 0); $tcpdf->SetTextColor(0, 0, 0);
$tcpdf->SetFont($tcpdf->font); $tcpdf->SetFont($tcpdf->font);
$tcpdf->writeHTMLCell(0,235,10,35, $this->element('user_worker_cv'), $dev,0,false,true,'L'); //$tcpdf->writeHTML(0,235,10,35, $cvinhalt, $dev,0,false,true,'L');
$tcpdf->writeHTML($cvinhalt);
$tcpdf->SetAutoPageBreak( false ); $tcpdf->SetAutoPageBreak( false );
//Anhang //Anhang

View File

@ -6,8 +6,8 @@
<div class="box"> <div class="box">
<h1><?=__('dreamjob.registration');?></h1> <h1><?=__('dreamjob.registration');?></h1>
<?php <?php
echo $this->Html->link(__('dreamjob.worker'),array('controller'=>'registration','action'=>'worker')); echo $this->Html->link(__('dreamjob.registration.worker'),array('controller'=>'registration','action'=>'worker'));
echo '<br/>'; echo '<br/>';
echo $this->Html->link(__('dreamjob.company'),array('controller'=>'registration','action'=>'company')); echo $this->Html->link(__('dreamjob.registration.company'),array('controller'=>'registration','action'=>'company'));
?> ?>
</div> </div>