44 lines
1.9 KiB
PHP
44 lines
1.9 KiB
PHP
<?php
|
|
/*
|
|
*
|
|
*/
|
|
?>
|
|
<div class="columns">
|
|
<div class="bar avatar">
|
|
<?php
|
|
$url='/img/icon_user.png';
|
|
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><?=$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) or $isLoggedin and !empty($COMPANY['Pro']['worker_mail'])){
|
|
?>
|
|
<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>
|