index c50453a8ee75fee3228fa7cb581af8febb00310b..cf2366ecec565f3d069b601d2367d514ac9b7e29 100644 (file)
}
// Render defined department columns, fill the rest with some stuff
+ $rest= $this->numColumns - 1;
foreach ($this->xmlData['table']['department'] as $index => $config) {
- $result.="<td ".$this->colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row)."</td>";
+ $colspan= 1;
+ if (isset($config['span'])){
+ $colspan= $config['span'];
+ }
+ $result.="<td colspan='$colspan' ".$this->colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row)."</td>";
+ $rest-= $colspan;
}
- $last= count($this->xmlData['table']['department']) + 1;
- $rest= $this->numColumns - $last;
+
+ // Fill remaining cols with nothing
+ $last= $this->numColumns - $rest;
for ($i= 0; $i<$rest; $i++){
$result.= "<td ".$this->colprops[$last+$i-1]." class='list1'> </td>";
}
}
// Need to fill the list if it's not full (nobody knows why this is 22 ;-))
- $emptyListStyle= (count($this->entries) + count($deps) == 0)?"border:0;":"";
- if (count($this->entries) + count($deps) < 22) {
+ $emptyListStyle= (count($this->entries) + $deps == 0)?"border:0;":"";
+ if ((count($this->entries) + $deps) < 22) {
$result.= "<tr>";
for ($i= 0; $i<$this->numColumns; $i++) {
if ($i == 0) {
global $config;
$ui= get_userinfo();
+ // Reset object counter
+ $this->objectTypeCount= array();
+
// Do not do anything if this is not our PID
if(isset($_REQUEST['PID']) && $_REQUEST['PID'] != $this->pid) {
return;