This commit is contained in:
Martin Müller 2014-04-22 22:59:02 +02:00
parent f39ed5d9f9
commit 3a3bd96f8b
2 changed files with 8 additions and 4 deletions

View File

@ -10,7 +10,7 @@ class JobController extends AppController {
* @var array * @var array
*/ */
public $uses = array('DreamjobJobOpening','DreamjobJobFavority','DreamjobJobApplication','DreamjobPageText','DreamjobPageImage','DreamjobJobMsg','DreamjobCvEntry','DreamjobListBranch'); public $uses = array('DreamjobJobOpening','DreamjobJobFavority','DreamjobJobApplication','DreamjobPageText','DreamjobPageImage','DreamjobJobMsg','DreamjobCvEntry','DreamjobListCvCategory','DreamjobListBranch','DreamjobListCity');
/** /**
* Displays a view * Displays a view
@ -213,6 +213,7 @@ class JobController extends AppController {
$this->render('/Home/error'); $this->render('/Home/error');
}else{ }else{
$this->set('page',null); $this->set('page',null);
$this->set("edit",false);
if(!empty($this->request->params['hiv'])){ if(!empty($this->request->params['hiv'])){
$this->DreamjobJobApplication->id = $application['DreamjobJobApplication']['id']; $this->DreamjobJobApplication->id = $application['DreamjobJobApplication']['id'];
if ($this->DreamjobJobApplication->saveField('closed',!$application['DreamjobJobApplication']['closed'])) { if ($this->DreamjobJobApplication->saveField('closed',!$application['DreamjobJobApplication']['closed'])) {
@ -247,6 +248,8 @@ class JobController extends AppController {
if(!empty($this->request->params['vitea'])){ if(!empty($this->request->params['vitea'])){
$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)));
$this->set('cvp0', $cvp0);
}else{ }else{
if(!empty($this->request->params['page'])){ if(!empty($this->request->params['page'])){
/*$this->set('pageInh',$this->DreamjobJobApplication->Page->find('first', /*$this->set('pageInh',$this->DreamjobJobApplication->Page->find('first',

View File

@ -99,16 +99,17 @@
<?php } <?php }
}elseif(!empty($cv)){ ?> }elseif(!empty($cv)){ ?>
<?php <?php
echo $this->element('user_worker_cv'); echo $this->element('user_worker_cv',array('profil'=>array('User'=>$application['WorkerUser']
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
?> ?>
</div> </div>
<?php <?php
}elseif($page!=null){ ?> }elseif($page!=null){ ?>
<?php <?php
if(isset($page['PageText'])) if(isset($page['PageText']))
$page = array("DreamjobPageText"=>$page['PageText'],"DreamjobPageInh"=>$pageInh['Page']); $page = array("DreamjobPageText"=>$page['PageText'],"DreamjobPageInh"=>$page['DreamjobPageInh']);
else else
$page = array("DreamjobPageImage"=>$page['PageImage'],"DreamjobPageInh"=>$pageInh['Page']); $page = array("DreamjobPageImage"=>$page['PageImage'],"DreamjobPageInh"=>$page['DreamjobPageInh']);
echo $this->element('user_page',array("page"=>$page)); echo $this->element('user_page',array("page"=>$page));
?> ?>
</div> </div>