2014-02-18 12:10:29 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
$avatar = false;
|
|
|
|
if($profil['AppUser']['take_systemwide']){
|
2014-02-19 00:02:17 +01:00
|
|
|
if($profil['User']['avatar'])
|
2014-02-18 12:10:29 +01:00
|
|
|
$avatar = true;
|
|
|
|
}else{
|
|
|
|
if($profil['AppUser']['avatar'])
|
|
|
|
$avatar = true;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="box-extra">
|
|
|
|
<?php if($avatar){ ?>
|
|
|
|
<div class="box-extra-left infofield">
|
|
|
|
<div class="box">
|
|
|
|
<img src="<?php
|
|
|
|
if($profil['AppUser']['take_systemwide']){
|
2014-02-19 00:02:17 +01:00
|
|
|
echo $MEDIA_URL.$profil['User']['avatar'];
|
2014-02-18 12:10:29 +01:00
|
|
|
}else{
|
|
|
|
echo $MEDIA_URL.$profil['AppUser']['avatar'];
|
|
|
|
}
|
|
|
|
?>"/>
|
|
|
|
</div>
|
|
|
|
<?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/>
|
2014-02-19 00:02:17 +01:00
|
|
|
<a href="mailto:<?=$profil['User']['mail'];?>">
|
|
|
|
<?=$profil['User']['mail'];?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<br/>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<div class="box">
|
|
|
|
|
|
|
|
<h1><?=$profil['AppUser']['nickname']." ".$profil['DreamjobCompany']['corporateform'];?></h1>
|
|
|
|
<div class="columns">
|
|
|
|
<?php if(!$avatar){ ?>
|
|
|
|
<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/>
|
2014-02-19 00:02:17 +01:00
|
|
|
<a href="mailto:<?=$profil['User']['mail'];?>">
|
|
|
|
<?=$profil['User']['mail'];?>
|
2014-02-18 12:10:29 +01:00
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<div class="bar">
|
|
|
|
<p>
|
|
|
|
<?=__("dreamjob.owner");?>:<br/>
|
|
|
|
<?=$profil['DreamjobCompany']['owner'];?>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?=__("dreamjob.branch");?>:<br/>
|
|
|
|
<?=$profil['DreamjobCompany']['branch'];?>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="bar">
|
|
|
|
<h3><?=__("dreamjob.address");?></h3>
|
|
|
|
<?=$profil['DreamjobUser']['street'];?><br/>
|
|
|
|
<?=$profil['DreamjobUser']['postcode']." ".$profil['DreamjobUser']['city'];?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<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 }?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if(!empty($edit)){
|
|
|
|
?>
|
|
|
|
Bearbeiten.
|
|
|
|
<?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>
|