Manage Images\n"; print "
\n"; } //////////////////////////////////////////////////////////////////////////////// /// /// \fn viewImages() /// /// \brief prints a page to view image information /// //////////////////////////////////////////////////////////////////////////////// function viewImages() { global $user, $mode; $showdeleted = getContinuationVar("showdeleted", 0); $deleted = getContinuationVar("deleted"); $details = processInputVar("details", ARG_NUMERIC); $showimageupdated = getContinuationVar('showimageupdated', 0); if($showdeleted) { $images = getImages(1); $resources = getUserResources(array("imageAdmin"), array("administer"), 0, 1); } else { $images = getImages(); $resources = getUserResources(array("imageAdmin"), array("administer")); } $userImageIDs = array_keys($resources["image"]); $platforms = getPlatforms(); $oslist = getOSList(); print "\n"; print " | Name | \n";
print " Owner | \n"; print "Platform | \n"; print "OS | \n";
print " Estimated Reload Time (min) | \n"; if($details) { print "Minimum RAM (MB) | \n"; print "Minimum Num of Processors | \n"; print "Minimum Processor Speed (MHz) | \n"; print "Minimum Network Speed (Mbps) | \n"; print "Maximum Concurrent Usage | \n"; } if($showdeleted) { print "Deleted | \n"; } print "|
---|---|---|---|---|---|---|---|---|---|---|---|---|
\n"; print " \n"; print " | \n"; print "" . $images[$id]["prettyname"] . " | \n"; print "" . $images[$id]["owner"] . " | \n"; print "" . $images[$id]["platform"] . " | \n"; print "" . $oslist[$images[$id]["osid"]]["prettyname"] . " | \n"; print "" . $images[$id]["reloadtime"] . " | \n"; if($details) { print "" . $images[$id]["minram"] . " | \n"; print "" . $images[$id]["minprocnumber"] . " | \n"; print "" . $images[$id]["minprocspeed"] . " | \n"; print "" . $images[$id]["minnetwork"] . " | \n"; if($images[$id]['maxconcurrent'] == '') print "N/A | \n"; else print "" . $images[$id]["maxconcurrent"] . " | \n"; } if($showdeleted) { print "" . $images[$id]["deleted"] . " | \n"; } print "
\n";
print "Groups is in: \n"; print "\n"; print " | \n";
# transfer buttons
print "\n";
print "\n";
print " \n"; print " \n"; print " \n"; print "\n"; print " | \n";
# select for groups image is not in
print "\n";
print "Groups is not in: \n"; print "\n"; print " | \n";
print "
\n";
print "Images in : \n"; print "\n"; print " | \n";
# transfer buttons
print "\n";
print "\n";
print " \n"; print " \n"; print " \n"; print "\n"; print " | \n";
# images not in group select
print "\n";
print "Images not in : \n"; print "\n"; print " | \n";
print "
\n";
print "Computer groups maps to: \n"; print "\n"; print " | \n";
# transfer buttons
print "\n";
print "\n";
print " \n"; print " \n"; print " \n"; print "\n"; print " | \n";
# select for comp groups image groups does not map to
print "\n";
print "Computer groups does not map to: \n"; print "\n"; print " | \n";
print "
\n";
print "Image groups maps to: \n"; print "\n"; print " | \n";
# transfer buttons
print "\n";
print "\n";
print " \n"; print " \n"; print " \n"; print "\n"; print " | \n";
# select for image groups comp group does not map to
print "\n";
print "Images groups does not map to: \n"; print "\n"; print " | \n";
print "