X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fui%2Fui_controls.inc;h=4b6d11cd8ef2891557f6e1663b814697d1cdd455;hb=9a1b3abd5371ad7f6315db1d56f8356587444314;hp=3d542f12bd9b99f5f99d7ddda641080e28b65194;hpb=b0de618b47d6ca975589b517217b862189e66780;p=fa-stable.git
diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc
index 3d542f12..4b6d11cd 100644
--- a/includes/ui/ui_controls.inc
+++ b/includes/ui/ui_controls.inc
@@ -60,7 +60,8 @@ function output_hidden()
{
global $hidden_fields;
- echo implode('', $hidden_fields);
+ if (is_array($hidden_fields))
+ echo implode('', $hidden_fields);
$hidden_fields = array();
}
//---------------------------------------------------------------------------------
@@ -131,6 +132,7 @@ function table_section($number=1, $width=false)
if ($number > 1)
{
echo "\n";
+ output_hidden();
$width = ($width ? "width='$width'" : "");
//echo "
\n"; // outer table
echo " | \n"; // outer table
@@ -141,7 +143,10 @@ function table_section($number=1, $width=false)
function end_outer_table($breaks=0, $close_table=true)
{
if ($close_table)
+ {
echo "\n";
+ output_hidden();
+ }
echo " | \n";
end_table($breaks);
}
@@ -260,8 +265,15 @@ function viewer_link($label, $url='', $class='', $id='', $icon=null)
function menu_link($url, $label, $id=null)
{
+ global $path_to_root;
+
$id = default_focus($id);
$pars = access_string($label);
+
+ if ($url[0] != '/')
+ $url = '/'.$url;
+ $url = $path_to_root.$url;
+
return "";
}
@@ -394,13 +406,14 @@ function div_end()
{
global $ajax_divs, $Ajax;
+ output_hidden();
if (count($ajax_divs))
{
$div = array_pop($ajax_divs);
if ($div[1] !== null)
$Ajax->addUpdate($div[1], $div[0], ob_get_flush());
- echo "";
}
+ echo "";
}
//-----------------------------------------------------------------------------
@@ -448,6 +461,7 @@ function tabbed_content_start($name, $tabs, $dft='') {
}
function tabbed_content_end() {
+ output_hidden();
echo ""; // content box (don't change to div_end() unless div_start() is used above)
div_end(); // tabs widget
}