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:
marostegui 2008-10-21 13:39:47 +00:00
parent 5e5ecef789
commit b7889ca4d2
2 changed files with 13 additions and 5 deletions

View File

@ -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

View File

@ -97,15 +97,18 @@ if (give_acl ($config['id_user'], 0, "AR")) {
}
echo '<div id="op9" class="operation-menu'.$selected.'">';
echo '<ul class="mn"><li>';
echo '<a href="index.php?sec=visualc&sec2=operation/visual_console/index" class="mn">'.__('Visual console').'</a></li></ul></div>';
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'>";