mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2013-02-04 Miguel de Dios <miguel.dedios@artica.es>
* operation/search_modules.php: added edit button when the user can edit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7568 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
19b67559ae
commit
5277e8928b
@ -1,3 +1,8 @@
|
|||||||
|
2013-02-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/search_modules.php: added edit button when the user can
|
||||||
|
edit.
|
||||||
|
|
||||||
2013-02-04 Miguel de Dios <miguel.dedios@artica.es>
|
2013-02-04 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* install.php: cleaned source code style.
|
* install.php: cleaned source code style.
|
||||||
|
@ -179,6 +179,7 @@ else {
|
|||||||
$table->head[5] = __('Graph');
|
$table->head[5] = __('Graph');
|
||||||
$table->head[6] = __('Data');
|
$table->head[6] = __('Data');
|
||||||
$table->head[7] = __('Timestamp');
|
$table->head[7] = __('Timestamp');
|
||||||
|
$table->head[8] = "";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -191,6 +192,7 @@ else {
|
|||||||
$table->align[5] = "center";
|
$table->align[5] = "center";
|
||||||
$table->align[6] = "right";
|
$table->align[6] = "right";
|
||||||
$table->align[7] = "right";
|
$table->align[7] = "right";
|
||||||
|
$table->align[8] = "center";
|
||||||
|
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
|
|
||||||
@ -252,7 +254,7 @@ else {
|
|||||||
if (is_numeric($module["datos"]))
|
if (is_numeric($module["datos"]))
|
||||||
$dataCell = format_numeric($module["datos"]);
|
$dataCell = format_numeric($module["datos"]);
|
||||||
else
|
else
|
||||||
$dataCell = "<span title='".$module['datos']."' style='white-space: nowrap;'>".substr(io_safe_output($module["datos"]),0,12)."</span>";
|
$dataCell = "<span title='" . $module['datos'] . "' style='white-space: nowrap;'>".substr(io_safe_output($module["datos"]),0,12)."</span>";
|
||||||
|
|
||||||
if ($module['estado'] == 3) {
|
if ($module['estado'] == 3) {
|
||||||
$option = array ("html_attr" => 'class="redb"');
|
$option = array ("html_attr" => 'class="redb"');
|
||||||
@ -263,6 +265,23 @@ else {
|
|||||||
$timestampCell = ui_print_timestamp ($module["utimestamp"], true, $option);
|
$timestampCell = ui_print_timestamp ($module["utimestamp"], true, $option);
|
||||||
|
|
||||||
|
|
||||||
|
$group_agent = agents_get_agent_group($module['id_agente']);
|
||||||
|
|
||||||
|
if (check_acl ($config['id_user'], $group_agent, "AW")) {
|
||||||
|
$edit_module = 'aaa';
|
||||||
|
|
||||||
|
$url_edit = "index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente="
|
||||||
|
. $module['id_agente'] . "&tab=module&id_agent_module=" .
|
||||||
|
$module["id_agente_modulo"] . "&edit_module=1";
|
||||||
|
|
||||||
|
$edit_module = '<a href="' . $url_edit . '">' .
|
||||||
|
html_print_image("images/config.png") . '</a>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$edit_module = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
array_push($table->data, array(
|
array_push($table->data, array(
|
||||||
$module['module_name'],
|
$module['module_name'],
|
||||||
$agentCell,
|
$agentCell,
|
||||||
@ -271,7 +290,8 @@ else {
|
|||||||
$statusCell,
|
$statusCell,
|
||||||
$graphCell,
|
$graphCell,
|
||||||
$dataCell,
|
$dataCell,
|
||||||
$timestampCell));
|
$timestampCell,
|
||||||
|
$edit_module));
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user