2014-03-04 09:07:18 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
2014-03-05 00:01:58 +01:00
|
|
|
$User = 'User';
|
|
|
|
$DreamjobUser = 'DreamjobUser';
|
|
|
|
$AppUser = 'AppUser';
|
|
|
|
$DreamjobListGraducation = 'DreamjobListGraducation';
|
2014-03-29 21:35:00 +01:00
|
|
|
if(isset($enableOpening) and $enableOpening){
|
2014-03-05 00:01:58 +01:00
|
|
|
$User = 'WorkerUser';
|
|
|
|
$DreamjobUser = 'DreamjobUserWorker';
|
|
|
|
$AppUser = 'AppUserWorker';
|
|
|
|
$DreamjobListGraducation = 'WorkerGraducation';
|
|
|
|
}
|
|
|
|
// echo var_dump($profil);
|
2014-03-04 09:07:18 +01:00
|
|
|
?>
|
2014-03-05 00:01:58 +01:00
|
|
|
<div class="openingitem">
|
|
|
|
<h3>
|
|
|
|
<?php
|
|
|
|
if($profil[$AppUser]['take_systemwide'])
|
|
|
|
echo $profil[$User]['first_name'].' '.$profil[$User]['last_name'];
|
|
|
|
else
|
|
|
|
echo $profil[$AppUser]['first_name'].' '.$profil[$AppUser]['last_name'];
|
|
|
|
?>
|
|
|
|
</h3>
|
|
|
|
<div class="icon">
|
2014-04-15 19:47:57 +02:00
|
|
|
<?php
|
2014-04-16 18:24:34 +02:00
|
|
|
$url='/img/icon_user.png';
|
2014-04-27 13:24:25 +02:00
|
|
|
if($profil[$AppUser]['take_systemwide']){
|
2014-04-15 19:47:57 +02:00
|
|
|
if($profil[$User]['avatar'])
|
|
|
|
$url = $MEDIA.DS.$profil[$User]['avatar'];
|
2014-04-27 13:24:25 +02:00
|
|
|
}else
|
2014-04-15 19:47:57 +02:00
|
|
|
if($profil[$AppUser]['avatar'])
|
|
|
|
$url = $MEDIA.DS.$profil[$AppUser]['avatar'];
|
|
|
|
|
|
|
|
?>
|
|
|
|
<img src="<?=$url;?>"/>
|
2014-03-05 00:01:58 +01:00
|
|
|
</div>
|
2014-03-04 09:07:18 +01:00
|
|
|
<div class="left">
|
2014-04-22 16:01:00 +02:00
|
|
|
<span><?=__('dreamjob.city').': '.$profil['DreamjobListCity']['name'];?></span>
|
2014-03-05 00:01:58 +01:00
|
|
|
<span><?=__('dreamjob.graducation').': '.$profil[$DreamjobListGraducation]['name'];?></span>
|
|
|
|
<?php if($profil['DreamjobWorker']['workexperience']){ ?>
|
2014-04-23 17:18:47 +02:00
|
|
|
<span><?=__('dreamjob.workexperience').': '.$profil['DreamjobWorker']['workexperience'].' '.__('dreamjob.years');?></span>
|
2014-03-05 00:01:58 +01:00
|
|
|
<?php } ?>
|
2014-03-29 21:35:00 +01:00
|
|
|
<?php if(isset($enableOpening) and $enableOpening){ ?>
|
2014-03-05 00:01:58 +01:00
|
|
|
<span><?=$this->Time->format('d.m.Y H:i', $profil['DreamjobJobApplication']['created']);?></span>
|
|
|
|
<?php } ?>
|
2014-03-04 09:07:18 +01:00
|
|
|
</div>
|
|
|
|
<div class="right">
|
2014-03-05 00:01:58 +01:00
|
|
|
<div class="btn-group-vertical">
|
|
|
|
<?php
|
2014-03-29 21:35:00 +01:00
|
|
|
if(isset($enableOpening) and $enableOpening){
|
2014-03-05 00:01:58 +01:00
|
|
|
$status = 'dreamjob.application.close';
|
|
|
|
$statusApp = null;
|
|
|
|
$archiv = array("archiv"=> $profil['DreamjobJobApplication']['id']);
|
2014-04-24 16:25:55 +02:00
|
|
|
if(!$profil['DreamjobJobApplication']['closed']){
|
2014-03-05 00:01:58 +01:00
|
|
|
$status = 'dreamjob.application.close.activet';
|
|
|
|
$statusApp= count($profil['DreamjobJobMsg']);
|
|
|
|
$newcount=0;
|
|
|
|
foreach($profil['DreamjobJobMsg'] as $msg)
|
|
|
|
if(!$msg['saw'])
|
|
|
|
$newcount++;
|
|
|
|
if($newcount>0)
|
|
|
|
$statusApp = $newcount."/".$statusApp;
|
2014-04-24 16:22:07 +02:00
|
|
|
$statusApp =__('dreamjob.applicated').' <span class="badge">'.$statusApp.'</span>';
|
2014-03-05 00:01:58 +01:00
|
|
|
$archiv['filter'] = 'archiv';
|
|
|
|
}else{
|
|
|
|
$statusApp = __('dreamjob.application');
|
|
|
|
}
|
2014-04-24 16:21:29 +02:00
|
|
|
echo $this->Html->link(__($status),array('controller'=>'job', 'action'=>'applicationByOpening', 'id'=> $profil['DreamjobJobApplication']['opening_id'],'?'=>$archiv),array("class" => "btn btn-default",'escape' => false));
|
|
|
|
echo $this->Html->link($statusApp,array('controller'=>'job', 'action'=>'applicationGet', 'id'=> $profil['DreamjobJobApplication']['id']),array("class" => "btn btn-default",'escape' => false));
|
2014-03-29 21:35:00 +01:00
|
|
|
}else{
|
|
|
|
echo $this->Html->link(__('dreamjob.details'),array('controller'=>'user', 'action'=>'profil', 'id'=> $profil[$AppUser]['id']),array("class" => "btn btn-default"));
|
2014-03-05 00:01:58 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
2014-03-04 09:07:18 +01:00
|
|
|
</div>
|
2014-04-27 13:24:25 +02:00
|
|
|
</div>
|