dreamjob/app/View/Elements/user_worker_header.ctp

53 lines
2.2 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-04-15 19:47:57 +02:00
if($profil['AppUser']['take_systemwide'])
if($profil['User']['avatar'])
$url = $MEDIA.DS.$profil['User']['avatar'];
2014-02-18 12:10:29 +01:00
else
2014-04-15 19:47:57 +02:00
if($profil['AppUser']['avatar'])
$url = $MEDIA.DS.$profil['AppUser']['avatar'];
?>
<img src="<?=$url;?>"/>
<?php if($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">
2014-02-18 12:10:29 +01:00
<h1>
<?php
if($profil['AppUser']['take_systemwide'])
2014-02-19 00:02:17 +01:00
echo $profil['User']['first_name'].' '.$profil['User']['last_name'];
2014-02-18 12:10:29 +01:00
else
echo $profil['AppUser']['first_name'].' '.$profil['AppUser']['last_name'];
?>
</h1>
<br/>
<p>
<?=__("dreamjob.iam");?>:<br/>
<?=$profil['DreamjobWorker']['iam'];?>
</p>
2014-04-23 17:18:47 +02:00
<?php if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and !isset($application)){ ?>
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>
</div>