2014-02-18 12:10:29 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
$opening_in_app = false;
|
2014-02-19 00:02:17 +01:00
|
|
|
|
|
|
|
$opening_in_fav=false;
|
|
|
|
if(is_array($WORKER) and count($WORKER)>0){
|
|
|
|
foreach($WORKER['Favority'] as $val){
|
|
|
|
if($val['id'] == $opening['DreamjobJobOpening']['id'])
|
|
|
|
$opening_in_fav=true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$avatar = false;
|
|
|
|
if($opening['AppUser']['take_systemwide']){
|
|
|
|
if($opening['User']['avatar'])
|
|
|
|
$avatar = true;
|
|
|
|
}else{
|
|
|
|
if($opening['AppUser']['avatar'])
|
|
|
|
$avatar = true;
|
|
|
|
}
|
2014-02-18 12:10:29 +01:00
|
|
|
?>
|
|
|
|
<c:if test="${empty opening_MINI || not (opening_in_app || opening_in_fav)}">
|
|
|
|
<div class="openingitem">
|
|
|
|
<h3><?=$opening['DreamjobJobOpening']['title'];?></h3>
|
|
|
|
<c:if test="${WORKER!=null}">
|
|
|
|
<c:if test="${not opening_in_app}">
|
|
|
|
<span style="float: right;">
|
2014-02-19 00:02:17 +01:00
|
|
|
<?php
|
|
|
|
$image='favority_off.png';
|
|
|
|
if($opening_in_fav)
|
|
|
|
$image='favority_on.png';
|
|
|
|
echo $this->Html->image($image,array('url' => array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite')));
|
|
|
|
?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</span>
|
|
|
|
</c:if>
|
|
|
|
</c:if>
|
|
|
|
<div>
|
2014-02-19 00:02:17 +01:00
|
|
|
<?php if($avatar){ ?>
|
|
|
|
<div class="icon">
|
|
|
|
<span><?=$opening['AppUser']['nickname']." ".$opening['DreamjobCompany']['corporateform'];?></span>
|
|
|
|
<div>
|
|
|
|
<img src="<?php
|
|
|
|
if($opening['AppUser']['take_systemwide']){
|
|
|
|
echo $MEDIA_URL.$opening['User']['avatar'];
|
|
|
|
}else{
|
|
|
|
echo $MEDIA_URL.$opening['AppUser']['avatar'];
|
|
|
|
}
|
|
|
|
?>"/>
|
2014-02-18 12:10:29 +01:00
|
|
|
</div>
|
2014-02-19 00:02:17 +01:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}else{
|
|
|
|
?>
|
|
|
|
<div class="noicon-title">
|
|
|
|
<span><?=$opening['AppUser']['nickname']." ".$opening['DreamjobCompany']['corporateform'];?></span>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
<div class="left">
|
|
|
|
<span><?=__("dreamjob.graducation.company");?>: <?=$opening['DreamjobListGraducation']['name'];?></span>
|
|
|
|
<span><?=__("dreamjob.branch");?>: <?=$opening['DreamjobJobOpening']['branch'];?></span>
|
|
|
|
<span><?=__("dreamjob.city");?>: <?=$opening['DreamjobJobOpening']['city'];?></span>
|
|
|
|
<span><?=__("dreamjob.kindofjob");?>: <?=$opening['DreamjobListKindofjob']['name'];?></span>
|
|
|
|
<span<?php if( time() > strtotime($opening['DreamjobJobOpening']['enddate'])){ ?> class="opening_outdate"<?php } ?>><?=__("dreamjob.opening.enddate");?>: <?=$this->Time->format('d.m.Y', $opening['DreamjobJobOpening']['enddate']);?></span>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<div class="btn-group-vertical">
|
2014-02-19 00:02:17 +01:00
|
|
|
<?=$this->Html->link(__('dreamjob.opening.detail'),array('controller'=>'job', 'action'=>'openingGet', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));?>
|
|
|
|
<?php if($COMPANY['AppUser']['id'] == $opening['DreamjobJobOpening']['company_id']){ ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
<a class="btn btn-default" href="<c:url value="${URL}opening/edit/${opening.id}/"/>">
|
2014-02-19 00:02:17 +01:00
|
|
|
<?=__("dreamjob.edit");?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</a>
|
2014-02-19 00:02:17 +01:00
|
|
|
<?php }elseif(false){ ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
<c:when test="${opening_in_app}">
|
|
|
|
<c:set var="count" value="0"/>
|
|
|
|
<c:set var="newcount" value="0"/>
|
|
|
|
<c:forEach var="item" items="${opening_app.messages}">
|
|
|
|
<c:if test="${item.fromcompany && not saw}">
|
|
|
|
<c:set var="newcount" value="${newcount + 1}"/>
|
|
|
|
</c:if>
|
|
|
|
<c:set var="count" value="${count + 1}"/>
|
|
|
|
</c:forEach>
|
|
|
|
<a class="btn btn-default" href="<c:url value="${URL}application/${opening_app.id}/"/>">
|
|
|
|
<spring:message code="dreamjob.applicated"/>
|
|
|
|
<span class="badge">
|
|
|
|
<c:if test="${newcount eq count}">${newcount}/</c:if>
|
|
|
|
${count}</span>
|
|
|
|
</a>
|
2014-02-19 00:02:17 +01:00
|
|
|
<?php }else{ ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
<a class="btn btn-default
|
2014-02-19 00:02:17 +01:00
|
|
|
<?php if(!is_array($WORKER) and count($WORKER) <= 0){ ?>disabled<?php } ?>"
|
2014-02-18 12:10:29 +01:00
|
|
|
href="{% url de.miconware.dreamjob.jobs.views.application_send opening.pk %}">
|
2014-02-19 00:02:17 +01:00
|
|
|
<?=__("dreamjob.applicate");?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</a>
|
2014-02-19 00:02:17 +01:00
|
|
|
<?php } ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</c:if>
|