예제 #1
0
        foreach ($report[$report_key] as $item) {
            ?>
		        <tr>
		          <td>
					<?php 
            echo isset($item['display_name']) ? $item['display_name'] : $item['name'];
            ?>
					<?php 
            echo isset($item['version_to_install']) ? $item['version_to_install'] : '';
            ?>
					<?php 
            echo isset($item['installed_version']) ? $item['installed_version'] : '';
            ?>
		          </td>
		          <td style="text-align: left;"><?php 
            echo isset($item['installed_size']) ? humanreadablesize($item['installed_size'] * 1024) : '?';
            ?>
</td>
		          <td><?php 
            echo $item['installed'] ? 'installed' : "not installed";
            ?>
</td>
		        </tr>
				<?php 
        }
        ?>
		      </tbody>
		    </table>
		    <?php 
    } else {
        ?>
예제 #2
0
		<div class="col-lg-4">
			<small>
				<dl class="dl-horizontal">
					<dt>Disk size</dt>
					<dd><?php 
echo humanreadablesize($disk->TotalSize);
?>
</dd>
					<dt>Used</dt>
					<dd><?php 
echo humanreadablesize($disk->TotalSize - $disk->FreeSpace);
?>
</dd>
					<dt>Free</dt>
					<dd><?php 
echo humanreadablesize($disk->FreeSpace);
?>
</dd>
					<dt>SMART Status</dt>
					<dd><?php 
echo $disk->SMARTStatus == 'Failing' ? '<span class=text-danger>Failing</span>' : $disk->SMARTStatus;
?>
</dd>
				</dl>
				<?php 
require_once conf('application_path') . "helpers/warranty_helper.php";
?>
				<dl class="dl-horizontal">
					<dt>Est. Manufacture date</dt>
					<dd><?php 
echo estimate_manufactured_date($serial_number);