</fieldset> <div class="table"> <div> <div><label for="Notes">', __("Notes"), '</label></div> <div><textarea name="Notes" id="Notes" cols="40" rows="8">', $dev->Notes, '</textarea></div> </div> </div> <!-- END div.table --> </div><!-- END div.left --> <div class="right"> <fieldset> <legend>', __("Physical Infrastructure"), '</legend> <div class="table"> <div> <div><label for="CabinetID">', __("Cabinet"), '</label></div>'; if ($dev->ParentDevice == 0) { print "\t\t\t<div>" . $cab->GetCabinetSelectList() . "</div>\n"; } else { print "\t\t\t<div>{$cab->Location}<input type=\"hidden\" name=\"CabinetID\" value={$cab->CabinetID}></div>\r\n\t\t</div>\r\n\t\t<div>\r\n\t\t\t<div><label for=\"ParentDevice\">" . __("Parent Device") . "</label></div>\r\n\t\t\t<div><select name=\"ParentDevice\">\n"; foreach ($parentList as $parDev) { if ($pDev->DeviceID == $parDev->DeviceID) { $selected = " selected"; } else { $selected = ""; } print "\t\t\t\t<option value=\"{$parDev->DeviceID}\"{$selected}>{$parDev->Label}</option>\n"; } print "\t\t\t</select></div>\n"; } echo ' </div> <div> <div><label for="TemplateID">', __("Device Class"), '</label></div>
<option value="Chassis"' . ($req->DeviceType == "Chassis" ? ' selected' : '') . '>', __("Chassis"), '</option> <option value="Patch Panel"' . ($req->DeviceType == "Patch Panel" ? ' selected' : '') . '>', __("Patch Panel"), '</option> <option value="Physical Infrastructure"' . ($req->DeviceType == "Physical Infrastructure" ? ' selected' : '') . '>', __("Physical Infrastructure"), '</option> </select> </div> </div> <div> <div><label for="currentlocation">', __("Current Location"), '</label></div> <div><input type="text" name="currentlocation" id="currentlocation" class="validate[required]" size="50" value="', $req->CurrentLocation, '"></div> </div> <div> <div><label for="specialinstructions">', __("Special Instructions"), '</label></div> <div><textarea name="specialinstructions" id="specialinstructions" cols=50 rows=5>', $req->SpecialInstructions, '</textarea></div> </div>'; if ($person->RackAdmin && $req->RequestID > 0) { echo '<div><div><label for="CabinetID">', __("Select Rack Location"), ':</label></div><div>' . $cab->GetCabinetSelectList() . ' <label for="position">', __("Position"), ':</label> <input type="text" name="position" id="position" size=5></div></div>'; } ?> <div class="caption"> <?php if ($person->RackRequest || $person->RackAdmin) { if ($req->RequestID > 0) { if ($person->RackAdmin || $person->UserID == $contact->UserID) { echo '<button type="submit" name="action" value="Update Request">', __("Update Request"), '</button>'; echo '<button type="submit" name="action" value="Delete Request">', __("Delete Request"), '</button>'; } if ($person->RackAdmin) { echo '<button type="submit" name="action" value="Move to Rack">', __("Move to Rack"), '</button>'; } } else { echo '<button type="submit" name="action" value="Create">', __("Create"), '</button>';