2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-04 10:15:07 +00:00
|
|
|
|
|
|
|
$hostname = gethostbyid($_GET[id]);
|
|
|
|
|
2010-02-21 19:32:08 +00:00
|
|
|
if(mysql_result(mysql_query("select count(service_id) from services WHERE device_id = '$_GET[id]'"), 0) > '0') {
|
2007-04-04 10:15:07 +00:00
|
|
|
|
|
|
|
echo("<div style='margin: 5px;'><table cellpadding=7 border=0 cellspacing=0 width=100%>");
|
|
|
|
$i = "1";
|
2010-02-21 19:32:08 +00:00
|
|
|
$service_query = mysql_query("select * from services WHERE device_id = '$_GET[id]' ORDER BY service_type");
|
2007-04-04 10:15:07 +00:00
|
|
|
while($service = mysql_fetch_array($service_query)) {
|
|
|
|
|
|
|
|
include("includes/print-service.inc");
|
|
|
|
}
|
|
|
|
echo("</table></div>");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
echo("No Services");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|