dreamjob/app/View/Elements/job_company_item.ctp

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-04-16 18:24:34 +02:00
<?php
/*
*
*/
$avatar = false;
$url = '';
if($company['AppUser']['take_systemwide']){
if($company['User']['avatar']){
$url = $MEDIA.DS.$company['User']['avatar'];
$avatar = true;
}
}else{
if($company['AppUser']['avatar']){
$url = $MEDIA.DS.$company['AppUser']['avatar'];
$avatar = true;
}
}
?>
<div class="openingitem">
<h3><?=$company['AppUser']['nickname']." ".$company['DreamjobCompany']['corporateform'];?></h3>
<div>
<?php if($avatar){ ?>
<div class="icon">
<div>
<img src="<?=$url;?>"/>
</div>
</div>
<?php
}else{
?>
<div class="noicon-title">
<span><?=$company['AppUser']['nickname']." ".$company['DreamjobCompany']['corporateform'];?></span>
</div>
<?php } ?>
<div class="left">
<span><?=__("dreamjob.branch");?>: <?=$company['DreamjobListBranch']['name'];?></span>
2014-04-22 16:01:00 +02:00
<span><?=__("dreamjob.city");?>: <?=$company['DreamjobListCity']['name'];?></span>
2014-04-16 18:24:34 +02:00
</div>
<div class="right">
<div class="btn-group-vertical">
<?=$this->Html->link(__('dreamjob.company.detail'),array('controller'=>'user', 'action'=>'profil', 'id'=> $company['AppUser']['id']),array("class" => "btn btn-default"));?>
</div>
</div>
</div>
</div>