From 01d70abf7443b801b5791618e2fd2d66d1f771bc Mon Sep 17 00:00:00 2001 From: jacob Date: Thu, 14 Oct 2010 17:51:56 +0000 Subject: [PATCH] Added teacher interface in olympics UI touch ups --- common.inc.php | 18 ++++++++++++++---- db/db.code.version.txt | 2 +- db/db.update.215.sql | 17 +++++++++++++++++ user.inc.php | 4 ++++ user_main.php | 13 +++++++++---- user_school.php | 5 +++-- 6 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 db/db.update.215.sql diff --git a/common.inc.php b/common.inc.php index 6e17675..b6e43f6 100644 --- a/common.inc.php +++ b/common.inc.php @@ -311,7 +311,14 @@ if(array_key_exists('users_id', $_SESSION)) {
-
+ +
> "; @@ -347,9 +354,12 @@ if(array_key_exists('users_id', $_SESSION)) { if(!$_SESSION['nav']['secondary']) { echo "$(\"#division-menu\").hide();\n"; } - if(!$_SESSION['nav']['tertiary']) { + /* + if($_SESSION['nav']['tertiary']) { + echo '$("#work-area").css({"margin-left":"230px"});'; + }else{ echo "$(\"#topic-menu\").hide();\n"; - } + }*/ ?> }); @@ -389,7 +399,7 @@ if(substr(getcwd(),-6)!="/admin" && substr(getcwd(),-7)!="/config" && substr(get } */ ?> -
+
>
" onclick="activate('');return false;" > - ' . i18n("Registration is open. Please click the 'Register' button if you wish to register."); + echo "   "; + echo '

'; break; case 'singlepassword': echo '

'; echo i18n("{$roles[$type]['name']} Registration is protected by a password. You must know the {$roles[$type]['name']} Registration Password in order to register for this role. Please contact the committee to obtain the password if you wish to register."); echo "

"; echo i18n("{$roles[$type]['name']} Password").":"; - echo ""; + echo ""; echo "

"; break; case 'schoolpassword': diff --git a/user_school.php b/user_school.php index 17877a6..d4cfd1a 100644 --- a/user_school.php +++ b/user_school.php @@ -80,6 +80,7 @@ $translations = array( eval(response); if(schoolInfo != null){ $('#infobox').html(schoolInfo); + $('#infobox').css({'border':'solid'}); $('#instructions').html(""); }else{ $('#instructions').html(""); @@ -94,7 +95,7 @@ $translations = array( // draw the info area echo "

" . i18n("School Information") . "

"; $currentSchool = $u['schools_id']; -if($currentSchool != null){ +if($currentSchool){ echo i18n("You are currently listed as a member of") . "
"; echo '
'; $schoolData = mysql_fetch_assoc(mysql_query("SELECT school, address, city, province_code, postalcode, phone FROM schools WHERE id='$currentSchool'")); @@ -102,7 +103,7 @@ if($currentSchool != null){ echo '
'; echo '

' . $translations['if_incorrect'] . "

"; }else{ - echo '
'; + echo '
'; echo '

' . $translations['not_associated'] . "

"; }