示例#1
0
        $end_tag = '</span>&nbsp;' . $end_tag;
        $status_start_tag = $status_start_tag . '<span style="color: #ff0000;font-weight:bold;">';
        $status_end_tag = '</span>&nbsp;' . $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");
示例#2
0
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars(system_get_volume_serial($disk['devicespecialfile']));
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    if ($disk['harddiskstandby']) {
        echo htmlspecialchars($disk['harddiskstandby']);
    } else {
        echo htmlspecialchars(gettext("Always on"));
    }
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo $disk['fstype'] ? htmlspecialchars(get_fstype_shortdesc($disk['fstype'])) : htmlspecialchars(gettext("Unknown or unformatted"));
    ?>
&nbsp;</td>
						<td class="listbg"><?php 
    echo htmlspecialchars($status);
    ?>
&nbsp;</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");
示例#3
0
        ?>
</td>
					<td class="listr"><?php 
        echo htmlspecialchars(gettext("n/a"));
        ?>
&nbsp;</td>
					<td class="listr"><?php 
        echo htmlspecialchars(gettext("Software RAID"));
        ?>
&nbsp;</td>
					<td class="listr"><?php 
        echo htmlspecialchars(gettext("n/a"));
        ?>
&nbsp;</td>
					<td class="listr"><?php 
        echo $diskv['fstype'] ? htmlspecialchars(get_fstype_shortdesc($diskv['fstype'])) : htmlspecialchars(gettext("UFS"));
        ?>
&nbsp;</td>
					<td class="listr"><?php 
        echo htmlspecialchars($iostat);
        ?>
&nbsp;</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;