From 41efbd89b037c91bf827a0a73e369dbd15b8e2c9 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 15 Jun 2010 18:14:01 +0000 Subject: [PATCH] Renamed manage_teams.php to schoolteams.php for consistency Started adding a page for the school to modify students under SOIAB --- schoolaccess.php | 3 ++- schoolstudents.php | 17 +++++++++++++++++ manage_teams.php => schoolteams.php | 6 +++--- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 schoolstudents.php rename manage_teams.php => schoolteams.php (95%) 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 '';