2010-05-10 Sergio Martin <sergio.martin@artica.es>
* operation/messages/message.php: Fixed the messages over the header for bug: 2993495 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2682 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4be07dee5b
commit
e8849a2c8b
|
@ -1,3 +1,8 @@
|
|||
2010-05-10 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/messages/message.php: Fixed the messages
|
||||
over the header for bug: 2993495
|
||||
|
||||
2010-05-10 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/agentes/massive_edit_modules.php: Fixed the
|
||||
|
|
|
@ -25,6 +25,14 @@ $dest_group = get_parameter ("dest_group");
|
|||
$subject = get_parameter ("subject");
|
||||
$message = get_parameter ("mensaje");
|
||||
|
||||
if (isset ($_GET["new_msg"]))
|
||||
print_page_header (__('Messages'). " » ".__('New message'), "images/email.png", false, "", false, "" );
|
||||
elseif (isset ($_GET["read_message"]))
|
||||
print_page_header (__('Messages'). " » ".__('Read message'), "images/email.png", false, "", false, "" );
|
||||
if (isset ($_GET["read_message"]) || !isset ($_GET["new_msg"]))
|
||||
if (empty ($config["pure"]) && !is_ajax ())
|
||||
print_page_header (__('Messages'). " » ".__('Message overview'), "images/email.png", false, "", false, "" );
|
||||
|
||||
if (isset ($_POST["delete_message"])) {
|
||||
$id = (int) get_parameter_post ("delete_message");
|
||||
$result = delete_message ($id); //Delete message function will actually check the credentials
|
||||
|
@ -65,7 +73,7 @@ if (isset ($_GET["mark_read"]) || isset ($_GET["mark_unread"])) {
|
|||
if (isset ($_GET["new_msg"])) { //create message
|
||||
|
||||
// Header
|
||||
print_page_header (__('Messages'). " » ".__('New message'), "images/email.png", false, "", false, "" );
|
||||
// print_page_header (__('Messages'). " » ".__('New message'), "images/email.png", false, "", false, "" );
|
||||
|
||||
echo '<form method="POST" action="index.php?sec=messages&sec2=operation/messages/message&send_message=1">
|
||||
<table width="85%" class="databox_color" cellpadding="4" cellspacing="4">
|
||||
|
@ -98,7 +106,7 @@ if (isset ($_GET["new_msg"])) { //create message
|
|||
|
||||
} elseif (isset ($_GET["read_message"])) {
|
||||
|
||||
print_page_header (__('Messages'). " » ".__('Read message'), "images/email.png", false, "", false, "" );
|
||||
// print_page_header (__('Messages'). " » ".__('Read message'), "images/email.png", false, "", false, "" );
|
||||
|
||||
$message_id = (int) get_parameter ("read_message");
|
||||
$message = get_message ($message_id);
|
||||
|
@ -150,9 +158,9 @@ if (isset ($_GET["new_msg"])) { //create message
|
|||
}
|
||||
|
||||
if (isset ($_GET["read_message"]) || !isset ($_GET["new_msg"])) {
|
||||
if (empty ($config["pure"]) && !is_ajax ()) {
|
||||
print_page_header (__('Messages'). " » ".__('Message overview'), "images/email.png", false, "", false, "" );
|
||||
}
|
||||
// if (empty ($config["pure"]) && !is_ajax ()) {
|
||||
// print_page_header (__('Messages'). " » ".__('Message overview'), "images/email.png", false, "", false, "" );
|
||||
// }
|
||||
|
||||
//Get number of messages
|
||||
$num_messages = get_message_count ($config["id_user"]);
|
||||
|
|
Loading…
Reference in New Issue