location:$drive->name:$drive->mediaType:$drive->status:$drive->firmwareLevel";
$driveLoc[$i] = $driveInfo[0];
$driveLib[$i] = $driveInfo[1];
$driveType[$i] = $driveInfo[2];
$driveState[$i] = $driveInfo[3];
$driveLevel[$i] = $driveInfo[4];
$driveInterface[$i] = $driveInfo[5];
if ($driveLocs == "")
{
$driveLocs = $driveLoc[$i];
}
else
{
$driveLocs = $driveLocs.":$driveLoc[$i]";
}
$i++;
}
error_log("Drive Locs leaving drv fw update ==>".$driveLocs);
}
?>
Confirm Drive Firmware Update
$temptext = " drive";
if ($numRows >= 2)
{
$temptext = "drives";
}
?>
The following =$temptext;?> will be updated with the new firmware.
Location
Locaical Library
Type
Interface
Status
Firmware Level
=$driveLoc[$i];?>
=$driveLib[$i];?>
=$driveType[$i];?>
=$driveInterface[$i];?>
=$driveState[$i];?>
=$driveLevel[$i];?>
$estimated_time = 25; //$numRows*80;
$articleText = "this drive";
if ($numRows >= 2)
{
$estimated_time = 35;
$articleText = "these drives";
}
$estimated_hour = floor($estimated_time/60);
$estimated_min = $estimated_time%60;
//$text_hour = "".$estimated_hour." hour and ".;
$text_min = $estimated_min;
/*if ($estimated_hour > 1)
{
$text_hour = $text_hour."s";
}
*/
if ($estimated_min == 0)
{
$text_min = "";
}
?>
This drive firmware update will take approximately =$text_min;?> minutes to complete. Are you sure you wish to
continue with updating =$articleText;?>?