2014-03-04 09:07:18 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<span>
|
|
|
|
<?php if(!empty($WORKER)){
|
|
|
|
echo $this->Html->link(__('dreamjob.my.application'),array('controller'=>'job','action'=>'applicationList'));
|
|
|
|
}else{
|
|
|
|
echo $this->Html->link(__('dreamjob.application'),array('controller'=>'job','action'=>'applicationByOpening','id'=>$application['DreamjobJobOpening']['id']));
|
|
|
|
} ?>
|
|
|
|
</span>
|
|
|
|
<span style="float: right;">
|
|
|
|
<?=$this->Html->link(__('dreamjob.opening'),array('controller'=>'job','action'=>'openingGet','id'=>$application['DreamjobJobOpening']['id'])); ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="box">
|
2014-03-10 23:53:06 +01:00
|
|
|
<?=$this->element('job_opening_head',array("opening"=>$application));?>
|
2014-03-04 09:07:18 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
2014-03-05 00:01:58 +01:00
|
|
|
<span>
|
|
|
|
<?php if(!empty($COMPANY)){
|
|
|
|
$str = 'dreamjob.application.close';
|
|
|
|
if($application['DreamjobJobApplication']['closed'])
|
|
|
|
$str = 'dreamjob.application.close.activet';
|
|
|
|
?>
|
|
|
|
<?=$this->Html->link(__($str),array('controller'=>'job','action'=>'applicationGet','id'=>$application['DreamjobJobApplication']['id'],'hiv'=>'hiv')); ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
<span style="float: right;">
|
|
|
|
<?php if($msg){
|
|
|
|
echo $this->Html->link(__('dreamjob.applicated'),array('controller'=>'job','action'=>'applicationGet','id'=>$application['DreamjobJobApplication']['id']));
|
|
|
|
}else{
|
|
|
|
echo $this->Html->link(__('dreamjob.message.send'),array('controller'=>'job','action'=>'applicationGet','id'=>$application['DreamjobJobApplication']['id'],'ages'=>'ages'));
|
2014-03-04 09:07:18 +01:00
|
|
|
} ?>
|
2014-03-05 00:01:58 +01:00
|
|
|
</span>
|
2014-03-04 09:07:18 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if(!empty($COMPANY)){ ?>
|
|
|
|
<div class="box">
|
|
|
|
<?php
|
|
|
|
$profil=array('DreamjobWorker'=>$application['DreamjobWorker'],
|
|
|
|
'DreamjobUser'=>$application["DreamjobUserWorker"],
|
|
|
|
'AppUser'=>$application["AppUserWorker"],
|
|
|
|
'User'=>$application["WorkerUser"],
|
|
|
|
'DreamjobListGraducation'=>$application["WorkerGraducation"]);
|
|
|
|
echo $this->element('user_worker_header',array('profil'=>$profil));
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2014-03-05 00:01:58 +01:00
|
|
|
<div id="tab">
|
|
|
|
<!-- tab -->
|
|
|
|
<?php if(!$msg){ ?>
|
|
|
|
<div class="box">
|
2014-03-04 09:07:18 +01:00
|
|
|
<div class="tabs-below">
|
|
|
|
<ul class="nav nav-tabs pull-right">
|
|
|
|
<li<?php if (empty($page)){?> class="active"<?php } ?>>
|
|
|
|
<?=$this->Html->link(__("dreamjob.application"),array('controller'=>'job','action'=>'applicationGet','id'=> $application['DreamjobJobApplication']['id'] ),array('rel'=>"tab")); ?>
|
|
|
|
</li>
|
|
|
|
<?php foreach($application['Page'] as $pag){ ?>
|
|
|
|
<li<?php if(isset($page['DreamjobPageInh']['id'])) if ($page['DreamjobPageInh']['id'] == $pag['id']){?> class="active"<?php } ?>>
|
|
|
|
<?=$this->Html->link($pag['title'],array('controller'=>'job','action'=>'applicationGet','id'=> $application['DreamjobJobApplication']['id'],'page'=> $pag['id'] ),array('rel'=>"tab")); ?>
|
|
|
|
<?php }?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php }
|
|
|
|
if($msg){
|
|
|
|
|
|
|
|
foreach($application['DreamjobJobMsg'] as $msgitem){
|
|
|
|
?>
|
2014-03-05 00:01:58 +01:00
|
|
|
<div class="box msg">
|
|
|
|
<legend>
|
|
|
|
<span>
|
|
|
|
<?php if($msgitem['fromcompany']){
|
|
|
|
echo $application['AppUser']['nickname']." ".$application['DreamjobCompany']['corporateform'];
|
2014-03-04 09:07:18 +01:00
|
|
|
}else{
|
|
|
|
echo $application['WorkerUser']['first_name']." ".$application['WorkerUser']['last_name'];
|
2014-03-05 00:01:58 +01:00
|
|
|
} ?>
|
|
|
|
</span>
|
|
|
|
<span class="created" style="float:right;<?php if(!$msgitem['saw']){ ?>color:red;<?php } ?>">
|
|
|
|
<?=$this->Time->format('d.m.Y H:i', $msgitem['created']);?>
|
|
|
|
</span>
|
|
|
|
</legend>
|
|
|
|
<div class="text">
|
|
|
|
<?=$msgitem['text']; ?>
|
2014-03-04 09:07:18 +01:00
|
|
|
</div>
|
2014-03-05 00:01:58 +01:00
|
|
|
</div>
|
2014-03-04 09:07:18 +01:00
|
|
|
|
|
|
|
<?php }
|
|
|
|
}elseif($page!=null){ ?>
|
|
|
|
<?php
|
|
|
|
if(isset($page['PageText']))
|
|
|
|
$page = array("DreamjobPageText"=>$page['PageText'],"DreamjobPageInh"=>$pageInh['Page']);
|
|
|
|
else
|
|
|
|
$page = array("DreamjobPageImage"=>$page['PageImage'],"DreamjobPageInh"=>$pageInh['Page']);
|
|
|
|
echo $this->element('user_page',array("page"=>$page));
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php }else{ ?>
|
|
|
|
<?=$application['DreamjobJobApplication']['text'];?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php
|
2014-03-05 22:01:30 +01:00
|
|
|
if($msg and !$application['DreamjobJobApplication']['closed']){
|
|
|
|
?>
|
|
|
|
<div class="box">
|
|
|
|
<?php echo $this->Form->create('DreamjobJobMsg',$default_Form); ?>
|
|
|
|
<fieldset>
|
|
|
|
<legend><?=__("dreamjob.message");?></legend>
|
|
|
|
<?=$this->Form->textarea('DreamjobJobMsg.text',array("class"=>'form-control',"rows"=>10)); ?>
|
|
|
|
<div class="buttonrow">
|
|
|
|
<?=$this->Form->button(__('dreamjob.save'),array('div' => false,'class'=>"btn btn-default",'type' => 'submit'));?>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<?php echo $this->Form->end(); ?>
|
2014-03-04 09:07:18 +01:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<!-- /tab -->
|
|
|
|
</div>
|