$end_tag = '</span> ' . $end_tag; $status_start_tag = $status_start_tag . '<span style="color: #ff0000;font-weight:bold;">'; $status_end_tag = '</span> ' . $end_tag; } if ($verify_errors[$disk['name']]['error'] == 8) { $start_tag = $start_tag . '<del>'; $end_tag = '</del>' . $end_tag; } print $start_tag . htmlspecialchars($disk['name']) . $end_tag; print $start_tag . htmlspecialchars($disk['model']) . $end_tag; print $start_tag . htmlspecialchars($disk['size']) . $end_tag; print $start_tag . (empty($disk['serial']) === FALSE ? htmlspecialchars($disk['serial']) : htmlspecialchars(gettext("n/a"))) . $end_tag; print $start_tag . htmlspecialchars($disk['controller'] . $disk['controller_id']) . $end_tag; print $start_tag . htmlspecialchars($disk['controller_desc']) . $end_tag; print $start_tag . ($disk['harddiskstandby'] ? htmlspecialchars($disk['harddiskstandby']) : gettext("Always on")) . $end_tag; print $start_tag . (!empty($disk['fstype']) ? htmlspecialchars(get_fstype_shortdesc($disk['fstype'])) : htmlspecialchars(gettext("Unknown or unformatted"))) . $end_tag; print $status_start_tag . htmlspecialchars($status) . $status_end_tag; ?> <?php if (UPDATENOTIFY_MODE_DIRTY != $notificationmode) { ?> <td valign="middle" nowrap="nowrap" class="list"> <a href="disks_manage_edit.php?uuid=<?php echo $disk['uuid']; ?> "><img src="e.gif" title="<?php echo gettext("Edit disk"); ?> " border="0" alt="<?php echo gettext("Edit disk");
?> </td> <td class="listr"><?php echo htmlspecialchars(system_get_volume_serial($disk['devicespecialfile'])); ?> </td> <td class="listr"><?php if ($disk['harddiskstandby']) { echo htmlspecialchars($disk['harddiskstandby']); } else { echo htmlspecialchars(gettext("Always on")); } ?> </td> <td class="listr"><?php echo $disk['fstype'] ? htmlspecialchars(get_fstype_shortdesc($disk['fstype'])) : htmlspecialchars(gettext("Unknown or unformatted")); ?> </td> <td class="listbg"><?php echo htmlspecialchars($status); ?> </td> <?php if (UPDATENOTIFY_MODE_DIRTY != $notificationmode) { ?> <td valign="middle" nowrap="nowrap" class="list"> <a href="disks_manage_edit.php?uuid=<?php echo $disk['uuid']; ?> "><img src="e.gif" title="<?php echo gettext("Edit disk");
?> </td> <td class="listr"><?php echo htmlspecialchars(gettext("n/a")); ?> </td> <td class="listr"><?php echo htmlspecialchars(gettext("Software RAID")); ?> </td> <td class="listr"><?php echo htmlspecialchars(gettext("n/a")); ?> </td> <td class="listr"><?php echo $diskv['fstype'] ? htmlspecialchars(get_fstype_shortdesc($diskv['fstype'])) : htmlspecialchars(gettext("UFS")); ?> </td> <td class="listr"><?php echo htmlspecialchars($iostat); ?> </td> <td class="listr"><?php if ($temp != htmlspecialchars(gettext("n/a"))) { if (!empty($pconfig['temp_crit']) && $temp >= $pconfig['temp_crit']) { print "<div class=\"errortext\">" . $temp . "</div>"; } else { if (!empty($pconfig['temp_info']) && $temp >= $pconfig['temp_info']) { print "<div class=\"warningtext\">" . $temp . "</div>"; } else { print $temp;