2010-11-22 Miguel de Dios <miguel.dedios@artica.es>

* include/help/en/help_operation_visual_console.php,
	include/help/es/help_operation_visual_console.php: added first
	version of help file for the operation main page of Visual Console,
	these have a explain for the especial name for visual consoles.
	
	* operation/visual_console/index.php: added link to help in header.
	
	operation/menu.php: added filter to hide the "Visual Console items"
	in submenu that haven't first letter as "_", "," , "[" , "(". And
	fixed the show name with safe_input entities.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3612 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-11-22 13:43:54 +00:00
parent 43e4675d05
commit 0c7fa1a7a5
5 changed files with 44 additions and 2 deletions

View File

@ -1,3 +1,16 @@
2010-11-22 Miguel de Dios <miguel.dedios@artica.es>
* include/help/en/help_operation_visual_console.php,
include/help/es/help_operation_visual_console.php: added first
version of help file for the operation main page of Visual Console,
these have a explain for the especial name for visual consoles.
* operation/visual_console/index.php: added link to help in header.
operation/menu.php: added filter to hide the "Visual Console items"
in submenu that haven't first letter as "_", "," , "[" , "(". And
fixed the show name with safe_input entities.
2010-11-22 Miguel de Dios <miguel.dedios@artica.es>
* godmode/extensions.php: fixed a lost javascript trace, and fixed

View File

@ -0,0 +1,8 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Visual Console</h1>
<p>The visual console items have the characters "_", "," , "[" , "(" for the first letter,
it is show in the left menu into "Visual Console" submenu.</p>

View File

@ -0,0 +1,9 @@
<?php
/**
* @package Include/help/en
*/
?>
<h1>Visual Console</h1>
<p>Los "mapas visuales" que tengan por primera letra del nombre los caracteres
"_", "," , "[" , "(", seran mostrados en el menu de la izquierda en el submenu
de la "Consola Visual".</p>

View File

@ -105,11 +105,23 @@ if (give_acl ($config['id_user'], 0, "AR")) {
}
$id = (int) get_parameter ('id', -1);
$firstLetterNameVisualToShow = array('_', ',', '[', '(');
foreach ($layouts as $layout) {
if (! give_acl ($config["id_user"], $layout["id_group"], "AR")) {
continue;
}
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["text"] = mb_substr ($layout["name"], 0, 15);
$name = safe_output($layout['name']);
if (empty($name)) {
$firstLetter = '';
}
else {
$firstLetter = $name[0];
}
if (!in_array($firstLetter, $firstLetterNameVisualToShow)) {
continue;
}
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["text"] = mb_substr ($name, 0, 15);
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["refr"] = 0;
}

View File

@ -19,7 +19,7 @@
check_login ();
// Header
print_page_header (__("Visual console"), "images/monitor.png");
print_page_header (__("Visual console"), "images/monitor.png", false, "operation_visual_console");
require_once ('include/functions_visual_map.php');
$layouts = get_user_layouts ();