Change sec url string in message and vconsole section - #688 - 2
This commit is contained in:
parent
86a4ca2a80
commit
ee128242bc
|
@ -51,7 +51,7 @@ $pure = get_parameter('pure', 0);
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'new':
|
case 'new':
|
||||||
if (!defined('METACONSOLE')) {
|
if (!defined('METACONSOLE')) {
|
||||||
echo "<form id='back' method='post' action='index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&tab=" . $activeTab . "' enctype='multipart/form-data'>";
|
echo "<form id='back' method='post' action='index.php?sec=network&sec2=godmode/reporting/visual_console_builder&tab=" . $activeTab . "' enctype='multipart/form-data'>";
|
||||||
html_print_input_hidden('action', 'save');
|
html_print_input_hidden('action', 'save');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -63,7 +63,7 @@ switch ($action) {
|
||||||
case 'update':
|
case 'update':
|
||||||
case 'save':
|
case 'save':
|
||||||
if (!defined('METACONSOLE')) {
|
if (!defined('METACONSOLE')) {
|
||||||
echo "<form id='back' method='post' action='index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&tab=" . $activeTab . "&id_visual_console=" . $idVisualConsole . "' enctype='multipart/form-data'>";
|
echo "<form id='back' method='post' action='index.php?sec=network&sec2=godmode/reporting/visual_console_builder&tab=" . $activeTab . "&id_visual_console=" . $idVisualConsole . "' enctype='multipart/form-data'>";
|
||||||
html_print_input_hidden('action', 'update');
|
html_print_input_hidden('action', 'update');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -74,7 +74,7 @@ switch ($action) {
|
||||||
break;
|
break;
|
||||||
case 'edit':
|
case 'edit':
|
||||||
if (!defined('METACONSOLE')) {
|
if (!defined('METACONSOLE')) {
|
||||||
echo "<form id='back' method='post' action='index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&tab=" . $activeTab . "&id_visual_console=" . $idVisualConsole . "' enctype='multipart/form-data'>";
|
echo "<form id='back' method='post' action='index.php?sec=network&sec2=godmode/reporting/visual_console_builder&tab=" . $activeTab . "&id_visual_console=" . $idVisualConsole . "' enctype='multipart/form-data'>";
|
||||||
html_print_input_hidden('action', 'update');
|
html_print_input_hidden('action', 'update');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -31,15 +31,15 @@ $reply = get_parameter('reply', 0);
|
||||||
$show_sent = get_parameter('show_sent', 0);
|
$show_sent = get_parameter('show_sent', 0);
|
||||||
|
|
||||||
$buttons['message_list'] = array('active' => false,
|
$buttons['message_list'] = array('active' => false,
|
||||||
'text' => '<a href="index.php?sec=workspace&sec2=operation/messages/message_list">' .
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_list">' .
|
||||||
html_print_image("images/email_inbox.png", true, array ("title" => __('Received messages'))) .'</a>');
|
html_print_image("images/email_inbox.png", true, array ("title" => __('Received messages'))) .'</a>');
|
||||||
|
|
||||||
$buttons['sent_messages'] = array('active' => false,
|
$buttons['sent_messages'] = array('active' => false,
|
||||||
'text' => '<a href="index.php?sec=workspace&sec2=operation/messages/message_list&show_sent=1">' .
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1">' .
|
||||||
html_print_image("images/email_outbox.png", true, array ("title" => __('Sent messages'))) .'</a>');
|
html_print_image("images/email_outbox.png", true, array ("title" => __('Sent messages'))) .'</a>');
|
||||||
|
|
||||||
$buttons['create_message'] = array('active' => true,
|
$buttons['create_message'] = array('active' => true,
|
||||||
'text' => '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit">' .
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit">' .
|
||||||
html_print_image("images/new_message.png", true, array ("title" => __('Create message'))) .'</a>');
|
html_print_image("images/new_message.png", true, array ("title" => __('Create message'))) .'</a>');
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
|
@ -103,14 +103,14 @@ if ($read_message) {
|
||||||
//Start the message much like an e-mail reply
|
//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"];
|
$new_msg = "\n\n\nOn ".date ($config["date_format"], $message["timestamp"]).' '.$user_name.' '.__('wrote').":\n\n".$message["mensaje"];
|
||||||
|
|
||||||
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/messages/message_list&show_sent=1&delete_message=1&id='.$message_id.'">';
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1&delete_message=1&id='.$message_id.'">';
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
echo "<div style=' text-align: right; width:" . $table->width . "'>";
|
echo "<div style=' text-align: right; width:" . $table->width . "'>";
|
||||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/messages/message_edit&new_msg=1&reply=1">';
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_edit&new_msg=1&reply=1">';
|
||||||
html_print_input_hidden ("dst_user", $message["id_usuario_origen"]);
|
html_print_input_hidden ("dst_user", $message["id_usuario_origen"]);
|
||||||
html_print_input_hidden ("subject", $new_subj);
|
html_print_input_hidden ("subject", $new_subj);
|
||||||
html_print_input_hidden ("message", $new_msg);
|
html_print_input_hidden ("message", $new_msg);
|
||||||
|
@ -210,7 +210,7 @@ $table->data[2][1] = html_print_input_text ("subject", $subject, '', 50, 70, tru
|
||||||
$table->data[3][0] = __('Message');
|
$table->data[3][0] = __('Message');
|
||||||
$table->data[3][1] = html_print_textarea ("message", 15, 255, $message, '', true);
|
$table->data[3][1] = html_print_textarea ("message", 15, 255, $message, '', true);
|
||||||
|
|
||||||
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/messages/message_edit&new_msg=1">';
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_edit&new_msg=1">';
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
|
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
|
|
|
@ -28,15 +28,15 @@ if ($show_sent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$buttons['message_list'] = array('active' => $active_list,
|
$buttons['message_list'] = array('active' => $active_list,
|
||||||
'text' => '<a href="index.php?sec=workspace&sec2=operation/messages/message_list">' .
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_list">' .
|
||||||
html_print_image("images/email_inbox.png", true, array ("title" => __('Received messages'))) .'</a>');
|
html_print_image("images/email_inbox.png", true, array ("title" => __('Received messages'))) .'</a>');
|
||||||
|
|
||||||
$buttons['sent_messages'] = array('active' => $active_sent,
|
$buttons['sent_messages'] = array('active' => $active_sent,
|
||||||
'text' => '<a href="index.php?sec=workspace&sec2=operation/messages/message_list&show_sent=1">' .
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1">' .
|
||||||
html_print_image("images/email_outbox.png", true, array ("title" => __('Sent messages'))) .'</a>');
|
html_print_image("images/email_outbox.png", true, array ("title" => __('Sent messages'))) .'</a>');
|
||||||
|
|
||||||
$buttons['create_message'] = array('active' => false,
|
$buttons['create_message'] = array('active' => false,
|
||||||
'text' => '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit">' .
|
'text' => '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit">' .
|
||||||
html_print_image("images/new_message.png", true, array ("title" => __('Create message'))) .'</a>');
|
html_print_image("images/new_message.png", true, array ("title" => __('Create message'))) .'</a>');
|
||||||
|
|
||||||
if (!is_ajax ()) {
|
if (!is_ajax ()) {
|
||||||
|
@ -132,24 +132,24 @@ else {
|
||||||
$data[0] = '';
|
$data[0] = '';
|
||||||
if ($message["status"] == 1) {
|
if ($message["status"] == 1) {
|
||||||
if ($show_sent) {
|
if ($show_sent) {
|
||||||
$data[0] .= '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit&read_message=1&show_sent=1&id_message='.$message_id.'">';
|
$data[0] .= '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit&read_message=1&show_sent=1&id_message='.$message_id.'">';
|
||||||
$data[0] .= html_print_image ("images/email_open.png", true, array ("border" => 0, "title" => __('Click to read')));
|
$data[0] .= html_print_image ("images/email_open.png", true, array ("border" => 0, "title" => __('Click to read')));
|
||||||
$data[0] .= '</a>';
|
$data[0] .= '</a>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[0] .= '<a href="index.php?sec=workspace&sec2=operation/messages/message_list&mark_unread=1&id_message='.$message_id.'">';
|
$data[0] .= '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&mark_unread=1&id_message='.$message_id.'">';
|
||||||
$data[0] .= html_print_image ("images/email_open.png", true, array ("border" => 0, "title" => __('Mark as unread')));
|
$data[0] .= html_print_image ("images/email_open.png", true, array ("border" => 0, "title" => __('Mark as unread')));
|
||||||
$data[0] .= '</a>';
|
$data[0] .= '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($show_sent) {
|
if ($show_sent) {
|
||||||
$data[0] .= '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit&read_message=1&show_sent=1&id_message='.$message_id.'">';
|
$data[0] .= '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit&read_message=1&show_sent=1&id_message='.$message_id.'">';
|
||||||
$data[0] .= html_print_image ("images/email.png", true, array ("border" => 0, "title" => __('Message unread - click to read')));
|
$data[0] .= html_print_image ("images/email.png", true, array ("border" => 0, "title" => __('Message unread - click to read')));
|
||||||
$data[0] .= '</a>';
|
$data[0] .= '</a>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[0] .= '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit&read_message=1&id_message='.$message_id.'">';
|
$data[0] .= '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit&read_message=1&id_message='.$message_id.'">';
|
||||||
$data[0] .= html_print_image ("images/email.png", true, array ("border" => 0, "title" => __('Message unread - click to read')));
|
$data[0] .= html_print_image ("images/email.png", true, array ("border" => 0, "title" => __('Message unread - click to read')));
|
||||||
$data[0] .= '</a>';
|
$data[0] .= '</a>';
|
||||||
}
|
}
|
||||||
|
@ -171,10 +171,10 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show_sent) {
|
if ($show_sent) {
|
||||||
$data[2] = '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit&read_message=1&show_sent=1&id_message='.$message_id.'">';
|
$data[2] = '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit&read_message=1&show_sent=1&id_message='.$message_id.'">';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[2] = '<a href="index.php?sec=workspace&sec2=operation/messages/message_edit&read_message=1&id_message='.$message_id.'">';
|
$data[2] = '<a href="index.php?sec=message_list&sec2=operation/messages/message_edit&read_message=1&id_message='.$message_id.'">';
|
||||||
}
|
}
|
||||||
if ($message["subject"] == "") {
|
if ($message["subject"] == "") {
|
||||||
$data[2] .= __('No Subject');
|
$data[2] .= __('No Subject');
|
||||||
|
@ -189,13 +189,13 @@ else {
|
||||||
array ("prominent" => "timestamp"));
|
array ("prominent" => "timestamp"));
|
||||||
|
|
||||||
if ($show_sent) {
|
if ($show_sent) {
|
||||||
$data[4] = '<a href="index.php?sec=workspace&sec2=operation/messages/message_list&show_sent=1&delete_message=1&id='.$message_id.'"
|
$data[4] = '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1&delete_message=1&id='.$message_id.'"
|
||||||
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
||||||
html_print_image ('images/cross.png', true, array("title" => __('Delete'))) . '</a>'.
|
html_print_image ('images/cross.png', true, array("title" => __('Delete'))) . '</a>'.
|
||||||
html_print_checkbox_extended ('delete_multiple[]', $message_id, false, false, '', 'class="check_delete"', true);
|
html_print_checkbox_extended ('delete_multiple[]', $message_id, false, false, '', 'class="check_delete"', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[4] = '<a href="index.php?sec=workspace&sec2=operation/messages/message_list&delete_message=1&id='.$message_id.'"
|
$data[4] = '<a href="index.php?sec=message_list&sec2=operation/messages/message_list&delete_message=1&id='.$message_id.'"
|
||||||
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
|
||||||
html_print_image ('images/cross.png', true, array("title" => __('Delete'))) . '</a>'.
|
html_print_image ('images/cross.png', true, array("title" => __('Delete'))) . '</a>'.
|
||||||
html_print_checkbox_extended ('delete_multiple[]', $message_id, false, false, '', 'class="check_delete"', true);
|
html_print_checkbox_extended ('delete_multiple[]', $message_id, false, false, '', 'class="check_delete"', true);
|
||||||
|
@ -207,10 +207,10 @@ else {
|
||||||
|
|
||||||
if (!empty($messages)) {
|
if (!empty($messages)) {
|
||||||
if ($show_sent) {
|
if ($show_sent) {
|
||||||
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/messages/message_list&show_sent=1">';
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_list&show_sent=1">';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/messages/message_list">';
|
echo '<form method="post" action="index.php?sec=message_list&sec2=operation/messages/message_list">';
|
||||||
}
|
}
|
||||||
html_print_input_hidden('multiple_delete', 1);
|
html_print_input_hidden('multiple_delete', 1);
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
|
@ -222,7 +222,7 @@ if (!empty($messages)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<div style='float: right;'>";
|
echo "<div style='float: right;'>";
|
||||||
echo '<form method="post" style="float:right;" action="index.php?sec=workspace&sec2=operation/messages/message_edit">';
|
echo '<form method="post" style="float:right;" action="index.php?sec=message_list&sec2=operation/messages/message_edit">';
|
||||||
html_print_submit_button (__('Create message'), 'create', false, 'class="sub next" style="margin-right:5px;"');
|
html_print_submit_button (__('Create message'), 'create', false, 'class="sub next" style="margin-right:5px;"');
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
|
Loading…
Reference in New Issue