bild ansehen bug ... bei no systemwide

This commit is contained in:
2014-04-27 13:24:25 +02:00
parent 11bfda4758
commit fc43b54982
2 changed files with 6 additions and 6 deletions

View File

@ -7,10 +7,10 @@
<div class="bar avatar">
<?php
$url='/img/icon_user.png';
if($profil['AppUser']['take_systemwide'])
if($profil['AppUser']['take_systemwide']){
if($profil['User']['avatar'])
$url = $MEDIA.DS.$profil['User']['avatar'];
else
}else
if($profil['AppUser']['avatar'])
$url = $MEDIA.DS.$profil['AppUser']['avatar'];
@ -49,4 +49,4 @@
<?=$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'));?>
<?php } ?>
</div>
</div>
</div>

View File

@ -26,10 +26,10 @@
<div class="icon">
<?php
$url='/img/icon_user.png';
if($profil[$AppUser]['take_systemwide'])
if($profil[$AppUser]['take_systemwide']){
if($profil[$User]['avatar'])
$url = $MEDIA.DS.$profil[$User]['avatar'];
else
}else
if($profil[$AppUser]['avatar'])
$url = $MEDIA.DS.$profil[$AppUser]['avatar'];
@ -75,4 +75,4 @@
?>
</div>
</div>
</div>
</div>