dreamjob/app/View/User/company.ctp

118 lines
4.2 KiB
Plaintext
Raw Normal View History

2015-03-31 14:49:03 +02:00
<?php
/*
*
*/
$avatar = false;
if($profil['AppUser']['avatar'])
$avatar = true;
?>
<div class="box company-header">
<?php if($avatar or $edit){ ?>
<div class="logo">
<i>
<?php
$url = $MEDIA.DS.$profil['AppUser']['avatar'];
if($edit and !isset($url))
$url = 'img/icon_company.png';
?>
<img src="<?=$url;?>"/>
<?php if($edit): ?>
<div class="imgsubtitle edit">
<?php
$link = '<span class="glyphicon glyphicon-picture"></span>'.__('dreamjob.image.edit');
echo $this->Html->link($link,array('controller' => 'user', 'action' => 'avatar_upload'),array('data-target'=>'#popup','data-toggle'=>"modal",'title'=>__('dreamjob.image.edit'),"ref"=>"eventOff",'escape'=>false));
?>
</div>
<?php endif; ?>
</i>
</div>
<?php } ?>
<h1><?=$profil['AppUser']['nickname'];?></h1>
<div class="columns">
<div class="bar">
<?php if(!empty($profil['DreamjobCompany']['website'])){?>
<p>
<?=__("dreamjob.website");?><br/>
<a href="<?=$profil['DreamjobCompany']['website'];?>" rel="external" target="_blank">
<?=$profil['DreamjobCompany']['website'];?>
</a>
</p>
<?php } ?>
<p>
<?=__("dreamjob.mail");?><br/>
<a href="mailto:<?=$profil['User']['mail'];?>"><?=__('dreamjob.mail.contact');?></a>
</p>
</div>
<div class="bar">
<p>
<?=__("dreamjob.owner");?>:<br/>
<?=$profil['DreamjobCompany']['owner'];?>
</p>
<p>
<?=__("dreamjob.branch");?>:<br/>
<?=$profil['DreamjobListBranch']['name'];?>
</p>
</div>
<div class="bar">
<h3><?=__("dreamjob.address");?></h3>
<?=$profil['DreamjobUser']['street'];?><br/>
<?=$profil['DreamjobUser']['postcode']." ".$profil['DreamjobListCity']['name'];?>
</div>
</div>
</div>
<?php
/*
<div style="height:50px;">
<form class="navbar-form" method="post" action="${PROFIL_URL}jobs/search/">
<spring:message code="dreamjob.search" var="msg_dreamjob_search"/>
<input class="form-control col-lg-9" type="text" placeholder="${msg_dreamjob_search}" style="width:75%;"/>
<button type="submit" class="btn btn-default col-lg-2 col-lg-offset-1 liveButton"><?=__('dreamjob.search');?></button>
</form>
</div>
*/
?>
<div id="tab" class="box">
<!-- tab -->
<div class="tabs-below">
<ul class="nav nav-tabs pull-right">
<li<?php if (empty($page)){?> class="active"<?php } ?>>
<?php
if(isset($id))
echo $this->Html->link(__("dreamjob.opening"),array('controller'=>'user','action'=>'profil','id'=> $id ),array('rel'=>"tab"));
else
echo $this->Html->link(__("dreamjob.opening"),array('controller'=>'user','action'=>'profil' ),array('rel'=>"tab"));
?>
</li>
<?php foreach($profil['DreamjobPageInh'] as $pag){ ?>
<li<?php if(isset($page['DreamjobPageInh']['id'])) if ($page['DreamjobPageInh']['id'] == $pag['id']){?> class="active"<?php } ?>>
<?php
if(isset($id))
echo $this->Html->link($pag['title'],array('controller'=>'user','action'=>'profil','id'=> $id,'page'=> $pag['id'] ),array('rel'=>"tab"));
else
echo $this->Html->link($pag['title'],array('controller'=>'user','action'=>'profil','page'=> $pag['id'] ),array('rel'=>"tab"));
?>
<?php }?>
<?php if(isset($COMPANY) and $COMPANY['AppUser']['id']==$profil['AppUser']['id']){ ?>
<li><?=$this->Html->link('<span class="glyphicon glyphicon-plus"></span>&nbsp;'.__('dreamjob.pages.company.new'),array('controller'=>'user','action'=>'settings_pageInh'),array('escape'=>false));?></li>
<?php } ?>
</ul>
</div>
<?php
if(!empty($page)){
echo $this->element('user_page');
}else{
?>
<h3><?=__("dreamjob.opening");?></h3>
<?php
foreach($openings as $opening){
echo $this->element('job_opening_item',array('opening' => $opening));
}
}
?>
<!-- /tab -->
</div>