2013-07-31 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_ui.php: reduced the char lenght of title in
	the header for to avoid crash when have title with wide chars.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8607 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-07-31 15:01:27 +00:00
parent 77b944b6e1
commit edc6ad7d50
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-07-31 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_ui.php: reduced the char lenght of title in
the header for to avoid crash when have title with wide chars.
2013-07-31 Sergio Martin <sergio.martin@artica.es>
* include/functions_agents.php: Fix a if condition

View File

@ -2181,8 +2181,9 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "",
$buffer = '<div id="'.$type2.'" style=""><div id="menu_tab_left">';
$buffer .= '<ul class="mn"><li class="'.$type.'">&nbsp;' . html_print_image($icon, true, array("style" => "vertical-align:middle;", "class" => "bottom", "border" => "0", "alt" => "")) . '&nbsp; ';
$buffer .= '<span style="display: inline-block; vertical-align: top; margin-top: 2px;">' . ui_print_truncate_text($title, 40);
$buffer .= '<ul class="mn"><li class="' . $type . '">&nbsp;' . html_print_image($icon, true, array("style" => "vertical-align:middle;", "class" => "bottom", "border" => "0", "alt" => "")) . '&nbsp; ';
$buffer .= '<span style="display: inline-block; vertical-align: top; margin-top: 2px;">' .
ui_print_truncate_text($title, 38);
if ($help != "")
$buffer .= "<div class='head_help' style='float: right; margin-top: -3px !important; margin-left: 2px !important;'>" . ui_print_help_icon ($help, true, '', 'images/help_w.png') . "</div>";
$buffer .= '</span></li></ul></div>';