diff --git a/schoolaccess.php b/schoolaccess.php index 7d5e434..ba6cf48 100644 --- a/schoolaccess.php +++ b/schoolaccess.php @@ -57,7 +57,8 @@ function draw_dashboard(){ echo '
  • ' . i18n("Participant Registration") . "
  • \n"; } }else if($conference['type'] == 'scienceolympics'){ - echo '
  • ' . i18n("Manage Teams") . "
  • \n"; + echo '
  • ' . i18n("Manage Students") . "
  • \n"; + echo '
  • ' . i18n("Manage Teams") . "
  • \n"; } echo '
  • ' . i18n("School Feedback / Questions") . "
  • "; echo "\n"; diff --git a/schoolstudents.php b/schoolstudents.php new file mode 100644 index 0000000..2e53c39 --- /dev/null +++ b/schoolstudents.php @@ -0,0 +1,17 @@ + "schoolaccess.php")); + draw_list(); +}else{ + header('Location: schoolaccess.php'); +} + +// draw an editable list of all students for this school in the users_stunt table +function draw_list(){ + + +} diff --git a/manage_teams.php b/schoolteams.php similarity index 95% rename from manage_teams.php rename to schoolteams.php index 37fbae6..2e18c21 100644 --- a/manage_teams.php +++ b/schoolteams.php @@ -80,7 +80,7 @@ function draw_page(){ function delete_team(teamId){ var data = $("#editTeam_" + teamId).serializeArray(); - $("#debug").load("manage_teams.php?action=delete", data, function(){ + $("#debug").load("schoolteams.php?action=delete", data, function(){ $('#teamHeader_' + teamId).remove(); $('#team_' + teamId).remove(); }); @@ -89,7 +89,7 @@ function draw_page(){ function saveData(teamId){ var data = $("#editTeam_" + teamId).serializeArray(); - $("#debug").load("manage_teams.php?action=save&", data, function(){ + $("#debug").load("schoolteams.php?action=save&", data, function(){ if(newname != undefined){ newname = '' + newname + ''; $('#teamHeader_' + teamId).html(newname); @@ -114,7 +114,7 @@ function draw_page(){ } echo '

    ' . i18n("New Team") . '

    '; echo '
    '; - echo '
    '; + echo ''; echo '' . "\n"; echo '
    '; echo '';