2012-03-28 16:54:27 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
|
|
|
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
|
|
|
|
// 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 for version 2.
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
// Load global vars
|
|
|
|
global $config;
|
|
|
|
|
|
|
|
require_once ('include/functions_users.php');
|
|
|
|
require_once ('include/functions_groups.php');
|
|
|
|
require_once ('include/functions_io.php');
|
|
|
|
|
|
|
|
//params
|
|
|
|
$new_msg = get_parameter('new_msg', 0);
|
|
|
|
$dst_user = get_parameter('dst_user');
|
|
|
|
$dst_group = get_parameter('dst_group');
|
|
|
|
$subject = get_parameter('subject', '');
|
|
|
|
$message = get_parameter('message');
|
|
|
|
$read_message = get_parameter('read_message', 0);
|
|
|
|
$reply = get_parameter('reply', 0);
|
|
|
|
$show_sent = get_parameter('show_sent', 0);
|
|
|
|
|
|
|
|
$buttons['message_list'] = array('active' => false,
|
2017-04-17 18:51:59 +02:00
|
|
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_list">' .
|
2013-04-10 09:57:54 +02:00
|
|
|
html_print_image("images/email_inbox.png", true, array ("title" => __('Received messages'))) .'</a>');
|
2012-03-28 16:54:27 +02:00
|
|
|
|
|
|
|
$buttons['sent_messages'] = array('active' => false,
|
2017-04-17 18:51:59 +02:00
|
|
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1">' .
|
2013-04-10 09:57:54 +02:00
|
|
|
html_print_image("images/email_outbox.png", true, array ("title" => __('Sent messages'))) .'</a>');
|
2013-06-18 13:38:54 +02:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
$buttons['create_message'] = array('active' => true,
|
2017-04-17 18:51:59 +02:00
|
|
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit">' .
|
2013-04-10 09:57:54 +02:00
|
|
|
html_print_image("images/new_message.png", true, array ("title" => __('Create message'))) .'</a>');
|
2013-06-18 13:38:54 +02:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
// Header
|
2013-04-10 09:57:54 +02:00
|
|
|
ui_print_page_header (__('Messages'), "images/email_mc.png", false, "", false, $buttons);
|
2012-03-28 16:54:27 +02:00
|
|
|
|
|
|
|
//read a message
|
|
|
|
if ($read_message) {
|
|
|
|
$message_id = (int) get_parameter ("id_message");
|
|
|
|
if ($show_sent) {
|
|
|
|
$message = messages_get_message_sent ($message_id);
|
2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/file_manager.php, godmode/setup/news.php,
godmode/users/configure_user.php, godmode/users/user_list.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_alerts.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/netflow/nf_edit.php, godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php, godmode/netflow/nf.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/estado_agente.php, operation/agentes/sla_view.php,
operation/agentes/tactical.php,
operation/agentes/estado_generalagente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/integria_incidents/incident_detail.php,
operation/gis_maps/index.php, operation/events/events_list.php,
operation/events/events.php, operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/graph_viewer.php, operation/search_reports.php,
operation/netflow/nf_view.php: cleaned source code.
* godmode/massive/massive_operations.php,
godmode/massive/massive_edit_modules.php: fixed the massive edition
of "any" module in agents.
Fixes: #3543484
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 18:38:48 +02:00
|
|
|
}
|
|
|
|
else {
|
2012-03-28 16:54:27 +02:00
|
|
|
$message = messages_get_message ($message_id);
|
|
|
|
messages_process_read ($message_id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($message == false) {
|
|
|
|
echo '<div>'.__('This message does not exist in the system').'</div>';
|
|
|
|
return; //Move out of this page and go processing other pages
|
|
|
|
}
|
|
|
|
|
|
|
|
$user_name = get_user_fullname ($message["id_usuario_origen"]);
|
|
|
|
if (!$user_name) {
|
|
|
|
$user_name = $message["id_usuario_origen"];
|
|
|
|
}
|
|
|
|
|
2012-04-03 17:31:20 +02:00
|
|
|
$dst_name = get_user_fullname ($message["id_usuario_destino"]);
|
|
|
|
if (!$dst_name) {
|
|
|
|
$dst_name = $message["id_usuario_destino"];
|
|
|
|
}
|
|
|
|
|
2015-06-25 10:07:53 +02:00
|
|
|
$table = new stdClass();
|
2015-06-12 15:50:46 +02:00
|
|
|
$table->width = '100%';
|
|
|
|
$table->class = 'databox filters';
|
2012-03-28 16:54:27 +02:00
|
|
|
$table->data = array();
|
|
|
|
|
2012-05-22 04:53:51 +02:00
|
|
|
$table->data[0][0] = __('Sender');
|
2012-03-28 16:54:27 +02:00
|
|
|
$table->data[0][1] = $user_name.' '.__('at').' ' . ui_print_timestamp ($message["timestamp"], true, array ("prominent" => "timestamp"));
|
|
|
|
|
2012-05-22 04:53:51 +02:00
|
|
|
$table->data[1][0] = __('Destination');
|
2012-04-03 17:31:20 +02:00
|
|
|
$table->data[1][1] = $dst_name;
|
2012-03-28 16:54:27 +02:00
|
|
|
|
|
|
|
$table->data[2][0] = __('Subject');
|
|
|
|
$table->data[2][1] = html_print_input_text_extended ("subject", $message["subject"], 'text-subject', '', 50, 70, true, false, '', 'readonly');
|
2013-01-30 14:53:02 +01:00
|
|
|
|
|
|
|
$order = array("\r\n", "\n", "\r");
|
2012-03-28 16:54:27 +02:00
|
|
|
$replace = '<br />';
|
|
|
|
$parsed_message = str_replace($order, $replace, $message["mensaje"]);
|
|
|
|
|
|
|
|
$table->data[3][0] = __('Message');
|
|
|
|
$table->data[3][1] = html_print_textarea ("message", 15, 255, $message["mensaje"], 'readonly', true);
|
2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/file_manager.php, godmode/setup/news.php,
godmode/users/configure_user.php, godmode/users/user_list.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_alerts.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/netflow/nf_edit.php, godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php, godmode/netflow/nf.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/estado_agente.php, operation/agentes/sla_view.php,
operation/agentes/tactical.php,
operation/agentes/estado_generalagente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/integria_incidents/incident_detail.php,
operation/gis_maps/index.php, operation/events/events_list.php,
operation/events/events.php, operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/graph_viewer.php, operation/search_reports.php,
operation/netflow/nf_view.php: cleaned source code.
* godmode/massive/massive_operations.php,
godmode/massive/massive_edit_modules.php: fixed the massive edition
of "any" module in agents.
Fixes: #3543484
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 18:38:48 +02:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
//Prevent RE: RE: RE:
|
|
|
|
if (strstr ($message["subject"], "RE:")) {
|
|
|
|
$new_subj = $message["subject"];
|
2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/file_manager.php, godmode/setup/news.php,
godmode/users/configure_user.php, godmode/users/user_list.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_alerts.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/netflow/nf_edit.php, godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php, godmode/netflow/nf.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/estado_agente.php, operation/agentes/sla_view.php,
operation/agentes/tactical.php,
operation/agentes/estado_generalagente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/integria_incidents/incident_detail.php,
operation/gis_maps/index.php, operation/events/events_list.php,
operation/events/events.php, operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/graph_viewer.php, operation/search_reports.php,
operation/netflow/nf_view.php: cleaned source code.
* godmode/massive/massive_operations.php,
godmode/massive/massive_edit_modules.php: fixed the massive edition
of "any" module in agents.
Fixes: #3543484
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 18:38:48 +02:00
|
|
|
}
|
|
|
|
else {
|
2012-03-28 16:54:27 +02:00
|
|
|
$new_subj = "RE: ".$message["subject"];
|
|
|
|
}
|
|
|
|
|
|
|
|
//Start the message much like an e-mail reply
|
|
|
|
$new_msg = "\n\n\nOn ".date ($config["date_format"], $message["timestamp"]).' '.$user_name.' '.__('wrote').":\n\n".$message["mensaje"];
|
|
|
|
|
2017-04-17 18:51:59 +02:00
|
|
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1&delete_message=1&id='.$message_id.'">';
|
2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/file_manager.php, godmode/setup/news.php,
godmode/users/configure_user.php, godmode/users/user_list.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_alerts.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/netflow/nf_edit.php, godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php, godmode/netflow/nf.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/estado_agente.php, operation/agentes/sla_view.php,
operation/agentes/tactical.php,
operation/agentes/estado_generalagente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/integria_incidents/incident_detail.php,
operation/gis_maps/index.php, operation/events/events_list.php,
operation/events/events.php, operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/graph_viewer.php, operation/search_reports.php,
operation/netflow/nf_view.php: cleaned source code.
* godmode/massive/massive_operations.php,
godmode/massive/massive_edit_modules.php: fixed the massive edition
of "any" module in agents.
Fixes: #3543484
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 18:38:48 +02:00
|
|
|
html_print_table($table);
|
2015-06-12 15:50:46 +02:00
|
|
|
echo "<div style=' text-align: right; width:" . $table->width . "'>";
|
2012-03-28 16:54:27 +02:00
|
|
|
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
|
|
|
echo "</div>";
|
2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/file_manager.php, godmode/setup/news.php,
godmode/users/configure_user.php, godmode/users/user_list.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_alerts.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/netflow/nf_edit.php, godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php, godmode/netflow/nf.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/estado_agente.php, operation/agentes/sla_view.php,
operation/agentes/tactical.php,
operation/agentes/estado_generalagente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/integria_incidents/incident_detail.php,
operation/gis_maps/index.php, operation/events/events_list.php,
operation/events/events.php, operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/graph_viewer.php, operation/search_reports.php,
operation/netflow/nf_view.php: cleaned source code.
* godmode/massive/massive_operations.php,
godmode/massive/massive_edit_modules.php: fixed the massive edition
of "any" module in agents.
Fixes: #3543484
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 18:38:48 +02:00
|
|
|
echo "</form>";
|
2012-03-28 16:54:27 +02:00
|
|
|
|
2017-04-17 18:51:59 +02:00
|
|
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_edit&new_msg=1&reply=1">';
|
2012-03-28 16:54:27 +02:00
|
|
|
html_print_input_hidden ("dst_user", $message["id_usuario_origen"]);
|
|
|
|
html_print_input_hidden ("subject", $new_subj);
|
|
|
|
html_print_input_hidden ("message", $new_msg);
|
|
|
|
html_print_input_hidden ("orig_user", $message["id_usuario_destino"]);
|
2015-06-12 15:50:46 +02:00
|
|
|
echo "<div style='text-align: right; width:" . $table->width . "'>";
|
2012-03-28 16:54:27 +02:00
|
|
|
html_print_submit_button (__('Reply'), 'reply', false, 'class="sub next"');
|
|
|
|
echo '</div>';
|
|
|
|
echo '</form>';
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create message (destination user)
|
|
|
|
if (($new_msg) && (!empty ($dst_user)) && (!$reply)) {
|
|
|
|
$return = messages_create_message ($config["id_user"], $dst_user, $subject, $message);
|
2013-01-30 14:53:02 +01:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
$user_name = get_user_fullname ($dst_user);
|
|
|
|
if (!$user_name) {
|
|
|
|
$user_name = $dst_user;
|
|
|
|
}
|
2013-06-18 13:38:54 +02:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
ui_print_result_message ($return,
|
|
|
|
__('Message successfully sent to user %s', $user_name),
|
|
|
|
__('Error sending message to user %s', $user_name));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create message (destination group)
|
2012-04-03 17:31:20 +02:00
|
|
|
if (($new_msg) && ($dst_group!='') && (!$reply)) {
|
2012-03-28 16:54:27 +02:00
|
|
|
$return = messages_create_group ($config["id_user"], $dst_group, $subject, $message);
|
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
ui_print_result_message ($return,
|
|
|
|
__('Message successfully sent'),
|
|
|
|
__('Error sending message to group %s', groups_get_name ($dst_group)));
|
2012-12-17 17:50:38 +01:00
|
|
|
}
|
2012-03-28 16:54:27 +02:00
|
|
|
|
|
|
|
//message creation form
|
|
|
|
|
|
|
|
//user info
|
|
|
|
$own_info = get_user_info ($config['id_user']);
|
|
|
|
|
2015-06-25 10:40:35 +02:00
|
|
|
$table = new stdClass();
|
2015-06-12 15:50:46 +02:00
|
|
|
$table->width = '100%';
|
|
|
|
$table->class = 'databox filters';
|
2012-03-28 16:54:27 +02:00
|
|
|
|
|
|
|
$table->data = array();
|
|
|
|
|
2012-05-22 04:53:51 +02:00
|
|
|
$table->data[0][0] = __('Sender');
|
2012-03-28 16:54:27 +02:00
|
|
|
|
|
|
|
if (!empty($own_info['fullname'])) {
|
|
|
|
$table->data[0][1] = $own_info['fullname'];
|
2012-07-25 11:59:03 +02:00
|
|
|
}
|
|
|
|
else {
|
2012-03-28 16:54:27 +02:00
|
|
|
$table->data[0][1] = $config['id_user'];
|
|
|
|
}
|
|
|
|
|
2012-05-22 04:53:51 +02:00
|
|
|
$table->data[1][0] = __('Destination');
|
2012-03-28 16:54:27 +02:00
|
|
|
|
2013-06-18 13:38:54 +02:00
|
|
|
$is_admin = (bool)db_get_value('is_admin', 'tusuario', 'id_user', $config['id_user']);
|
|
|
|
|
|
|
|
if ($is_admin) {
|
|
|
|
$users_full = db_get_all_rows_filter('tusuario', array(), array('id_user', 'fullname'));
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$users_full = groups_get_users (array_keys(users_get_groups()), false, false);
|
|
|
|
}
|
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
$users = array();
|
|
|
|
foreach ($users_full as $user_id => $user_info) {
|
|
|
|
$users[$user_info['id_user']] = $user_info['fullname'];
|
|
|
|
}
|
|
|
|
|
2013-06-18 13:38:54 +02:00
|
|
|
//Check if the user to reply is in the list, if not add reply user
|
|
|
|
if ($reply) {
|
|
|
|
if (!array_key_exists($dst_user, $users)) {
|
|
|
|
//Add the user to reply
|
|
|
|
$user_reply = db_get_row('tusuario', 'id_user', $dst_user);
|
|
|
|
$users[$user_reply['id_user']] = $user_reply['fullname'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
|
|
|
$return_all_groups = true;
|
2012-07-25 11:59:03 +02:00
|
|
|
else
|
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
|
|
|
$return_all_groups = false;
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-03-28 16:54:27 +02:00
|
|
|
$groups = users_get_groups ($config["id_user"], "AR"); //Get a list of all groups
|
|
|
|
|
|
|
|
$table->data[1][1] = html_print_select ($users, "dst_user", $dst_user, '', __('Select user'), false, true, false, '', false);
|
|
|
|
$table->data[1][1] .= ' '.__('OR').' ';
|
|
|
|
$table->data[1][1] .= html_print_select_groups($config['id_user'], "AR", $return_all_groups, 'dst_group', $dst_group, '', __('Select group'), '', true);
|
|
|
|
|
|
|
|
$table->data[2][0] = __('Subject');
|
|
|
|
$table->data[2][1] = html_print_input_text ("subject", $subject, '', 50, 70, true);
|
|
|
|
|
|
|
|
$table->data[3][0] = __('Message');
|
|
|
|
$table->data[3][1] = html_print_textarea ("message", 15, 255, $message, '', true);
|
|
|
|
|
2017-04-17 18:51:59 +02:00
|
|
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_edit&new_msg=1">';
|
2012-03-28 16:54:27 +02:00
|
|
|
html_print_table($table);
|
|
|
|
|
|
|
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
|
|
|
html_print_submit_button (__('Send message'), 'send_mes', false, 'class="sub wand"');
|
2012-03-28 16:54:27 +02:00
|
|
|
echo '</form>';
|
|
|
|
echo '</div>';
|
|
|
|
?>
|