예제 #1
0
         echo "</tr>";
     }
     echo "</table>";
     $NATS->DB->Free($r);
 } else {
     if ($style == "groups") {
         $q = "SELECT * FROM fngroup ORDER BY weight ASC";
         $r = $NATS->DB->Query($q);
         echo "<table border=0>";
         $a = 0;
         while ($row = $NATS->DB->Fetch_Array($r)) {
             if ($a == 0) {
                 echo "<tr>";
             }
             echo "<td>";
             ng_big($row['groupid'], $row['groupname'], $row['groupdesc'], $row['groupicon'], $monpopup);
             echo "</td>";
             $a++;
             if ($a == 2) {
                 $a = 0;
                 echo "</tr>";
             }
         }
         if ($a > 0) {
             echo "</tr>";
         }
         echo "</table>";
         $NATS->DB->Free($r);
     } else {
         if ($style == "nodes") {
             $q = "SELECT * FROM fnnode ORDER BY alertlevel DESC, weight ASC";
예제 #2
0
echo "</table>";
$NATS->DB->Free($r);
}

else if ($style=="groups")
{
$q="SELECT * FROM fngroup ORDER BY weight ASC";
$r=$NATS->DB->Query($q);

echo "<table border=0>";
$a=0;
while ($row=$NATS->DB->Fetch_Array($r))
	{
	if ($a==0) echo "<tr>";
	echo "<td>";
	ng_big($row['groupid'],$row['groupname'],$row['groupdesc'],$row['groupicon']);
	echo "</td>";
	$a++;
	if ($a==2)
		{
		$a=0;
		echo "</tr>";
		}
	}
if ($a>0) echo "</tr>";
echo "</table>";


$NATS->DB->Free($r);
}