mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2010-06-08 Raul Mateos <raulofpandora@gmail.com>
* operation/incidents/incident_detail.php, operation/incidents/incident.php: cleaned code, improved button usability. TODO: Use links instead buttons where adding notes. * operation/incidents/events.php: Cleaned code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
8f2259ea41
commit
b2bde2c85f
@ -1,3 +1,11 @@
|
|||||||
|
2010-06-08 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
|
* operation/incidents/incident_detail.php,
|
||||||
|
operation/incidents/incident.php: cleaned code, improved button usability.
|
||||||
|
TODO: Use links instead buttons where adding notes.
|
||||||
|
|
||||||
|
* operation/incidents/events.php: Cleaned code.
|
||||||
|
|
||||||
2010-06-08 Ramon Novoa <rnovoa@artica.es>
|
2010-06-08 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* pandoradb_data.sql, DEBIAN/control,
|
* pandoradb_data.sql, DEBIAN/control,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||||||
// Please see http://pandorafms.org for full contribution list
|
// Please see http://pandorafms.org for full contribution list
|
||||||
|
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
|
@ -262,7 +262,7 @@ if ($count < 1) {
|
|||||||
$table->head[5] = __('Updated');
|
$table->head[5] = __('Updated');
|
||||||
$table->head[6] = __('Source');
|
$table->head[6] = __('Source');
|
||||||
$table->head[7] = __('Owner');
|
$table->head[7] = __('Owner');
|
||||||
$table->head[8] = 'X';
|
$table->head[8] = __('Action');
|
||||||
|
|
||||||
$table->size[0] = 43;
|
$table->size[0] = 43;
|
||||||
$table->size[7] = 50;
|
$table->size[7] = 50;
|
||||||
@ -291,17 +291,11 @@ if ($count < 1) {
|
|||||||
$data[0] .= ' '.print_image ("images/attachment.png", true, array ("style" => "align:middle;"));
|
$data[0] .= ' '.print_image ("images/attachment.png", true, array ("style" => "align:middle;"));
|
||||||
|
|
||||||
$data[1] = print_incidents_status_img ($row["estado"], true);
|
$data[1] = print_incidents_status_img ($row["estado"], true);
|
||||||
|
|
||||||
$data[2] = '<a href="index.php?sec=incidencias&sec2=operation/incidents/incident_detail&id='.$row["id_incidencia"].'">'.substr(safe_output($row["titulo"]),0,45).'</a>';
|
$data[2] = '<a href="index.php?sec=incidencias&sec2=operation/incidents/incident_detail&id='.$row["id_incidencia"].'">'.substr(safe_output($row["titulo"]),0,45).'</a>';
|
||||||
|
|
||||||
$data[3] = print_incidents_priority_img ($row["prioridad"], true);
|
$data[3] = print_incidents_priority_img ($row["prioridad"], true);
|
||||||
|
|
||||||
$data[4] = print_group_icon ($row["id_grupo"], true);
|
$data[4] = print_group_icon ($row["id_grupo"], true);
|
||||||
|
|
||||||
$data[5] = print_timestamp ($row["actualizacion"], true);
|
$data[5] = print_timestamp ($row["actualizacion"], true);
|
||||||
|
|
||||||
$data[6] = $row["origen"];
|
$data[6] = $row["origen"];
|
||||||
|
|
||||||
$data[7] = print_username ($row["id_usuario"], true);
|
$data[7] = print_username ($row["id_usuario"], true);
|
||||||
|
|
||||||
if (give_acl ($config["id_user"], $row["id_grupo"], "IM") || $config["id_user"] == $row["id_usuario"] || $config["id_user"] == $row["id_creator"]) {
|
if (give_acl ($config["id_user"], $row["id_grupo"], "IM") || $config["id_user"] == $row["id_usuario"] || $config["id_user"] == $row["id_creator"]) {
|
||||||
@ -315,7 +309,8 @@ if ($count < 1) {
|
|||||||
|
|
||||||
echo '<form method="post" action="'.$url.'&action=mass" style="margin-bottom: 0px;">';
|
echo '<form method="post" action="'.$url.'&action=mass" style="margin-bottom: 0px;">';
|
||||||
print_table ($table);
|
print_table ($table);
|
||||||
echo '<div style="text-align:right; float:right; padding-right: 30px;">';
|
echo '<div style="text-align:right; float:right; padding-right: 2px;">';
|
||||||
|
echo '<b>'.__('Action').': </b>' ;
|
||||||
if (give_acl ($config["id_user"], 0, "IW")) {
|
if (give_acl ($config["id_user"], 0, "IW")) {
|
||||||
print_submit_button (__('Delete incidents'), 'delete_btn', false, 'class="sub delete"');
|
print_submit_button (__('Delete incidents'), 'delete_btn', false, 'class="sub delete"');
|
||||||
}
|
}
|
||||||
|
@ -199,7 +199,6 @@ echo "<script type=\"text/javascript\">
|
|||||||
});
|
});
|
||||||
});</script>";
|
});</script>";
|
||||||
|
|
||||||
|
|
||||||
if (isset ($id_inc)) { //If $id_inc is set (when $_GET["id"] is set, not $_GET["insert_form"]
|
if (isset ($id_inc)) { //If $id_inc is set (when $_GET["id"] is set, not $_GET["insert_form"]
|
||||||
print_page_header (__('Incident details'). ' #'.$id_inc, "images/book_edit.png", false, "", false, "");
|
print_page_header (__('Incident details'). ' #'.$id_inc, "images/book_edit.png", false, "", false, "");
|
||||||
echo '<form name="accion_form" method="POST" action="index.php?sec=incidencias&sec2=operation/incidents/incident&action=update">';
|
echo '<form name="accion_form" method="POST" action="index.php?sec=incidencias&sec2=operation/incidents/incident&action=update">';
|
||||||
@ -288,7 +287,7 @@ if ((give_acl ($config["id_user"], $id_grupo, "IM") == 1) OR ($usuario == $confi
|
|||||||
print_textarea ("descripcion", 15, 80, $texto, 'style="height:200px;" disabled');
|
print_textarea ("descripcion", 15, 80, $texto, 'style="height:200px;" disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</td></tr></table><div style="width: 600px; text-align:right;">';
|
echo '</td></tr></table><div style="width: 650px; text-align:right;">';
|
||||||
|
|
||||||
// Only if user is the used who opened incident or (s)he is admin
|
// Only if user is the used who opened incident or (s)he is admin
|
||||||
if (isset ($id_inc) AND ((give_acl ($config["id_user"], $id_grupo, "IM") == 1) OR ($usuario == $config["id_user"]))) {
|
if (isset ($id_inc) AND ((give_acl ($config["id_user"], $id_grupo, "IM") == 1) OR ($usuario == $config["id_user"]))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user