</span> </td> </tr> <tr> <td class='_label'><?php echo _('Current sessions'); ?> </td> <td class='_data' id='rc_data'><?php echo $current_sessions; ?> </td> <td class='td_pbar'> <?php echo Avc_utilities::create_progress_bar('cpu_pbar', '', '200px', $cpu_load, 'progress-green'); ?> </td> <td class='td_spark_line'> <div id='cpu_spark_line' class='div_spark_line' style='position: relative; bottom:0px;'></div> </td> </tr> </tbody> </table> <script type='text/javascript'> <?php if (!empty($mounted_disks)) { $disk = key($mounted_disks);
require_once dirname(__FILE__) . '/../../../config.inc'; session_write_close(); if (POST('action') == 'create_pbar') { $id = POST('id'); $title = POST('title'); $width = POST('width'); $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($progress, OSS_DIGIT, 'illegal:' . _('Progress')); ossim_valid($style, OSS_LETTER, '-', 'illegal:' . _('Style')); $width = $width . 'px'; if (!ossim_error()) { echo Avc_utilities::create_progress_bar($id, $title, $width, $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') == 'create_vpbar') { $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'));