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">
|
|
|
|
<img src="<?php
|
|
|
|
if($profil[$AppUser]['take_systemwide'])
|
|
|
|
if($profil[$User]['avatar'])
|
|
|
|
echo $MEDIA_URL.$profil[$User]['avatar'];
|
|
|
|
else
|
|
|
|
echo $STATIC_URL."img/icon_user.png";
|
|
|
|
else
|
|
|
|
if($profil[$AppUser]['avatar'])
|
|
|
|
echo $MEDIA_URL.$profil[$AppUser]['avatar'];
|
|
|
|
else
|
|
|
|
echo $STATIC_URL."img/icon_user.png";
|
|
|
|
?>"/>
|
|
|
|
</div>
|
2014-03-04 09:07:18 +01:00
|
|
|
<div class="left">
|
2014-03-05 00:01:58 +01:00
|
|
|
<span><?=__('dreamjob.city').': '.$profil[$DreamjobUser]['city'];?></span>
|
|
|
|
<span><?=__('dreamjob.graducation').': '.$profil[$DreamjobListGraducation]['name'];?></span>
|
|
|
|
<?php if($profil['DreamjobWorker']['workexperience']){ ?>
|
|
|
|
<span><?=__('dreamjob.workexperience').': '.$profil['DreamjobWorker']['workexperience'].' ',__('dreamjob.years');?></span>
|
|
|
|
<?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']);
|
|
|
|
if($profil['DreamjobJobApplication']['closed']){
|
|
|
|
$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;
|
|
|
|
$statusApp =__('dreamjob.applicated').'<span class="badge">'.$statusApp.'</span>';
|
|
|
|
$archiv['filter'] = 'archiv';
|
|
|
|
}else{
|
|
|
|
$statusApp = __('dreamjob.application');
|
|
|
|
}
|
2014-03-16 11:09:10 +01:00
|
|
|
echo $this->Html->link(__($status),array('controller'=>'job', 'action'=>'applicationByOpening', 'id'=> $profil['DreamjobJobApplication']['opening_id'],'?'=>$archiv),array("class" => "btn btn-default",'escape' => true));
|
|
|
|
echo $this->Html->link($statusApp,array('controller'=>'job', 'action'=>'applicationGet', 'id'=> $profil['DreamjobJobApplication']['id']),array("class" => "btn btn-default",'escape' => true));
|
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>
|
|
|
|
</div>
|