2008-10-21 Manuel Arostegui <marostegui@artica.es>
* operation/menu.php: Fixed warning message if no layouts were defined on the visual console. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1180 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5e5ecef789
commit
b7889ca4d2
|
@ -1,3 +1,8 @@
|
|||
2008-10-21 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* operation/menu.php: Fixed warning message if no layouts were defined
|
||||
on the visual console.
|
||||
|
||||
2008-10-21 Esteban Sanchez <estebans@artica.es>
|
||||
|
||||
* include/functions.php: Improved human_time_comparation() so it won't
|
||||
|
|
|
@ -100,12 +100,15 @@ if (give_acl ($config['id_user'], 0, "AR")) {
|
|||
echo '<a href="index.php?sec=visualc&sec2=operation/visual_console/index" class="mn">'.__('Visual console').'</a></li></ul></div>';
|
||||
|
||||
if ($sec == "visualc") {
|
||||
$result = get_db_all_rows_in_table ('tlayout','name');
|
||||
$layouts = get_db_all_rows_in_table ('tlayout', 'name');
|
||||
if ($layouts === false)
|
||||
$layouts = array ();
|
||||
$id = get_parameter ('id');
|
||||
foreach ($result as $layout) {
|
||||
if (!give_acl ($config["id_user"], $layout["id_group"], "AR")) {
|
||||
foreach ($layouts as $layout) {
|
||||
if (! give_acl ($config["id_user"], $layout["id_group"], "AR")) {
|
||||
continue;
|
||||
} elseif ($sec2 == "operation/visual_console/render_view" && $id == $layout["id"]) {
|
||||
}
|
||||
if ($sec2 == "operation/visual_console/render_view" && $id == $layout["id"]) {
|
||||
echo "<div class='operation-submenu submenu-selected'>";
|
||||
} else {
|
||||
echo "<div class='operation-submenu'>";
|
||||
|
|
Loading…
Reference in New Issue