* @package report * @version $Id$ * @link http://www.zentao.net */ ?>
> |
---|
$reportFields) { $showed[$i] = false; foreach($reportFields as $reportField) { if(isset($headerNames[$i])) { foreach ($headerNames[$i] as $key => $headerName) { if(!in_array($key, $reportFields)) unset($headerNames[$i][$key]); // If the header name does not have a header, remove. } foreach ($reportFields as $key => $reportFid) { if(!isset($headerNames[$i][$reportFid])) $headerNames[$i][$key]=$reportFid; // If the header cannot find header name,add head. } foreach($headerNames[$i] as $key => $headerName) { echo " | " . (empty($headerName) ? $lang->report->null : $headerName) . ' | '; $percentKey = (empty($key) ? 'null' : $key) . 'Percent'; if(isset($condition['percent'][$i]) and isset($condition['showAlone'][$i]) and $condition['contrast'][$i] != 'crystalTotal') echo "" . (isset($sqlLangs[$percentKey][$clientLang]) ? $sqlLangs[$percentKey][$clientLang] : $lang->crystal->percentAB) . " | "; $dataCols[$i][] = $key; } $showed[$i] = true; } elseif(isset($condition['isUser']['reportField'][$i])) { $user = zget($users, $reportField, $reportField); echo "" . (empty($user) ? $lang->report->null : $user) . ' | '; $dataCols[$i][] = $reportField; } else { echo "" . zget($fields, $reportField, $reportField) . ' | '; $dataCols[$i][] = $reportField; } if($showed[$i]) break; $percentKey = $reportField . 'Percent'; if(isset($condition['percent'][$i]) and isset($condition['showAlone'][$i]) and $condition['contrast'][$i] != 'crystalTotal') echo "" . (isset($sqlLangs[$percentKey][$clientLang]) ? $sqlLangs[$percentKey][$clientLang] : $lang->crystal->percentAB) . " | "; } if(isset($condition['reportTotal'][$i])) echo "{$lang->crystal->total} | "; $percentKey = $reportField . 'Percent'; if(isset($condition['percent'][$i]) and isset($condition['showAlone'][$i]) and $condition['contrast'][$i] == 'crystalTotal') echo "" . (isset($sqlLangs[$percentKey][$clientLang]) ? $sqlLangs[$percentKey][$clientLang] : $lang->crystal->percentAB) . " | "; } ?>|
---|---|---|---|---|---|---|---|---|
1 and $methodName != 'show') echo 'rowspan=' . count($group1Data)?> title=''> report->null : $group1Name;?> | report->null : $group2Name;?> | report->getCellData($data, $dataCols, $condition, $initStaticData); $allTotal = $data['allTotal']; $cellDataList = $data['cellData']; foreach($cellDataList as $i => $cellData) echo '' . (empty($cellData) ? 0 : $cellData) . ' | '; ?>||||||
report->null : $group1Name;?> | report->getCellData($data, $dataCols, $condition, $initStaticData); $allTotal = $data['allTotal']; $cellDataList = $data['cellData']; foreach($cellDataList as $i => $cellData) echo '' . (empty($cellData) ? 0 : $cellData) . ' | '; ?>|||||||
>crystal->total?> |