<td class='<?php echo $td_class; ?> td_swap'> <?php echo Avc_utilities::create_vprogress_bar('swap_used_vpbar_' . $system_id, '', '17px', '35px', $vp_percent, $vp_class); ?> </td> <td class='<?php echo $td_class; ?> td_cpu'> <?php echo Avc_utilities::create_vprogress_bar('cpu_vpbar_' . $system_id, '', '17px', '35px', $vp_percent, $vp_class); ?> </td> <td class='<?php echo $td_class; ?> td_su'> -- </td> <td class='<?php echo $td_class; ?> td_mi'> <a class='more_info' class='disabled' title='<?php echo _('System Detail');
$id = POST('id'); $title = POST('title'); $width = POST('width'); $height = POST('height'); $progress = POST('progress'); $style = POST('style'); ossim_valid($id, OSS_ALPHA, OSS_PUNC, OSS_SPACE, '-', 'illegal:' . _('ID')); ossim_valid($title, OSS_ALPHA, OSS_PUNC, OSS_SPACE, OSS_NULLABLE, 'illegal:' . _('Title')); ossim_valid($width, OSS_DIGIT, 'illegal:' . _('Width')); ossim_valid($height, OSS_DIGIT, 'illegal:' . _('Height')); ossim_valid($progress, OSS_DIGIT, 'illegal:' . _('Progress')); ossim_valid($style, OSS_LETTER, '-', 'illegal:' . _('Style')); $width = $width . "px"; $height = $height . "px"; if (!ossim_error()) { echo Avc_utilities::create_vprogress_bar($id, $title, $width, $height, $progress, $style); } else { $config_nt = array('content' => ossim_error(), 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'margin: auto; width: 90%; text-align: center;'); $nt = new Notification('nt_1', $config_nt); $nt->show(); } } elseif (POST('action') == 'get_system_info') { $system_id = POST('system_id'); ossim_valid($system_id, OSS_DIGIT, OSS_LETTER, '-', 'illegal:' . _('System ID')); if (ossim_error()) { $data['status'] = 'error'; $data['data'] = ossim_get_error(); echo json_encode($data); exit; } $db = new ossim_db();