errors
This commit is contained in:
parent
f39ed5d9f9
commit
3a3bd96f8b
|
@ -10,7 +10,7 @@ class JobController extends AppController {
|
|||
* @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
|
||||
|
@ -213,6 +213,7 @@ class JobController extends AppController {
|
|||
$this->render('/Home/error');
|
||||
}else{
|
||||
$this->set('page',null);
|
||||
$this->set("edit",false);
|
||||
if(!empty($this->request->params['hiv'])){
|
||||
$this->DreamjobJobApplication->id = $application['DreamjobJobApplication']['id'];
|
||||
if ($this->DreamjobJobApplication->saveField('closed',!$application['DreamjobJobApplication']['closed'])) {
|
||||
|
@ -247,6 +248,8 @@ class JobController extends AppController {
|
|||
if(!empty($this->request->params['vitea'])){
|
||||
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id'])));
|
||||
$this->set("cv",$cv);
|
||||
$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0)));
|
||||
$this->set('cvp0', $cvp0);
|
||||
}else{
|
||||
if(!empty($this->request->params['page'])){
|
||||
/*$this->set('pageInh',$this->DreamjobJobApplication->Page->find('first',
|
||||
|
|
|
@ -99,16 +99,17 @@
|
|||
<?php }
|
||||
}elseif(!empty($cv)){ ?>
|
||||
<?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>
|
||||
<?php
|
||||
}elseif($page!=null){ ?>
|
||||
<?php
|
||||
if(isset($page['PageText']))
|
||||
$page = array("DreamjobPageText"=>$page['PageText'],"DreamjobPageInh"=>$pageInh['Page']);
|
||||
$page = array("DreamjobPageText"=>$page['PageText'],"DreamjobPageInh"=>$page['DreamjobPageInh']);
|
||||
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));
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue