Ejemplo n.º 1
0
     break;
 case "allgroups":
 case "alertgroups":
     $c = 0;
     if ($usecols) {
         $ob[] = "<table border=0>";
     }
     foreach ($item['detail'] as $group) {
         if ($usecols) {
             if ($c == 0) {
                 $ob[] = "<tr>";
             }
             $ob[] = "<td align=left valign=top>";
         }
         if ($item['isize'] == 1) {
             $output = large_group($group);
         } else {
             $output = small_group($group);
         }
         foreach ($output as $line) {
             $ob[] = $line;
         }
         if ($usecols) {
             $ob[] = "</td>";
             $c++;
             if ($c >= $colcount) {
                 $ob[] = "</tr>";
                 $ob[] = "<tr><td colspan=" . $colcount . ">&nbsp;</td></tr>";
                 $c = 0;
             }
         } else {
Ejemplo n.º 2
0
				}
			if (($usecols) && ($c<3)) $ob[]="</tr>";
			if ($usecols) $ob[]="</table>";
			break;
			
		case "allgroups": case "alertgroups":
			$c=0;
			if ($usecols) $ob[]="<table border=0>";
			foreach($item['detail'] as $group)
				{
				if ($usecols)
					{
					if ($c==0) $ob[]="<tr>";
					$ob[]="<td align=left valign=top>";
					}
				if ($item['isize']==1) $output=large_group($group);
				else $output=small_group($group);
				foreach($output as $line) $ob[]=$line;
				
				if ($usecols)
					{
					$ob[]="</td>";
					$c++;
					if ($c>=$colcount)
						{
						$ob[]="</tr>";
						$ob[]="<tr><td colspan=".$colcount.">&nbsp;</td></tr>";
						$c=0;
						}
					}
				else $ob[]="<br>";