'; $_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 .= ''. ''. ''. ''. ''; for ( $i = 1; $i < $sensors['fancount'] + 1; $i++ ) { $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; } $_text .= '
'.$text['ftype'].''.$text['current'].''.$text['min'].''.$text['div'].''.$text['status'].'
' . $sensors['fan'.$i]['label'] .' ' . $sensors['fan'.$i]['current'] .' ' . $sensors['fan'.$i]['min'] .' ' . $sensors['fan'.$i]['div'] .' '. $sensors['fan'.$i]['status'] .' 
'; $tpl->set_var('fsensors', makebox($text['fsensors'], $_text, '100%')); // Temperaturas $_text = ''; $_text .= ''. ''. ''. ''. ''; for ( $i = 1; $i < $sensors['tempcount'] + 1; $i++ ) { $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; $_text .= ''; } $_text .= '
'.$text['ttype'].''.$text['current'].''.$text['hysteresis'].''.$text['limit'].''.$text['status'].'
' . $sensors['temp'.$i]['label'] . ' ' . $sensors['temp'.$i]['current'] . ' ' . $sensors['temp'.$i]['min'] . ' ' . $sensors['temp'.$i]['max'] . ' '. $sensors['temp'.$i]['status'] . ' 
'; $tpl->set_var('tsensors', makebox($text['tsensors'], $_text, '100%')); // Otros $_text = ''; $_text .= ''; $_text .= '

Prueba

ewrkfhsjghkshgk

'; $tpl->set_var('osensors', makebox($text['osensors'], $_text, '100%')); ?>