2013-04-22 Miguel de Dios <miguel.dedios@artica.es>
* operation/users/user_edit.php, include/functions_graph.php: improved the source code style. * mobile/operation/agent.php, mobile/operation/modules.php: somes fixes. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8027 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
93db4748b3
commit
0994dcdbb7
|
@ -1,3 +1,11 @@
|
|||
2013-04-22 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/users/user_edit.php, include/functions_graph.php:
|
||||
improved the source code style.
|
||||
|
||||
* mobile/operation/agent.php, mobile/operation/modules.php: somes
|
||||
fixes.
|
||||
|
||||
2013-04-22 Mario Pulido <mario.pulido@artica.es>
|
||||
|
||||
* include/help/es/help_alerts.php,
|
||||
|
|
|
@ -1371,9 +1371,9 @@ function graph_alert_status ($defined_alerts, $fired_alerts, $width = 300, $heig
|
|||
|
||||
// If any value is negative, truncate it to 0
|
||||
function truncate_negatives(&$element) {
|
||||
if($element < 0) {
|
||||
$element = 0;
|
||||
}
|
||||
if ($element < 0) {
|
||||
$element = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -136,7 +136,7 @@ class Agent {
|
|||
|
||||
|
||||
$modules = new Modules();
|
||||
$filters = array('id_agent' => $this->id, 'all_modules' => true);
|
||||
$filters = array('id_agent' => $this->id, 'all_modules' => true, 'status' => -1);
|
||||
$modules->setFilters($filters);
|
||||
$modules->disabledColumns(array('agent'));
|
||||
$ui->contentBeginCollapsible(__('Modules'));
|
||||
|
|
|
@ -85,6 +85,9 @@ class Modules {
|
|||
if (isset($filters['all_modules'])) {
|
||||
$this->all_modules = $filters['all_modules'];
|
||||
}
|
||||
if (isset($filters['status'])) {
|
||||
$this->status = $filters['status'];
|
||||
}
|
||||
}
|
||||
|
||||
public function disabledColumns($columns = null) {
|
||||
|
@ -517,7 +520,9 @@ class Modules {
|
|||
|
||||
$listModules = $this->getListModules($page);
|
||||
//$ui->debug($listModules, true);
|
||||
|
||||
html_debug_print("-----------", true);
|
||||
html_debug_print($listModules, true);
|
||||
html_debug_print("===========", true);
|
||||
if ($listModules['total'] == 0) {
|
||||
$html = '<p style="color: #ff0000;">' . __('No modules') . '</p>';
|
||||
if (!$return) {
|
||||
|
|
|
@ -74,7 +74,7 @@ if (is_ajax ()){
|
|||
}
|
||||
|
||||
// Header
|
||||
if($meta) {
|
||||
if ($meta) {
|
||||
user_meta_print_header();
|
||||
$url = 'index.php?sec=advanced&sec2=advanced/users_setup&tab=user_edit';
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ else
|
|||
$usr_groups = (users_get_groups($config['id_user'], 'AR', $display_all_group));
|
||||
$id_usr = $config['id_user'];
|
||||
|
||||
if(!$meta) {
|
||||
if (!$meta) {
|
||||
$data = array();
|
||||
$data[0] = __('Shortcut bar') . ui_print_help_tip(__('This will activate a shortcut bar with alerts, events, messages... information'), true);
|
||||
$data[1] = __('Home screen'). ui_print_help_tip(__('User can customize the home page. By default, will display \'Agent Detail\'. Example: Select \'Other\' and type sec=estado&sec2=operation/agentes/estado_agente to show agent detail view'), true);
|
||||
|
|
Loading…
Reference in New Issue