2014-02-18 12:10:29 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
$avatar = false;
|
2014-11-18 02:17:46 +01:00
|
|
|
if($profil['AppUser']['avatar'])
|
2014-02-18 12:10:29 +01:00
|
|
|
$avatar = true;
|
|
|
|
?>
|
2015-01-18 17:56:28 +01:00
|
|
|
<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;?>"/>
|
2014-04-15 21:43:23 +02:00
|
|
|
<?php if($edit): ?>
|
2014-04-15 19:47:57 +02:00
|
|
|
<div class="imgsubtitle edit">
|
|
|
|
<?php
|
2015-01-18 17:56:28 +01:00
|
|
|
$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));
|
2014-04-15 19:47:57 +02:00
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2015-01-18 17:56:28 +01:00
|
|
|
</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 } ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
<p>
|
2015-01-18 17:56:28 +01:00
|
|
|
<?=__("dreamjob.mail");?><br/>
|
|
|
|
<a href="mailto:<?=$profil['User']['mail'];?>"><?=__('dreamjob.mail.contact');?></a>
|
2014-02-18 12:10:29 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2015-01-18 17:56:28 +01:00
|
|
|
<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'];?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-04-23 14:31:01 +02:00
|
|
|
<?php
|
|
|
|
/*
|
2014-02-18 12:10:29 +01:00
|
|
|
<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>
|
2014-04-23 14:31:01 +02:00
|
|
|
*/
|
|
|
|
?>
|
2014-02-18 12:10:29 +01:00
|
|
|
<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 }?>
|
2014-09-23 15:53:51 +02:00
|
|
|
<?php if(isset($COMPANY) and $COMPANY['AppUser']['id']==$profil['AppUser']['id']){ ?>
|
2014-09-23 16:13:22 +02:00
|
|
|
<li><?=$this->Html->link('<span class="glyphicon glyphicon-plus"></span> '.__('dreamjob.pages.company.new'),array('controller'=>'user','action'=>'settings_pageInh'),array('escape'=>false));?></li>
|
2014-09-23 15:53:51 +02:00
|
|
|
<?php } ?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</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>
|