sortColumn = DRV_SORT_DEFAULT;
$sortCriteria->ascending = true;
// Used for Filtering
$llView = "All Logical Libraries";
$enclView = "All Enclosures";
// Used for Sorting
$sortBy = "location";
// Used for Message box
$errorCode = 0;
$displayMessage = 0; //no
// Get necessary data from the library
$drives = get_all_drives($user, $sortCriteria);
$loglibs = get_logical_libraries($user, $sortCriteria);
foreach($drives as $drive)
{
if(strcmp($drive->driveType, "LTO-5") == 0)
{
$numRows_5++;
}
else
{
$numRows++;
}
}
// If a post, then this is a return from an operation
// retrieve the results of the operation
if ($_SERVER['REQUEST_METHOD'] == "POST")
{
$errorCode= $_REQUEST["errorCode"];
$displayMessage = $_REQUEST["Message"];
$returnMessage = $_REQUEST["returnMessage"];
}
$totalRows = $numRows_5 + $numRows;
// get the counts needed to display the main table
// sort the table data based on the sortBy value
$oldi = sortDrives($drives, $sortBy);
// determine the attributes for the div that handles displaying and scrolling
// for the main data table
// $divAttributes = calculateDivAttributes($llView, $enclView, $drives, $totalRows, 10, 250);
$divAttributes['divClass'] = "";
$divAttributes['thClass'] = "";
$divAttributes['divHeight'] = "";
?>