This slot is inaccessible in the current physical configuration.
";
$onClick.="
";
$onClick.="
";
$estimatedHeight=160;
}
else if ($slot!=false)
{
if ($hSlots[$address]!=false) //slot
{
if (($slot->slotType != "Drive") && (strcmp((string)$slot->barcode,"") == 0) && (($slot->mediaType == 'LTO-1')||($slot->mediaType == 'LTO-2')||($slot->mediaType == 'LTO-3')||($slot->mediaType == 'LTO-4')))
{
$mediaType = 'LTO';
}
else if ($slot->slotType == "Drive")
{
$mediaType = $slot->driveType;
}
else
{
$mediaType = $slot->mediaType;
}
switch ($slot->slotType)
{
case "Storage" :
if ($slot->name == "Unassigned")
{
if ($slot->barcode)
{
$title="Unlicensed/Unassigned library slot : ".$address;
$onClick="
";
$onClick.="
Unlicensed/Unassigned Slot
";
$onClick.="
Location:
".$slot->location."
";
$onClick.="
Volume Serial Number:
".$slot->barcode."
";
$onClick.="
This slot (".$address.") is either currently unlicensed and requires a feature license to use or it is unassigned and must be assigned to a logical library before it can be utilized.
This slot (".$address.") is either currently unlicensed and requires a feature license to use or it is unassigned and must be assigned to a logical library before it can be utilized.
This slot (".$address.") is either currently unlicensed and requires a feature license to use or it is unassigned and must be assigned to a logical library before it can be utilized.
";
$onClick.="
";
$onClick.="
";
*/
$onClick="
";
$onClick.="
I/O Station Slot: Unassigned Cartridge
";
$onClick.="
Unassigned cartridges in the I/O station may be assigned to a logical library or to the physical library using the Operator Panel.
";
//$onClick.="
Type:
I/O Station
";
//$onClick.="
Location:
".$slot->location."
";
//$onClick.="
Volume Serial Number:
".$slot->barcode."
";
//$onClick.="
MediaType:
".$mediaType."
";
//$onClick.="
Element Address:
".$slot->logicalAddress."
";
$onClick.="
";
$onClick.="
";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','#A7A7A7')";
$estimatedHeight=50;
}
}
if ($type =="drive")
{
}
if ($colorIn!="")
{
$onOver="changeBgColor('slot_".$hSlots[$address]->location."','".$colorIn."')";
$onOut="changeBgColor('slot_".$hSlots[$address]->location."','".$colorOut."')";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','".$colorOut."')";
}
$classLibName="map_libname";
// Commented out following line of code for Defect 1750
// All slot entries into web user interface will use css map_slot_info
//if ($libName=="")
$classLibName=$className."_info";
if ($onClick!="")
$onClick="showInfo('".$onClick."','slot_".$address."',".$estimatedHeight.");".$setOnClick;
$ret=array();
$ret["className"]=$className;
$ret["classNameInfo"]=$className."_info";
//blue shades for slots
if ($type=="slot")
{
if ($blue_shade!="")
{
$ret["classNameInfo"].="_".$blue_shade;
}
}
// end
$ret["classLibName"]=$classLibName;
$ret["info"]=$info;
//DEBUG
/*$len = strlen($slot->location);
if (substr($slot->location,$len-1) == '1')
{
$slot->name = "anyname1";
}
if (substr($slot->location,$len-1) == '2')
{
$slot->name = "anyname2";
}
if (substr($slot->location,$len-1) == '3')
{
$slot->name = "anyname3";
}
*/
$ret["libName"]=$libNames[$libraryIndex[$slot->name]]; //$libName;
$ret["drvHere"]=$drvHere;
$ret["onOver"]=$onOver;
$ret["onOut"]=$onOut;
$ret["onClick"]=$onClick;
$ret["title"]=$title;
$ret["blue_shade"]=$blue_shade;
return $ret;
}
function getChassCss($address)
{
global $hChass;
$className="map_chassslot";
$onClick="";
$chass=$hChass[$address];
$title="(".$chass->location.")"." ".$chass->model." | SN: ".$chass->serial." | ".$chass->manufacturer;
$onClick="
";
$onClick.="
Enclosure
";
$onClick.="
Manufacturer:
".$chass->manufacturer."
";
$onClick.="
Model:
".$chass->model."
";
$onClick.="
Serial Number:
".$chass->serial."
";
$onClick.="
";
$onClick.="
";
if ($onClick!="")
$onClick="showInfo('".$onClick."','slot_".$address."',100)";
$ret=array();
$ret["onClick"]=$onClick;
$ret["className"]=$className;
$ret["title"]=$title;
return $ret;
}
$lengend="";
function makeLegend()
{
global $legend;
global $namesFound;
global $libraryNames;
global $libNames;
global $numPartList;
$legend="
";
$legend.="
CLN
";
if (1)//($doorClosed == 1)
{
$legend.="
I/O
";
}
else
{
$legend.="
I/O: Door Open
";
}
$legend.="
Storage
";
$legend.="
Unlicensed/Unassigned
";
$legend.="
";
$legend.="
";
$legend.="
Logical Library Key:
";
$legend.="
";
for ($i=0;$i<$numPartList;$i++)
{
if (($i%5) == 0)
{
$legend.="
";
}
$legend.="
".$libNames[$i]."
";
$legend.="
- ".$libraryNames[$i]."
";
}
if ($numPartList < 5)
{
$legend.="
";
}
$legend.="
";
}
?>
Drive logs
// Get the time this page was loaded
$lastrefresh = time();
?>
Library Map
Last refresh: =date("l\, F j\, Y G:i:s T", $lastrefresh);?>
$curChass=1;
foreach($hChass as $enc)
{
?>
for ($x=1;$x<=3;$x++)
{
?>
for ($y=1;$y<=$numSlots[$enc->location][$x];$y++)
{
$address=$enc->location.",".$x.",".$y;
$cssInfo=getSlotCss($address,"slot");
$slot_info=$address;
if ($cssInfo["classNameInfo"]=="map_inaccessibleslot_info")
$slot_info="";
?>
for ($y=1;$y<=$numSlots[$enc->location][$x];$y++)
{
$address=$enc->location.",".$x.",".$y;
$cssInfo=getSlotCss($address,"slot");
$slot_info=$address;
if ($cssInfo["classNameInfo"]=="map_inaccessibleslot_info")
$slot_info="";
?>