53 lines
2.2 KiB
PHP
53 lines
2.2 KiB
PHP
<?php
|
|
/*
|
|
*
|
|
*/
|
|
?>
|
|
<div class="columns">
|
|
<div class="bar avatar">
|
|
<?php
|
|
$url='/img/icon_user.png';
|
|
if($profil['AppUser']['take_systemwide']){
|
|
if($profil['User']['avatar'])
|
|
$url = $MEDIA.DS.$profil['User']['avatar'];
|
|
}else
|
|
if($profil['AppUser']['avatar'])
|
|
$url = $MEDIA.DS.$profil['AppUser']['avatar'];
|
|
|
|
?>
|
|
<img src="<?=$url;?>"/>
|
|
<?php if(!empty($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; ?>
|
|
</div>
|
|
<div class="bar">
|
|
<h1>
|
|
<?php
|
|
if($profil['AppUser']['take_systemwide'])
|
|
echo $profil['User']['first_name'].' '.$profil['User']['last_name'];
|
|
else
|
|
echo $profil['AppUser']['first_name'].' '.$profil['AppUser']['last_name'];
|
|
?>
|
|
</h1>
|
|
<br/>
|
|
<p>
|
|
<?=__("dreamjob.iam");?>:<br/>
|
|
<?=$profil['DreamjobWorker']['iam'];?>
|
|
</p>
|
|
<?php if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and !isset($application)){ ?>
|
|
<h3><?=__("dreamjob.mail");?></h3>
|
|
<a href="mailto:<?=$profil['User']['mail'];?>">
|
|
<?=__('dreamjob.mail.contact');?>
|
|
</a>
|
|
<?=$this->Html->link('<span class="glyphicon glyphicon-print"></span> '.__('dreamjob.profil.mappePDF'),array('controller'=>'pdf','action'=>'profilGetPdf'),array('class'=>'btn btn-default btn-sm','escape'=>false,'style'=>'bottom:10px;right:15px;position:absolute;','rel'=>'external','target'=>'_blank'));?>
|
|
<?php }elseif(isset($application)){ ?>
|
|
<?=$this->Html->link('<span class="glyphicon glyphicon-print"></span> '.__('dreamjob.application.mappePDF'),array('controller'=>'pdf','action'=>'applicationGetPdf','id'=>$application['DreamjobJobApplication']['id']),array('class'=>'btn btn-default btn-sm','escape'=>false,'style'=>'bottom:10px;right:15px;position:absolute;','rel'=>'external','target'=>'_blank'));?>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|