diff --git a/common.inc.php b/common.inc.php index 29272aa..267c08b 100644 --- a/common.inc.php +++ b/common.inc.php @@ -43,11 +43,12 @@ function send_header($title="", $nav=null, $icon=null, $titletranslated=false) { ?> -<? if($title && !$titletranslated) echo i18n($title); else if($title) echo $title; else echo i18n($config['fairname']); ?> - - - - + + <? if($title && !$titletranslated) echo i18n($title); else if($title) echo $title; else echo i18n($config['fairname']); ?> + + + + @@ -62,13 +63,14 @@ $(document).ready(function(){ if($("#importantdatesbox").length) $("#importantdatesbox").load("important_dates.php?display=box"); }); +//and dump the whole PHP configuration into a Javascript Object, so we can use it anywhere we need to refer to config variables in javascript +var config=; -
@@ -382,11 +384,15 @@ if(substr(getcwd(),-6)!="/admin" && substr(getcwd(),-7)!="/config" && substr(get +
+
+"; + echo " "; + echo "
\n"; } //if we're under /admin or /config then we want to show the ? help icon @@ -395,23 +401,30 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config" || substr(get $fname=substr($_SERVER['REDIRECT_SCRIPT_URL'],strlen($config['SFIABDIRECTORY'])+1); else $fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1); - echo "
"; + + echo " \n"; } if($title && !$titletranslated) - echo "

".i18n($title)."

"; + echo "

".i18n($title)."

\n"; else if($title) - echo "

".$title."

"; + echo "

".$title."

\n"; display_messages(); +?> +
+
+ -
+
+
+