2012-04-03 Vanessa Gil <vanessa.gil@artica.es>

* operation/messages/message_edit.php: Show user name
	instead id and send messages for all group.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5887 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-04-03 15:31:20 +00:00
parent 12af21cb24
commit d485df64b8
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-04-03 Vanessa Gil <vanessa.gil@artica.es>
* operation/messages/message_edit.php: Show user name
instead id and send messages for all group.
2012-04-03 Vanessa Gil <vanessa.gil@artica.es> 2012-04-03 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_groups.php: * include/functions_groups.php:

View File

@ -65,6 +65,11 @@ if ($read_message) {
$user_name = $message["id_usuario_origen"]; $user_name = $message["id_usuario_origen"];
} }
$dst_name = get_user_fullname ($message["id_usuario_destino"]);
if (!$dst_name) {
$dst_name = $message["id_usuario_destino"];
}
$table->width = '98%'; $table->width = '98%';
$table->data = array(); $table->data = array();
@ -72,7 +77,7 @@ if ($read_message) {
$table->data[0][1] = $user_name.' '.__('at').' ' . ui_print_timestamp ($message["timestamp"], true, array ("prominent" => "timestamp")); $table->data[0][1] = $user_name.' '.__('at').' ' . ui_print_timestamp ($message["timestamp"], true, array ("prominent" => "timestamp"));
$table->data[1][0] = __('To:'); $table->data[1][0] = __('To:');
$table->data[1][1] = $message["id_usuario_destino"]; $table->data[1][1] = $dst_name;
$table->data[2][0] = __('Subject'); $table->data[2][0] = __('Subject');
$table->data[2][1] = html_print_input_text_extended ("subject", $message["subject"], 'text-subject', '', 50, 70, true, false, '', 'readonly'); $table->data[2][1] = html_print_input_text_extended ("subject", $message["subject"], 'text-subject', '', 50, 70, true, false, '', 'readonly');
@ -128,7 +133,7 @@ if (($new_msg) && (!empty ($dst_user)) && (!$reply)) {
} }
// Create message (destination group) // Create message (destination group)
if (($new_msg) && (!empty ($dst_group)) && (!$reply)) { if (($new_msg) && ($dst_group!='') && (!$reply)) {
$return = messages_create_group ($config["id_user"], $dst_group, $subject, $message); $return = messages_create_group ($config["id_user"], $dst_group, $subject, $message);
ui_print_result_message ($return, ui_print_result_message ($return,