This commit is contained in:
Martin Müller 2014-05-01 11:07:25 +02:00
parent d80bd43823
commit 450ae190b5
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,7 @@
<?php
echo $this->Html->link(__('dreamjob.regisration.active.link'),array('controller' => 'registration', 'action' => 'active','code'=>$key,
$url = $this->Html->url(array('controller' => 'registration', 'action' => 'active','code'=>$key,
'?'=>array('mail'=>$data['User']['mail']),'full_base' => true) );
echo $this->Html->link($url,array('controller' => 'registration', 'action' => 'active','code'=>$key,
'?'=>array('mail'=>$data['User']['mail']),'full_base' => true) );
?>

View File

@ -28,7 +28,15 @@ $tcpdf->AddPage();
$tcpdf->SetY(35);
$tcpdf->SetTextColor(0, 0, 0);
$tcpdf->SetFont($tcpdf->font);
$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'],0,40,0,140,'','','','',300,'L');
$url=WWW_ROOT.DS.'img'.DS'icon_user.png';
if($WORKER['AppUser']['take_systemwide']){
if($WORKER['User']['avatar'])
$url = WWW_ROOT.DS.'uploads'.DS.$WORKER['User']['avatar'];
}else
if($profil['AppUser']['avatar'])
$url = WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'];
$tcpdf->Image($url,0,40,0,140,'','','','',300,'L');
$tcpdf->SetY(185);
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4);
$tcpdf->Cell(0,0, __('dreamjob.application.mappe'), 0,1,'L');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB