103 lines
4.5 KiB
PHP
103 lines
4.5 KiB
PHP
<?php
|
|
/*
|
|
*
|
|
*/
|
|
$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;
|
|
}
|
|
}
|
|
|
|
$avatar = false;
|
|
if($opening['AppUser']['take_systemwide']){
|
|
if($opening['User']['avatar'])
|
|
$avatar = true;
|
|
}else{
|
|
if($opening['AppUser']['avatar'])
|
|
$avatar = true;
|
|
}
|
|
?>
|
|
<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;">
|
|
<?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')));
|
|
?>
|
|
</span>
|
|
</c:if>
|
|
</c:if>
|
|
<div>
|
|
<?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'];
|
|
}
|
|
?>"/>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}else{
|
|
?>
|
|
<div class="noicon-title">
|
|
<span><?=$opening['AppUser']['nickname']." ".$opening['DreamjobCompany']['corporateform'];?></span>
|
|
</div>
|
|
<?php } ?>
|
|
<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">
|
|
<?php
|
|
echo $this->Html->link(__('dreamjob.opening.detail'),array('controller'=>'job', 'action'=>'openingGet', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));
|
|
|
|
if( isset($COMPANY['AppUser']['id']) and $COMPANY['AppUser']['id'] == $opening['DreamjobJobOpening']['company_id']){
|
|
echo $this->Html->link(__('dreamjob.opening.edit'),array('controller'=>'job', 'action'=>'openingEdit', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));
|
|
echo $this->Html->link(__('dreamjob.opening.delete'),array('controller'=>'job', 'action'=>'openingList', '?' => array('del'=> $opening['DreamjobJobOpening']['id'])),array("class" => "btn btn-default"));
|
|
}elseif(false){ ?>
|
|
<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>
|
|
<?php }else{ ?>
|
|
<a class="btn btn-default
|
|
<?php if(isset($WORKER) and !is_array($WORKER) and count($WORKER) <= 0){ ?>disabled<?php } ?>"
|
|
href="{% url de.miconware.dreamjob.jobs.views.application_send opening.pk %}">
|
|
<?=__("dreamjob.applicate");?>
|
|
</a>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</c:if>
|