// 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;
$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 ='';
$js .= '<script language="javascript" type="text/javascript" src="'.
$js_path . $jsfile . '"></script>';
}
+ foreach($js_userlib as $jsfile) {
+ $js .= '<script language="javascript" type="text/javascript" src="'.
+ $jsfile . '"></script>';
+ }
foreach($js_lib as $text) {
$js .= $text;
}
else
$sel_app = $def_app;
$_SESSION["sel_app"] = $sel_app;
+ $encoding = $_SESSION['language']->encoding;
- echo "<html dir='" . $_SESSION['language']->dir . "' >";
+ if (!headers_sent()){
+ header("Content-type: text/html; charset='$encoding'");
+ }
+ echo "<html dir='" . $_SESSION['language']->dir . "' >\n";
echo "<head><title>$title</title>";
- $encoding = $_SESSION['language']->encoding;
$local_stylesheet = $_SESSION['language']->get_stylesheet();
echo "<meta http-equiv='Content-type' content='text/html'; charset='$encoding'>";
echo "<link href='$local_path_to_root/themes/$theme/default.css' rel='stylesheet' type='text/css' /> \n";