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 "All fields are required.

"; PRINT ""; PRINT "\n"; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT ""; PRINT "
"; $new_date = date("Y-m-d H:i:s"); PRINT "New Computer from \"$templname\""; PRINT "
Name:
Type:
"; Dropdown_value("dropdown_type", "stype", $stype); PRINT "
"; PRINT "
Location:
"; Dropdown_value("dropdown_locations", "location", $location); PRINT "
Geo:
"; Dropdown_value("locations", "geo", $geo); PRINT "
OS:
"; Dropdown_value("dropdown_os", "os", $os); PRINT "
Version:
Patch/SP:
CPU:
"; Dropdown_value("dropdown_processor", "processor", $processor); PRINT "
Speed (#):
"; PRINT ""; PRINT "
H/W Serial Number:
Remote Access:
Network Card Brand/Type:
"; Dropdown_value("dropdown_network", "network", $network); PRINT "
IP Address:
Description:
ITC Contact:
"; Dropdown_value_ext("contacts", "contact_i", $contact_i, $ID, 1); PRINT "
VGR Contact Person / Number:
Owner:
"; Dropdown_value_ext("contacts_co", "owner", $owner, $ID, 0); PRINT "
"; if($owner) { PRINT "Contact:
"; PRINT ""; Dropdown_value_ext("contacts_co", "owner_contact", $owner_contact, $ID, "$owner"); } PRINT "
"; PRINT "
Admin / Number:
CR Mgr / Number:
Delivery Mgr / Number:
Network Interface: "; Dropdown_value("dropdown_iface", "iface", $iface); PRINT " Add a port of this type.
"; PRINT "
"; ?>