Example #1
0
function HARD()
{
    $sys = new systeminfos();
    $hash = $sys->lspci();
    $tpl = new templates();
    $table = "\n<table style='width:100%' align=center>\n<tr>\n\t<td align='right' colspan=2>" . imgtootltip('icon_refresh-20.gif', '{refresh}', "LoadAjax('hard','{$page}?hard=yes');") . "</td>\n</tr>\n<tr>\n<td valign='top' width=1%>\n\t<img src='img/hard-64.png'>\n\t</td>\n<td valign='top'>\n\t<table style='width:100%' align=center>\n\t<tr>\n\t\t<td valign='top'>\n\t\t<h5>{hardware_info}</H5><div class=caption style='text-align:right'>{hardware_info_text}</div>\n\t\t<table style='width:99%'>\n\t\n\t";
    $img = "<img src='img/fw_bold.gif'>";
    if (is_array($hash)) {
        while (list($num, $ligne) = each($hash)) {
            $table = $table . "\n\t\t\t\t<tr " . CellRollOver() . ">\n\t\t\t\t<td width=1% class=bottom>{$img}</td>\n\t\t\t\t<td width=10% nowrap class=bottom>{$ligne}</td>\n\t\t\t\t<td width=90% class=bottom>{$num}</td>\n\t\t\t\t</tr>\n\t\t\t\t";
        }
    }
    $html = $html . RoundedLightWhite("{$table}</table>");
    echo $tpl->_ENGINE_parse_body($html);
}
Example #2
0
function HARD(){
	
$sys=new systeminfos();
	$hash=$sys->lspci();
	$page=CurrentPageName();	
	$tpl=new templates();
$table="
<table style='width:100%' align=center>
<tr>
<td valign='top' width=1%>
	<img src='img/hard-64.png'>
	</td>
<td valign='top'>
	<table style='width:100%' align=center>
	<tr>
		<td valign='top'>
		<h5>{hardware_info}</H5><div class=text-info>{hardware_info_text}</div>
		<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>
		<tbody>
<thead class='thead'>

<tr>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
</thead>
	
	";
	$img="<img src='img/fw_bold.gif'>";
	if(is_array($hash)){
	 while (list ($num, $ligne) = each ($hash) ){
	 	if($classtr=="oddRow"){$classtr=null;}else{$classtr="oddRow";}
			$table=$table . "
				<tr class=$classtr>
				<td width=1% nowrap class=bottom style='font-size:14px'><strong>$ligne</strong></td>
				<td width=100% class=bottom style='font-size:13px'>$num</td>
				</tr>
				";
				}
	}	
	$html=$html ."$table</tbody></table><script>LoadAjax('disk','$page?disk=yes');</script>";
	echo $tpl->_ENGINE_parse_body($html);
}