dreamjob/app/View/Elements/user_worker_header.ctp

44 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-02-18 12:10:29 +01:00
<?php
/*
*
*/
?>
<div class="columns">
2014-04-15 19:47:57 +02:00
<div class="bar avatar">
<?php
2014-04-16 18:24:34 +02:00
$url='/img/icon_user.png';
2014-11-18 02:17:46 +01:00
if($profil['AppUser']['avatar'])
$url = $MEDIA.DS.$profil['AppUser']['avatar'];
2014-04-15 19:47:57 +02:00
?>
<img src="<?=$url;?>"/>
2014-04-29 23:19:11 +02:00
<?php if(!empty($edit)): ?>
2014-04-15 19:47:57 +02:00
<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">
2014-11-18 02:17:46 +01:00
<h1><?=$profil['AppUser']['first_name'].' '.$profil['AppUser']['last_name'];?></h1>
2014-02-18 12:10:29 +01:00
<br/>
<p>
<?=__("dreamjob.iam");?>:<br/>
<?=$profil['DreamjobWorker']['iam'];?>
</p>
2014-10-12 19:56:10 +02:00
<?php
2014-11-18 02:17:46 +01:00
if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and !isset($application) or $isLoggedin and !empty($COMPANY['Pro']['worker_mail'])){
2014-10-12 19:56:10 +02:00
?>
2014-02-18 12:10:29 +01:00
<h3><?=__("dreamjob.mail");?></h3>
2014-02-19 00:02:17 +01:00
<a href="mailto:<?=$profil['User']['mail'];?>">
2014-04-23 17:18:47 +02:00
<?=__('dreamjob.mail.contact');?>
2014-02-18 12:10:29 +01:00
</a>
2014-04-23 19:23:23 +02:00
<?=$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'));?>
2014-04-23 17:18:47 +02:00
<?php }elseif(isset($application)){ ?>
2014-04-23 19:23:23 +02:00
<?=$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'));?>
2014-04-13 20:06:35 +02:00
<?php } ?>
2014-02-18 12:10:29 +01:00
</div>
2014-04-29 23:19:11 +02:00
</div>