"7") { include("includes/device-edit.inc.php"); } } $device = mysql_fetch_array(mysql_query("SELECT * FROM `devices` WHERE `device_id` = '$_GET[id]'")); $descr = $device['purpose']; if($updated && $update_message) { print_message($update_message); } elseif ($update_message) { print_error($update_message); } if($device['type'] == 'server') { $server_select = "selected"; } if($device['type'] == 'network') { $network_select = "selected"; } if($device['type'] == 'firewall') { $firewall_select = "selected"; } if($device['type'] == 'workstation') { $workstation_select = "selected"; } if($device['type'] == 'printer') { $printer_select = "selected"; } if($device['type'] == 'other' || $device['type'] == 'unknown') { $other_select = "selected"; } echo("
Edit Device
|