本文整理汇总了PHP中EmployeeService::getPicture方法的典型用法代码示例。如果您正苦于以下问题:PHP EmployeeService::getPicture方法的具体用法?PHP EmployeeService::getPicture怎么用?PHP EmployeeService::getPicture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EmployeeService
的用法示例。
在下文中一共展示了EmployeeService::getPicture方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: EmployeeService
#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">