2015-03-31 14:49:03 +02:00
|
|
|
<?php
|
|
|
|
/*
|
2015-03-31 20:59:09 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
$opening_in_app = false;
|
|
|
|
|
|
|
|
$opening_in_fav=false;
|
|
|
|
if(isset($WORKER) and is_array($WORKER) and count($WORKER)>0){
|
|
|
|
foreach($WORKER['Favority'] as $val){
|
|
|
|
if($val['id'] == $opening['DreamjobJobOpening']['id'])
|
|
|
|
$opening_in_fav=true;
|
|
|
|
}
|
|
|
|
foreach($WORKER['DreamjobJobApplication'] as $val){
|
|
|
|
if($val['opening_id'] == $opening['DreamjobJobOpening']['id'])
|
|
|
|
$opening_in_app=true;
|
|
|
|
$opening_inApp=$val;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-31 14:49:03 +02:00
|
|
|
$avatar = false;
|
|
|
|
$url = '';
|
|
|
|
if($opening['AppUser']['avatar']){
|
|
|
|
$url = $MEDIA.DS.$opening['AppUser']['avatar'];
|
|
|
|
$avatar = true;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php if(!empty($opening_MINI) or !($opening_in_app or $opening_in_fav)){ ?>
|
|
|
|
<div class="openingitem">
|
2015-03-31 20:59:09 +02:00
|
|
|
<div class="text">
|
|
|
|
<h1><?=$opening['DreamjobJobOpening']['title']; $this->Html->link(__('dreamjob.opening.detail'));?></h1>
|
|
|
|
<span><?=$opening['AppUser']['nickname'];?></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="icon">
|
2015-03-31 14:49:03 +02:00
|
|
|
<?php if($avatar){ ?>
|
2015-03-31 20:59:09 +02:00
|
|
|
<div><img src="<?=$url;?>"/></div>
|
2015-03-31 14:49:03 +02:00
|
|
|
<?php
|
|
|
|
}else{
|
|
|
|
?>
|
2015-03-31 20:59:09 +02:00
|
|
|
<div></div>
|
2015-03-31 14:49:03 +02:00
|
|
|
<?php } ?>
|
2015-03-31 20:59:09 +02:00
|
|
|
</div>
|
2015-03-31 14:49:03 +02:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2015-03-31 20:59:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|