';
$_text .= '
' . $text['vtype'] .
' | ' . $text['current'] .
' | ' . $text['min'] .
' | ' . $text['max'] .
' | ' . $text['status'] .
' |
';
for ( $i = 0; $i < $sensors[voltcount]; $i++ ) {
if ($sensors['volt'.$i]['min'] == " V" && $sensors['volt'.$i]['max'] == " V") {
$_text .= '';
$_text .= '' . $sensors['volt'.$i]['label'] . ' | ';
$_text .= '' . $sensors['volt'.$i]['current'] . ' | ';
$_text .= ' | ';
$_text .= ' | ';
$_text .= ' | ';
$_text .= '
';
}
else {
$_text .= '';
$_text .= '' . $sensors['volt'.$i]['label'] . ' | ';
$_text .= '' . $sensors['volt'.$i]['current'] . ' | ';
$_text .= '' . $sensors['volt'.$i]['min'] . ' | ';
$_text .= '' . $sensors['volt'.$i]['max'] . ' | ';
$_text .= '' . $sensors['volt'.$i]['status'] . ' | ';
$_text .= '
';
}
}
$_text .= '';
$tpl->set_var('vsensors', makebox($text['vsensors'], $_text, '100%'));
// Ventiladores
$_text = '';
$_text .= ''.$text['ftype'].' | '.
''.$text['current'].' | '.
''.$text['min'].' | '.
''.$text['div'].' | '.
''.$text['status'].' |
';
for ( $i = 1; $i < $sensors['fancount'] + 1; $i++ ) {
$_text .= '';
$_text .= '' . $sensors['fan'.$i]['label'] .' | ';
$_text .= '' . $sensors['fan'.$i]['current'] .' | ';
$_text .= '' . $sensors['fan'.$i]['min'] .' | ';
$_text .= '' . $sensors['fan'.$i]['div'] .' | ';
$_text .= ''. $sensors['fan'.$i]['status'] .' | ';
$_text .= '
';
}
$_text .= '
';
$tpl->set_var('fsensors', makebox($text['fsensors'], $_text, '100%'));
// Temperaturas
$_text = '';
$_text .= ''.$text['ttype'].' | '.
''.$text['current'].' | '.
''.$text['hysteresis'].' | '.
''.$text['limit'].' | '.
''.$text['status'].' |
';
for ( $i = 1; $i < $sensors['tempcount'] + 1; $i++ ) {
$_text .= '';
$_text .= '' . $sensors['temp'.$i]['label'] . ' | ';
$_text .= '' . $sensors['temp'.$i]['current'] . ' | ';
$_text .= '' . $sensors['temp'.$i]['min'] . ' | ';
$_text .= '' . $sensors['temp'.$i]['max'] . ' | ';
$_text .= ''. $sensors['temp'.$i]['status'] . ' | ';
$_text .= '
';
}
$_text .= '
';
$tpl->set_var('tsensors', makebox($text['tsensors'], $_text, '100%'));
// Otros
$_text = '';
$_text .= 'Prueba |
ewrkfhsjghkshgk |
';
$_text .= '
';
$tpl->set_var('osensors', makebox($text['osensors'], $_text, '100%'));
?>