X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fpage%2Fheader.inc;h=bf93e2d5e1bf15301a9c4bea8bc5a0bc3b1545a2;hb=a96e9d18d632cc730a2b4f44d0774a73246915c5;hp=d71f39fe29e55a12fa5d56e0c5c91264f2e6e5ea;hpb=d415c4b31baaa6379a0c360a93a1f78f983df4e7;p=fa-stable.git diff --git a/includes/page/header.inc b/includes/page/header.inc index d71f39fe..bf93e2d5 100644 --- a/includes/page/header.inc +++ b/includes/page/header.inc @@ -32,7 +32,7 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" // titles and screen header global $db_connections, $path_to_root, $def_app, $applications, $help_base_url, $help_page_url, $use_popup_windows, - $js_lib, $js_static, $js_path; + $js_lib, $js_static, $js_path, $js_userlib, $comp_path; if (isset($_GET['ajax'])) return; @@ -48,6 +48,7 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" $js = get_js_open_window(900, 500); } + add_js_user_num(); // add user native numeric input functions // javascript includes collect add_js_source($js); $js =''; @@ -55,6 +56,10 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" $js .= ''; } + foreach($js_userlib as $jsfile) { + $js .= ''; + } foreach($js_lib as $text) { $js .= $text; } @@ -72,10 +77,13 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" else $sel_app = $def_app; $_SESSION["sel_app"] = $sel_app; + $encoding = $_SESSION['language']->encoding; - echo "dir . "' >"; + if (!headers_sent()){ + header("Content-type: text/html; charset='$encoding'"); + } + echo "dir . "' >\n"; echo "$title"; - $encoding = $_SESSION['language']->encoding; $local_stylesheet = $_SESSION['language']->get_stylesheet(); echo ""; echo " \n";