X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Ffooter.inc;h=90c951c19bb46e60327b4bf3c8ac5831056c93b1;hb=d497aeb2d93ed1c705007fa6ff84a4c470f7f538;hp=cefc3c1afb5d39bd98d70cd76d75a4c756b93807;hpb=1a2a0326b84927ccaaf01b52f0d3e97d7b782f47;p=fa-stable.git diff --git a/includes/page/footer.inc b/includes/page/footer.inc index cefc3c1a..90c951c1 100644 --- a/includes/page/footer.inc +++ b/includes/page/footer.inc @@ -1,47 +1,39 @@ . +***********************************************************************/ function page_footer($no_menu=false, $is_index=false) { - global $version, $allow_demo_mode; - global $app_title, $power_url, $power_by; + global $path_to_root, $js_lib, $Validate, $Editors, $Ajax; - if (isset($_GET['ajax'])) return; - - echo set_js_focus(); // set focus on input (if $focus_on exists) - if (function_exists('hyperlink_back')) + if (!$is_index && 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 "\n"; - echo "
" . Today() . " | " . Now() . "
\n"; - } - echo "\n"; - echo "\n"; - if ($no_menu == false) - { - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - if ($allow_demo_mode==true) - { - echo "\n"; - //echo "\n"; - echo "\n"; - } - echo "

\n"; - } + 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"; echo "\n"; }