예제 #1
0
파일: empview.php 프로젝트: noikiy/owaspbwa
    ?>
.png" width="8" height="10" border="0" alt="img" style="vertical-align: middle" />
							</td>
						<?php 
}
?>
					</tr>
					<?php 
if (isset($emplist) && $emplist != '') {
    $compStructObj = new CompStruct();
    $compStructObj->buildAllWorkStations();
    for ($j = 0; $j < count($emplist); $j++) {
        $descField = $emplist[$j][1];
        $subDivision = "-";
        if (isset($emplist[$j][3]) && !empty($emplist[$j][3])) {
            $subDivision = $compStructObj->fetchHierarchString($emplist[$j][3]);
        }
        if ($sysConst->viewDescLen <= strlen($descField)) {
            $descField = substr($descField, 0, $sysConst->viewDescLen);
            $descField .= "....";
        }
        ?>
								<tr valign="top">
								<?php 
        if (!($j % 2)) {
            $cssClass = 'odd';
        } else {
            $cssClass = 'even';
        }
        if ($_GET['reqcode'] == 'EMP') {
            ?>
예제 #2
0
파일: report.php 프로젝트: noikiy/owaspbwa
 echo "<li style='height: {$rowHeight}%' >";
 if ($repDetails[$i][$j][$k] != '') {
     // Convert date fields
     if ($dateFields[$j]) {
         $repDetails[$i][$j][$k] = LocaleUtil::getInstance()->formatDate($repDetails[$i][$j][$k]);
     }
     if ($contractDate && $contractDate == $j) {
         $dates = explode(" - ", $repDetails[$i][$j][$k]);
         if (count($dates) == 2) {
             $startDate = LocaleUtil::getInstance()->formatDate($dates[0]);
             $endDate = LocaleUtil::getInstance()->formatDate($dates[1]);
             $repDetails[$i][$j][$k] = $startDate . " - " . $endDate;
         }
     }
     if ($subDivision && $subDivision == $j) {
         echo $compStructObj->fetchHierarchString($repDetails[$i][$j][$k]);
     } else {
         if ($reportingMethod && $reportingMethod == $j) {
             echo $lang_Template_rep_ReportingMethod[$repDetails[$i][$j][$k]];
         } else {
             if ($charWidth > 0) {
                 echo wordwrap($repDetails[$i][$j][$k], $charWidth, "<br>", 1);
             } else {
                 echo $repDetails[$i][$j][$k];
             }
         }
     }
     $last = $repDetails[$i][$j][$k];
 } else {
     echo '―';
 }