include_once($path_to_root . "/gl/includes/gl_db.inc");
$js = "";
-if ($use_date_picker)
+if (user_use_date_picker())
$js = get_js_date_picker();
page(_($help_context = "Balance Sheet Drilldown"), false, false, "", $js);
//----------------------------------------------------------------------------------------------------
-function display_type ($type, $typename, $from, $to, $convert, $dimension, $dimension2, $drilldown, $path_to_root)
+function display_type ($type, $typename, $from, $to, $convert, $dimension, $dimension2, $drilldown)
{
- global $levelptr, $k;
+ global $path_to_root, $levelptr, $k;
$acctstotal = 0;
$typestotal = 0;
while ($accounttype=db_fetch($result))
{
$typestotal += display_type($accounttype["id"], $accounttype["name"], $from, $to,
- $convert, $dimension, $dimension2, $drilldown, $path_to_root);
+ $convert, $dimension, $dimension2, $drilldown);
}
//Display Type Summary if total is != 0
while ($accounttype=db_fetch($typeresult))
{
$TypeTotal = display_type($accounttype["id"], $accounttype["name"], $from, $to,
- $convert, $dimension, $dimension2, $drilldown, $path_to_root);
+ $convert, $dimension, $dimension2, $drilldown);
//Print Summary
if ($TypeTotal != 0 )
{
table_section_title($_POST["AccGrp"]. " " . get_account_type_name($_POST["AccGrp"]));
$classclose = display_type($accounttype["id"], $accounttype["name"], $from, $to,
- $convert, $dimension, $dimension2, $drilldown, $path_to_root);
+ $convert, $dimension, $dimension2, $drilldown);
}
end_table(1); // outer table
end_page();
-?>
-