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.="
";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','#A7A7A7')";
$estimatedHeight=50;
//error_log("---------------------------------------------------gets here2");
if ($hSlots[$address]!=false) //slot
{
switch ($slot->slotType)
{
case "Storage" :
case "Drive" :
$className="map_slot";
$colorIn="#7DA7D9";
$blueShades[$blue_shade];
$onClick="
";
$onClick.="
Assigned Slot
";
$onClick.="
Type:
".$slot->slotType."
";
$onClick.="
Logical Library:
".$slot->name."
";
$onClick.="
Location:
".$slot->location."
";
$onClick.="
Barcode:
".$slot->barcode."
";
$onClick.="
MediaType:
".$slot->mediaType."
";
$onClick.="
Element Address:
".$slot->logicalAddress."
";
$onClick.="
";
$onClick.="
";
$estimatedHeight=160;
break;
case "IE Station" :
case "IO Station" :
$blue_shade="";
$className="map_ieslot";
$theslottype = "I/O";
$info="I/O";
$colorIn="#6381C6";
$colorOut="#6381C6";
if (($slot->name=="Physical Library") && ($slot->barcode!=""))
{
$onClick="
";
$onClick.="
I/O Station Slot: Unassigned Cartridge
";
$onClick.="
Unassigned cartridges in the I/O station may be assigned to a logical library using the Operator Panel.
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.="
";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','#A7A7A7')";
$estimatedHeight=50;
}
if ($type =="drive")
{
}
else 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";
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;
}
else
{
$ret["classNameInfo"].="_".$blue_shade;
}
}
// end
$ret["classLibName"]=$classLibName;
$ret["info"]=$info;
$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;
error_log('$ret["className"]='.$className);
error_log('$ret["classNameInfo"]='.$className."_info");
error_log('$ret["classNameInfo"].='."_".$blue_shade);
error_log('$ret["classLibName"]='.$classLibName);
error_log('$ret["info"]='.$info);
error_log('$ret["libName"]='.$libNames[$libraryIndex[$slot->name]]); //$libName;
error_log('$ret["drvHere"]='.$drvHere);
error_log('$ret["onOver"]='.$onOver);
error_log('$ret["onOut"]='.$onOut);
error_log('$ret["onClick"]='.$onClick);
error_log('$ret["title"]='.$title);
error_log('$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
";
$legend.="
I/O
";
$legend.="
Storage
";
$legend.="
Unlicensed/Unassigned
";
$legend.="
";
$legend.="
";
$legend.="
Logical Library Key:
";
$legend.="
";
for ($i=0;$i<$numPartList;$i++)
{
// if ($namesFound[$i]==1)
{
if (($i%5) == 0)
{
$legend.="
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="";
?>