Server Added Successfully"; PRINT "
"; } if ($withtemplate == 1) { $templID = $ID; $query = "SELECT * FROM templates WHERE (ID = $ID)"; $sth = $adb->prepare($query); if($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $templname = $result["templname"]; include("../include/table.inc"); $iface = $result["iface"]; } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } } PRINT "Use this form to add a server from template \"$templname\":
"; PRINT ""; include("../include/server.php"); PRINT ""; PRINT ""; PRINT "
"; $new_date = date("Y-m-d H:i:s"); PRINT "New Computer from \"$templname\""; PRINT "
Network Interface: "; Dropdown_value("dropdown_iface", "iface", $iface); PRINT " Add a port of this type.
Added On: $new_date
"; PRINT "
"; ?>