2012-11-03 Miguel de Dios <miguel.dedios@artica.es>

* godmode/users/configure_user.php: cleaned source code style.
	
	* include/styles/pandora.css, godmode/users/user_list.php: improved
	the row aspect of disabled users in the list.
	
	Pending task: #3540077




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7121 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-11-03 16:41:26 +00:00
parent 41ca6b430c
commit 027920182e
4 changed files with 36 additions and 16 deletions

View File

@ -1,3 +1,12 @@
2012-11-03 Miguel de Dios <miguel.dedios@artica.es>
* godmode/users/configure_user.php: cleaned source code style.
* include/styles/pandora.css, godmode/users/user_list.php: improved
the row aspect of disabled users in the list.
Pending task: #3540077
2012-11-02 Miguel de Dios <miguel.dedios@artica.es> 2012-11-02 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php, extensions/update_manager.php: * include/functions_reporting.php, extensions/update_manager.php:

View File

@ -45,11 +45,14 @@ if (! check_acl ($config['id_user'], 0, "UM")) {
return; return;
} }
/*
* Disabled at the moment.
if (!check_referer()) { if (!check_referer()) {
require ("general/noaccess.php"); require ("general/noaccess.php");
return; return;
} }
*/
$tab = get_parameter('tab', 'user'); $tab = get_parameter('tab', 'user');

View File

@ -220,6 +220,9 @@ foreach ($info as $user_id => $user_info) {
else else
$table->rowclass[$iterator] = 'rowOdd'; $table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair; $rowPair = !$rowPair;
if ($user_info['disabled']) {
$table->rowclass[$iterator] .= ' disabled_row_user';
}
$iterator++; $iterator++;
$data[0] = '<a href="index.php?sec=gusuarios&amp;sec2=godmode/users/configure_user&amp;id='.$user_id.'">'.$user_id.'</a>'; $data[0] = '<a href="index.php?sec=gusuarios&amp;sec2=godmode/users/configure_user&amp;id='.$user_id.'">'.$user_id.'</a>';
@ -289,6 +292,4 @@ else {
echo '<i>'.__('The current authentication scheme doesn\'t support creating users from Pandora FMS').'</i>'; echo '<i>'.__('The current authentication scheme doesn\'t support creating users from Pandora FMS').'</i>';
} }
echo '</div>'; echo '</div>';
?> ?>

View File

@ -556,12 +556,19 @@ tr.rowOdd {
tr.rowPair:hover { tr.rowPair:hover {
background-color: #E0E0E0; background-color: #E0E0E0;
} }
tr.rowOdd:hover { tr.rowOdd:hover {
background-color: #E0E0E0 background-color: #E0E0E0
} }
tr.disabled_row_user * {
color: grey;
}
.bg { /* op menu */ .bg { /* op menu */
background-color: #567953; background-color: #567953;
} }
.bg2 { /* main page */ .bg2 { /* main page */
background-color: #0A160C; background-color: #0A160C;
} }