X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Ffooter.inc;h=512b0412a6e5322a69806b21d501df2b4ba7a420;hb=fa46467fccb4052d4c517833cf4198c8bf1dc229;hp=cefc3c1afb5d39bd98d70cd76d75a4c756b93807;hpb=1a2a0326b84927ccaaf01b52f0d3e97d7b782f47;p=fa-stable.git
diff --git a/includes/page/footer.inc b/includes/page/footer.inc
index cefc3c1a..512b0412 100644
--- a/includes/page/footer.inc
+++ b/includes/page/footer.inc
@@ -1,48 +1,46 @@
.
+***********************************************************************/
function page_footer($no_menu=false, $is_index=false)
{
- global $version, $allow_demo_mode;
- global $app_title, $power_url, $power_by;
-
- if (isset($_GET['ajax'])) return;
-
- echo set_js_focus(); // set focus on input (if $focus_on exists)
- if (function_exists('hyperlink_back'))
- hyperlink_back();
- if ($no_menu == false)
- {
- if ($is_index)
- echo "
\n";
- else
- echo "\n";
- echo "";
- if (isset($_SESSION['wa_current_user']))
- echo "" . Today() . " | " . Now() . " | \n";
- echo "
\n";
+ global $path_to_root, $js_lib, $Validate, $Editors, $Ajax, $sql_queries;
+
+ $page_header_args = func_get_args();
+ hook_invoke_all('pre_footer', $page_header_args);
+
+ include_once($path_to_root."/themes/".user_theme()."/renderer.php");
+ $rend = new renderer();
+ $rend->menu_footer($no_menu, $is_index);
+
+ $edits = "editors = ".$Ajax->php2js($Editors).";";
+ $Ajax->addScript('editors', $edits);
+
+ echo "";
+
+ add_user_js_data();
+ echo "\n\n";
+
+ if ($sql_queries) {
+ div_start('footer_debug');
+ echo "$sql_queries
";
+ div_end();
}
- echo "
\n";
- echo "\n";
- if ($no_menu == false)
- {
- echo "
\n";
- }
echo "