Esempio n. 1
0
    #imageHint {
        font-size:10px;
        color:#999999;
        padding-left:8px;
    }
</style>
<?php 
$empMode = "EMP";
if ($empNumber == $_SESSION['empID']) {
    $empMode = "ESS";
}
// Old links require empNumber padded with 0's
$idLength = OrangeConfig::getInstance()->getSysConf()->getEmployeeIdLength();
$paddedEmpNumber = str_pad($empNumber, $idLength, "0", STR_PAD_LEFT);
$employeeService = new EmployeeService();
$empPicture = $employeeService->getPicture($empNumber);
$width = '150';
$height = '180';
if (!empty($empPicture)) {
    $width = $empPicture->width;
    $height = $empPicture->height;
}
?>

<form id="frmEmp" action=""></form>
<div id="pimleftmenu">
    <?php 
include_partial('photo', array('empNumber' => $empNumber, 'width' => $width, 'height' => $height, 'editMode' => isset($editPhotoMode) ? $editPhotoMode : false, 'fullName' => htmlspecialchars($form->fullName)));
?>
    <ul class="pimleftmenu">
        <li class="l1 parent">