dreamjob/app/View/Elements/user_worker_header.ctp

51 lines
1.5 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'];?>
<c:out value="${profil.iam}"/>
</p>
2014-04-13 20:06:35 +02:00
<?php if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0){ ?>
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'];?>">
<?=$profil['User']['mail'];?>
2014-02-18 12:10:29 +01:00
</a>
2014-04-13 20:06:35 +02:00
<?php } ?>
2014-02-18 12:10:29 +01:00
</div>
</div>