ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

process_alerts.inc.php
Go to the documentation of this file.
1 <?php
2 
4 // Function: ws_submit($input)
5 //
6 // Description:
7 // Inserts dynamic content into a tool-tip popup.
8 // $form is a string array that should look something like this:
9 // "tooltip=>something,id=>element_id,something_id=>143324"
11 function ws_process_alerts_submit($window_name, $form='') {
12  global $conf, $self, $onadb, $tip_style;
14  $html = $js = '';
15 
16  // If an array in a string was provided, build the array and store it in $form
17  $form = parse_options_string($form);
18 
19  printmsg("DEBUG => Processing Alerts:", 5);
20 
21 // FIXME: this code is called from html_desktop.inc.php.. however it is failing to process for some reason
22 // The intent of this code is to be called to display a "message waiting" type icon in the top menu bar.
23 
24 
25  // Check for messages that begin with SYS_ in the table_name_ref column
26  list($status, $rows, $msg) = db_get_record($onadb, 'messages', "table_name_ref LIKE 'SYS_%'");
27 
28  if ($rows) {
29  $js .= "if (el('sys_alert')) {el('sys_alert').style.visibility = 'visible';}";
30  }
31  else {
32  $js .= "if (el('sys_alert')) {el('sys_alert').style.visibility = 'hidden';}";
33  }
34 
35 
36 
37  $response = new xajaxResponse();
38  if ($js) { $response->addScript($js); }
39  return($response->getXML());
40 }
41 
42 
43 
44 
45 
46 
47 
48 
49 ?>
ws_process_alerts_submit
ws_process_alerts_submit($window_name, $form='')
Definition: process_alerts.inc.php:11
$status
$status
Definition: install.php:12
$onadb
global $onadb
Definition: 2-to-3.php:15
printmsg
if(6<=$conf['debug']) printmsg($msg="", $debugLevel=0)
Definition: functions_general.inc.php:48
$images
$images
Definition: config.inc.php:26
$conf
global $conf
Definition: 2-to-3.php:15
xajaxResponse
Definition: xajaxResponse.inc.php:68
$style
$style['font-family']
Definition: config.inc.php:158
$font_family
global $font_family
Definition: app_admin_tools.inc.php:4
$self
global $self
Definition: 2-to-3.php:15
db_get_record
db_get_record($dbh=0, $table="", $where="", $order="")
Definition: functions_db.inc.php:708
$color
if($_SERVER['SERVER_PORT']==443) $color['bg']
Definition: config.inc.php:119
parse_options_string
parse_options_string($input)
Definition: xajax_setup.inc.php:88