2006-03-27 05:37:27 +02:00
< ? php
2006-07-11 12:03:18 +02:00
// Pandora - the Free monitoring system
// ====================================
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas S.L, info@artica.es
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
2008-07-22 18:41:19 +02:00
// Copyright (c) 2008-2008 Evi Vanoost, vanooste@rcbi.rochester.edu
2006-07-11 12:03:18 +02:00
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Load global vars
2008-07-22 18:41:19 +02:00
require_once ( " include/config.php " );
2006-07-11 12:03:18 +02:00
2008-07-22 18:41:19 +02:00
function create_message ( $usuario_origen , $usuario_destino , $subject , $mensaje ){
2008-07-22 18:30:20 +02:00
global $lang_label ;
$sql = sprintf ( " INSERT INTO tmensajes (id_usuario_origen, id_usuario_destino, subject, mensaje, timestamp)
VALUES ( '%s' , '%s' , '%s' , '%s' , NOW ()) " , $usuario_origen , $usuario_destino , $subject , $mensaje );
( int ) $result = process_sql ( $sql );
if ( $result == 1 ) {
2008-07-22 18:41:19 +02:00
echo '<h3 class="suc">' . $lang_label [ " message_ok " ] . '</h3>' ;
2007-05-27 04:55:55 +02:00
} else {
2008-07-22 18:41:19 +02:00
echo '<h3 class="error">' . $lang_label [ " message_no " ] . ' - Dest: ' . $usuario_destino . '</h3>' ;
2006-03-27 05:37:27 +02:00
}
2007-05-27 04:55:55 +02:00
}
2006-03-27 05:37:27 +02:00
//First Queries
2008-07-22 18:30:20 +02:00
$iduser = $_SESSION [ 'id_usuario' ];
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
2008-07-22 18:41:19 +02:00
if ( isset ( $_GET [ " nuevo_mensaje " ])){
2006-03-27 05:37:27 +02:00
// Create message
2008-06-18 Esteban Sanchez <estebans@artica.es>
* functions.php: Added documentation to all the functions in JavaDoc
format, which is an facto-standard. Deleted unused functions. Improved
the code of some functions. Tab and blankspaces style correction.
Replaced old lang_label with lang_string(). Some functions to print
selects were replaced with a functio to get an array with all the
possible values so the caller will use print_select() with them.
* godmode/agentes/agent_manager.php: Use print_select() instead of
deleted function.
* godmode/agentes/alert_manager_editor.php: Use print_select() instead
of deleted function. Use print_checkbox(). Style correction
* godmode/reporting/map_builder.php, operation/agentes/ver_agente.php,
operation/messages/message.php,
operation/reporting/reporting_viewer_pdf.php:
Replaced deleted functions with their equivalents.
* include/functions_db.php: Documented some functions, some work is
still required. Added get_reports() to get all the reports a user can
see. Deleted unused functions. Replaced deleted functions with their
equivalents. Added get_db_row_sql(), get_previous_data(). Fixed errors
when calculating average, max, min and sum values of an agent module.
* include/functions_reporting.php: Fixed errors when calculating SLA.
* operation/events/events.php: Tab and blankspaces correction.
Replaced form_priority with print_select(). Style correction.
* operation/reporting/custom_reporting.php: Show all the reports a
user can see. Use Pandora functions.
* operation/reporting/reporting_viewer.php: Show unknown label if SLA
can not be calculated.
* operation/snmpconsole/snmp_alert.php: Avoid an extra indentation
level by using check_login() properly. Tab and blankspaces correction.
* index.php, operation/users/user_edit.php: Adopted to renamed
function.
* godmode/db/db_sanity.php, reporting/fgraph.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 11:01:12 +02:00
$usuario_destino = get_parameter ( " u_destino " );
$subject = get_parameter ( " subject " );
$mensaje = get_parameter ( " mensaje " );
2008-07-22 18:30:20 +02:00
create_message ( $iduser , $usuario_destino , $subject , $mensaje );
2006-03-27 05:37:27 +02:00
}
2008-07-22 18:41:19 +02:00
if ( isset ( $_GET [ " nuevo_mensaje_g " ])){
2006-03-27 05:37:27 +02:00
// Create message to groups
2008-07-22 18:30:20 +02:00
$dest_group = get_parameter ( " g_destino " );
2008-06-18 Esteban Sanchez <estebans@artica.es>
* functions.php: Added documentation to all the functions in JavaDoc
format, which is an facto-standard. Deleted unused functions. Improved
the code of some functions. Tab and blankspaces style correction.
Replaced old lang_label with lang_string(). Some functions to print
selects were replaced with a functio to get an array with all the
possible values so the caller will use print_select() with them.
* godmode/agentes/agent_manager.php: Use print_select() instead of
deleted function.
* godmode/agentes/alert_manager_editor.php: Use print_select() instead
of deleted function. Use print_checkbox(). Style correction
* godmode/reporting/map_builder.php, operation/agentes/ver_agente.php,
operation/messages/message.php,
operation/reporting/reporting_viewer_pdf.php:
Replaced deleted functions with their equivalents.
* include/functions_db.php: Documented some functions, some work is
still required. Added get_reports() to get all the reports a user can
see. Deleted unused functions. Replaced deleted functions with their
equivalents. Added get_db_row_sql(), get_previous_data(). Fixed errors
when calculating average, max, min and sum values of an agent module.
* include/functions_reporting.php: Fixed errors when calculating SLA.
* operation/events/events.php: Tab and blankspaces correction.
Replaced form_priority with print_select(). Style correction.
* operation/reporting/custom_reporting.php: Show all the reports a
user can see. Use Pandora functions.
* operation/reporting/reporting_viewer.php: Show unknown label if SLA
can not be calculated.
* operation/snmpconsole/snmp_alert.php: Avoid an extra indentation
level by using check_login() properly. Tab and blankspaces correction.
* index.php, operation/users/user_edit.php: Adopted to renamed
function.
* godmode/db/db_sanity.php, reporting/fgraph.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 11:01:12 +02:00
$subject = get_parameter ( " subject " );
2008-07-22 18:30:20 +02:00
$message = get_parameter ( " mensaje " );
2008-07-22 18:41:19 +02:00
$sql = sprintf ( " SELECT id_usuario FROM tusuario_perfil WHERE id_grupo ='%d' " , $dest_group );
2008-07-22 18:30:20 +02:00
$result = get_db_all_rows_sql ( $sql );
if ( $result === false ) {
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
echo " <h3 class='error'> " . $lang_label [ " message_no " ] . " </h3> " ;
2008-07-22 18:30:20 +02:00
} else {
2008-07-22 18:41:19 +02:00
foreach ( $result as $row ) {
2008-07-22 18:30:20 +02:00
create_message ( $iduser , $row [ " id_usuario " ], $subject , $message );
}
2006-03-27 05:37:27 +02:00
}
}
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
echo " <h2> " . $lang_label [ " messages " ] . " > " ;
2008-07-22 18:41:19 +02:00
if ( isset ( $_GET [ " nuevo " ])) { //create message
2008-07-22 18:30:20 +02:00
echo $lang_label [ " new_message " ] . '</h2>' ;
echo ' < form name = " new_mes " method = " POST " action = " index.php?sec=messages&sec2=operation/messages/message&nuevo_mensaje=1 " >
< table width = " 600 " class = " databox_color " cellpadding = " 4 " cellspacing = " 4 " >< tr >
< td class = " datos " > '.$lang_label["m_from"].' :</ td >
< td class = " datos " >< b > '.$iduser.' </ b ></ td >
</ tr >< tr >
< td class = " datos2 " > '.$lang_label["m_to"].' :</ td >
< td class = " datos2 " > ' ;
2008-07-22 18:41:19 +02:00
if ( isset ( $_POST [ " u_destino " ])) {
2008-07-22 18:30:20 +02:00
echo '<b>' . $_POST [ " u_destino " ] . '</b><input type="hidden" name="u_destino" value=' . $_POST [ " u_destino " ] . '>' ;
} else {
echo '<select name="u_destino" width="120">' ;
$groups = get_user_groups ( $iduser );
foreach ( $groups as $id => $group ) {
2008-07-22 18:41:19 +02:00
if ( ! isset ( $group_id )) {
2008-07-22 18:30:20 +02:00
$group_id = " id_grupo = " . $id ;
} else {
$group_id .= " OR id_grupo = " . $id ;
2007-06-12 20:10:57 +02:00
}
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
}
2008-07-22 18:30:20 +02:00
$sql = sprintf ( " SELECT DISTINCT(id_usuario) FROM tusuario_perfil WHERE %s " , $group_id );
$result = get_db_all_rows_sql ( $sql );
foreach ( $result as $row ) {
echo '<option value="' . $row [ " id_usuario " ] . '">' . $row [ " id_usuario " ] . '</option>' ;
}
echo '</select>' ;
2006-03-27 05:37:27 +02:00
}
2008-07-22 18:30:20 +02:00
echo '</td></tr><tr><td class="datos">' . $lang_label [ " subject " ] . ':</td><td class="datos">' ;
2008-07-22 18:41:19 +02:00
if ( isset ( $_POST [ " subject " ])) {
2008-07-22 18:30:20 +02:00
echo '<input name="subject" value="' . get_parameter_post ( " subject " ) . '" size=70>' ;
} else {
echo '<input name="subject" size=60>' ;
}
echo '</td></tr><tr><td class="datos2">' . $lang_label [ " message " ] . ' :</ td >
< td class = " datos " >< textarea name = " mensaje " rows = " 15 " cols = " 70 " > ' ;
2008-07-22 18:41:19 +02:00
if ( isset ( $_POST [ " mensaje " ])) {
2008-07-22 18:30:20 +02:00
echo get_parameter_post ( " mensaje " );
}
echo ' </ textarea ></ td ></ tr >< tr >< td ></ td >< td colspan = " 3 " >
< input type = " submit " class = " sub wand " name = " send_mes " value = " '. $lang_label["send_mes"] .' " ></ form ></ td ></ tr ></ table > ' ;
2008-07-22 18:41:19 +02:00
} elseif ( isset ( $_GET [ " nuevo_g " ])) {
2008-07-22 18:30:20 +02:00
echo $lang_label [ " new_message_g " ] . '</h2>' ;
echo ' < form name = " new_mes " method = " post " action = " index.php?sec=messages&sec2=operation/messages/message&nuevo_mensaje_g=1 " >
< table width = 600 class = " databox_color " cellpadding = 4 cellspacing = 4 >
< tr >< td class = " datos " > '.$lang_label["m_from"].' :</ td >
< td class = " datos " >< b > '.$iduser.' </ b ></ td ></ tr >
< tr >< td class = " datos2 " > '.$lang_label["m_to"].' :</ td >< td class = " datos2 " > ' ;
echo '<select name="g_destino" class="w130">' ;
$groups = get_user_groups ( $iduser );
foreach ( $groups as $id => $group ) {
2008-07-22 18:41:19 +02:00
if ( ! isset ( $group_id )) {
2008-07-22 18:30:20 +02:00
$group_id = " id_grupo = " . $id ;
} else {
$group_id .= " OR id_grupo = " . $id ;
}
2006-03-27 05:37:27 +02:00
}
2008-07-22 18:30:20 +02:00
// This query makes that we can send messages to groups we have access
// to, not only the ones we belong to
2008-07-22 18:41:19 +02:00
$sql = sprintf ( " SELECT DISTINCT(id_grupo) FROM tusuario_perfil WHERE %s " , $group_id );
2008-07-22 18:30:20 +02:00
$result = get_db_all_rows_sql ( $sql );
foreach ( $result as $row ) {
echo '<option value="' . $row [ " id_grupo " ] . '">' . dame_nombre_grupo ( $row [ " id_grupo " ]) . '</option>' ;
}
echo ' </ select ></ td ></ tr >
< tr >< td class = " datos " > '.$lang_label["subject"].' :</ td >< td class = " datos " >< input name = " subject " size = " 60 " ></ td ></ tr >< tr >
< td class = " datos2 " > '.$lang_label["message"].' :</ td >
< td class = " datos " >< textarea name = " mensaje " rows = " 12 " cols = " 60 " ></ textarea ></ td >
</ tr >< tr >< td ></ td >< td colspan = " 3 " >
< input type = " submit " class = " sub wand " name = " send_mes " value = " '. $lang_label["send_mes"] .' " ></ form ></ td ></ tr ></ table > ' ;
} elseif ( isset ( $_GET [ " leer " ])) {
$id_mensaje = get_parameter_get ( " id_mensaje " );
$sql = sprintf ( " SELECT id_usuario_origen, subject, mensaje FROM tmensajes WHERE id_usuario_destino='%s' AND id_mensaje=%d " , $iduser , $id_mensaje );
$row = get_db_row_sql ( $sql );
process_sql ( " UPDATE tmensajes SET estado=1 WHERE id_mensaje " . $result [ " id_mensaje " ]);
echo ' < table class = " databox_color " width = 650 cellpadding = 4 cellspacing = 4 >
< form method = " post " name = " reply_mes " action = " index.php?sec=messages&sec2=operation/messages/message&nuevo " >
< tr >< td class = " datos " > '.$lang_label["from"].' :</ td >
< td class = " datos " >< b > '.$row["id_usuario_origen"].' </ b ></ td ></ tr > ' ;
// Subject
echo '<tr><td class="datos2">' . $lang_label [ " subject " ] . ' :</ td >
< td class = " datos2 " valign = " top " >< b > '.$row["subject"].' </ b ></ td ></ tr > ' ;
// text
echo '<tr><td class="datos" valign="top">' . $lang_label [ " message " ] . ' :</ td >
< td class = " datos " >< textarea name = " mensaje " rows = " 15 " cols = 70 readonly > '.$row["mensaje"].' </ textarea ></ td ></ tr >
</ table >
< input type = " hidden " name = " u_destino " value = " '. $row["id_usuario_origen"] .' " >
< input type = " hidden " name = " subject " value = " Re: '. $row["subject"] .' " >
< input type = " hidden " name = " mensaje " value = " '. $row["id_usuario_origen"] . $lang_label["wrote"] .': '. $row["mensaje"] .' " > ' ;
echo '<table width=650 cellpadding=4 cellspacing=4>' ;
echo " <tr><td align=right> " ;
echo '<input type="submit" class="sub next" name="send_mes" value="' . $lang_label [ " reply " ] . '">' ;
echo '</form>' ;
echo " </td></tr></table> " ;
}
2008-07-22 18:41:19 +02:00
if ( isset ( $_GET [ " leer " ]) || ( ! isset ( $_GET [ " nuevo " ]) && ! isset ( $_GET [ " nuevo_g " ]))) {
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
echo $lang_label [ " read_mes " ] . " </h2> " ;
2008-07-22 18:30:20 +02:00
//Delete messages if borrar is set
2008-07-22 18:41:19 +02:00
if ( isset ( $_GET [ " borrar " ])){
2008-07-22 18:30:20 +02:00
$id_message = get_parameter_get ( " id_mensaje " );
2008-07-22 18:41:19 +02:00
$sql = sprintf ( " DELETE FROM tmensajes WHERE id_usuario_destino='%s' AND id_mensaje=%d " , $iduser , $id_message );
2008-07-22 18:30:20 +02:00
( int ) $result = process_sql ( $sql );
if ( $result > 0 ) {
echo '<h3 class="suc">' . $lang_label [ " del_message_ok " ] . '</h3>' ;
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
} else {
2008-07-22 18:30:20 +02:00
echo '<h3 class="error">' . $lang_label [ " del_message_no " ] . '</h3>' ;
2006-03-27 05:37:27 +02:00
}
2008-07-22 18:30:20 +02:00
}
//Get number of messages
$sql = sprintf ( " SELECT COUNT(id_mensaje) FROM tmensajes WHERE id_usuario_destino='%s' AND estado=0 " , $iduser );
$num_messages = get_db_sql ( $sql );
if ( $num_messages > 0 ){
echo '<p>' . $lang_label [ " new_message_bra " ] . ' <b>' . $num_messages . '</b> <img src="images/email.png">' . $lang_label [ " new_message_ket " ] . '</p>' ;
}
2008-07-22 18:41:19 +02:00
$sql = sprintf ( " SELECT id_mensaje, id_usuario_origen, subject, timestamp, estado FROM tmensajes WHERE id_usuario_destino='%s' ORDER BY `timestamp` DESC " , $iduser );
2008-07-22 18:30:20 +02:00
$result = get_db_all_rows_sql ( $sql );
if ( $result === false ) {
echo " <div class='nf'> " . $lang_label [ " no_messages " ] . " </div> " ;
} else {
2008-07-22 18:41:19 +02:00
$color = 1 ;
2008-07-22 18:30:20 +02:00
echo ' < table width = " 650 " class = " databox " cellpadding = " 4 " cellspacing = " 4 " >< tr >
< th > '.$lang_label["read"].' </ th >
< th > '.$lang_label["sender"].' </ th >
< th > '.$lang_label["subject"].' </ th >
< th > '.$lang_label["timestamp"].' </ th >
< th > '.$lang_label["delete"].' </ th ></ tr > ' ;
foreach ( $result as $row ) {
2006-07-03 12:49:42 +02:00
if ( $color == 1 ){
$tdcolor = " datos " ;
$color = 0 ;
2008-07-22 18:30:20 +02:00
} else {
2006-07-03 12:49:42 +02:00
$tdcolor = " datos2 " ;
$color = 1 ;
}
2008-07-22 18:30:20 +02:00
echo '<tr><td align="center" class="' . $tdcolor . '">' ;
if ( $row [ " estado " ] == 1 ) {
$img = " email_open.png " ;
} else {
$img = " email.png " ;
}
echo '<img src="images/' . $img . ' " border= " 0 " ></td>
< td class = " '. $tdcolor .' " >< a href = " index.php?sec=usuarios&sec2=operation/users/user_edit&ver='. $row["id_usuario_origen"] .' " > '.$row["id_usuario_origen"].' </ td >
< td class = " '. $tdcolor .' " >< a href = " index.php?sec=messages&sec2=operation/messages/message&leer=1&id_mensaje='. $row["id_mensaje"] .' " >< b > ' ;
if ( $row [ " subject " ]) {
echo $row [ " subject " ];
} else {
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
echo $lang_label [ " no_subject " ];
2006-03-27 05:37:27 +02:00
}
2008-07-22 18:30:20 +02:00
echo '</b></a></td><td class="' . $tdcolor . '">' . $row [ " timestamp " ] . ' </ td >
< td class = " '. $tdcolor .' " align = " center " >< a href = " index.php?sec=messages&sec2=operation/messages/message&borrar=1&id_mensaje='. $row["id_mensaje"] .' " >
< img src = " images/cross.png " border = " 0 " ></ a ></ td ></ tr > ' ;
}
2007-06-12 20:10:57 +02:00
echo " </table> " ;
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
}
2008-07-22 18:41:19 +02:00
echo '<table width=650 cellpadding=4 cellspacing=4><tr>' ;
echo '<td>' ;
echo ' < form method = " post " name = " new_mes " action = " index.php?sec=messages&sec2=operation/messages/message&nuevo " >
< input type = " submit " class = " sub next " name = " send_mes " value = " '. $lang_label["new_message"] .' " ></ form ></ td ></ tr ></ table > ' ;
2008-07-22 18:30:20 +02:00
}
2008-06-18 Esteban Sanchez <estebans@artica.es>
* functions.php: Added documentation to all the functions in JavaDoc
format, which is an facto-standard. Deleted unused functions. Improved
the code of some functions. Tab and blankspaces style correction.
Replaced old lang_label with lang_string(). Some functions to print
selects were replaced with a functio to get an array with all the
possible values so the caller will use print_select() with them.
* godmode/agentes/agent_manager.php: Use print_select() instead of
deleted function.
* godmode/agentes/alert_manager_editor.php: Use print_select() instead
of deleted function. Use print_checkbox(). Style correction
* godmode/reporting/map_builder.php, operation/agentes/ver_agente.php,
operation/messages/message.php,
operation/reporting/reporting_viewer_pdf.php:
Replaced deleted functions with their equivalents.
* include/functions_db.php: Documented some functions, some work is
still required. Added get_reports() to get all the reports a user can
see. Deleted unused functions. Replaced deleted functions with their
equivalents. Added get_db_row_sql(), get_previous_data(). Fixed errors
when calculating average, max, min and sum values of an agent module.
* include/functions_reporting.php: Fixed errors when calculating SLA.
* operation/events/events.php: Tab and blankspaces correction.
Replaced form_priority with print_select(). Style correction.
* operation/reporting/custom_reporting.php: Show all the reports a
user can see. Use Pandora functions.
* operation/reporting/reporting_viewer.php: Show unknown label if SLA
can not be calculated.
* operation/snmpconsole/snmp_alert.php: Avoid an extra indentation
level by using check_login() properly. Tab and blankspaces correction.
* index.php, operation/users/user_edit.php: Adopted to renamed
function.
* godmode/db/db_sanity.php, reporting/fgraph.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 11:01:12 +02:00
?>