示例#1
0
     break;
 case "allnodes":
 case "alertnodes":
     $c = 0;
     if ($usecols) {
         $ob[] = "<table border=0>";
     }
     foreach ($item['detail'] as $node) {
         if ($usecols) {
             if ($c == 0) {
                 $ob[] = "<tr>";
             }
             $ob[] = "<td align=left valign=top>";
         }
         if ($item['isize'] == 1) {
             $output = large_node($node);
         } else {
             $output = small_node($node);
         }
         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 {
示例#2
0
文件: view.php 项目: remap/ndn-status
			if ($item['isize']>0) $output=large_alerts($item);
			else $output=small_alerts($item);
			foreach($output as $line) $ob[]=$line;
			break;
			
		case "allnodes": case "alertnodes":
			$c=0;
			if ($usecols) $ob[]="<table border=0>";
			foreach($item['detail'] as $node)
				{
				if ($usecols)
					{
					if ($c==0) $ob[]="<tr>";
					$ob[]="<td align=left valign=top>";
					}
				if ($item['isize']==1) $output=large_node($node);
				else $output=small_node($node);
				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>";