+
+ if($_SESSION['nav']['tertiary']) {
+ $workAreaStyle = 'style="margin-left:230px;"';
+ }else{
+ $topicMenuStyle = 'style="display:none;"';
+ }
+?>
+
>
$q=mysql_query("SELECT * FROM rolestasks WHERE pid='{$_SESSION['nav']['secondary']}' AND level=2 AND conferencetype='{$conference['type']}' ORDER By ord,task");
echo "
- ";
@@ -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
}
*/
?>
-
+
>
diff --git a/db/db.code.version.txt b/db/db.code.version.txt
index 9d683f8..c34a804 100644
--- a/db/db.code.version.txt
+++ b/db/db.code.version.txt
@@ -1 +1 @@
-214
+215
diff --git a/db/db.update.215.sql b/db/db.update.215.sql
new file mode 100644
index 0000000..101a725
--- /dev/null
+++ b/db/db.update.215.sql
@@ -0,0 +1,17 @@
+INSERT INTO `config` (
+`var` ,
+`val` ,
+`category` ,
+`type` ,
+`type_values` ,
+`ord` ,
+`description` ,
+`year` ,
+`conferences_id` ,
+`section` ,
+`conferencetypes`
+)
+VALUES (
+'teacher_registration_type', 'invite', 'Teacher Registration', 'enum', 'open=Open|invite=Invite', '100', 'The type of Teacher Registration to use', '-1', '-1', 'conference', 'sciencefair,scienceolympics'
+);
+
diff --git a/user.inc.php b/user.inc.php
index e2fca4b..af3dce4 100644
--- a/user.inc.php
+++ b/user.inc.php
@@ -751,6 +751,10 @@ function user_volunteer_registration_status()
return "open";
}
+function user_teacher_registration_status(){
+ return "open";
+}
+
function user_judge_registration_status()
{
global $config;
diff --git a/user_main.php b/user_main.php
index db250c2..cc2b3e6 100644
--- a/user_main.php
+++ b/user_main.php
@@ -214,7 +214,6 @@ function draw_roles(){
-
' . i18n("Registration is open. Please click the 'Register' button if you wish to register.");
+ echo " ";
+ echo '';
break;
case 'singlepassword':
echo '
"; 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("=$translations['if_incorrect'];?>"); }else{ $('#instructions').html("=$translations['incorrect'];?>"); @@ -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'] . "
"; }