This commit is contained in:
Martin Müller 2014-05-01 11:58:17 +02:00
parent 0ef556778c
commit 121830f5ae
2 changed files with 11 additions and 2 deletions

View File

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

View File

@ -29,7 +29,7 @@ $tcpdf->SetY(35);
$tcpdf->SetTextColor(0, 0, 0); $tcpdf->SetTextColor(0, 0, 0);
$tcpdf->SetFont($tcpdf->font); $tcpdf->SetFont($tcpdf->font);
$url=WWW_ROOT.DS.'img'.DS'icon_user.png'; $url=WWW_ROOT.DS.'img'.DS.'icon_user.png';
if($WORKER['AppUser']['take_systemwide']){ if($WORKER['AppUser']['take_systemwide']){
if($WORKER['User']['avatar']) if($WORKER['User']['avatar'])
$url = WWW_ROOT.DS.'uploads'.DS.$WORKER['User']['avatar']; $url = WWW_ROOT.DS.'uploads'.DS.$WORKER['User']['avatar'];