]> git.mjollnir.org Git - moodle.git/commitdiff
Renamed week->section
authormartin <martin>
Tue, 25 Jun 2002 11:44:11 +0000 (11:44 +0000)
committermartin <martin>
Tue, 25 Jun 2002 11:44:11 +0000 (11:44 +0000)
course/editweek.html [deleted file]
course/editweek.php [deleted file]

diff --git a/course/editweek.html b/course/editweek.html
deleted file mode 100644 (file)
index 5a041e9..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<BLOCKQUOTE>
-<FORM name="form" method="post" action="editweek.php">
-<P><B>Summary of week <?=$form->week ?></B></P>
-<TEXTAREA NAME=summary COLS=60 ROWS=4 WRAP=virtual><?=$form->summary ?></TEXTAREA>
-<BR><FONT SIZE=1>(Maximum of 255 characters)</FONT>
-<P>
-<INPUT type="hidden" name=id value="<?=$form->id ?>">
-<INPUT type="submit" value="Save all changes">
-<INPUT type="reset" value="Revert">
-</P>
-</FORM>
-</BLOCKQUOTE>
diff --git a/course/editweek.php b/course/editweek.php
deleted file mode 100644 (file)
index 4c3808d..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<?PHP // $Id$
-
-    require("../config.php");
-
-    require_variable($id);    // Week ID
-
-    if (! $week = get_record("course_weeks", "id", $id)) {
-        error("Course week is incorrect");
-    }
-
-    if (! $course = get_record("course", "id", $week->course)) {
-        error("Could not find the course!");
-    }
-
-    require_login($course->id);
-    
-    if (!isteacher($course->id)) {
-        error("Only teachers can edit this!");
-    }
-
-
-/// If data submitted, then process and store.
-
-    if (match_referer() && isset($HTTP_POST_VARS)) {
-
-        $timenow = time();
-
-        if (! set_field("course_weeks", "summary", $summary, "id", $week->id)) {
-            error("Could not update the summary!");
-        }
-
-        add_to_log($course->id, "course", "editweek", "editweek.php?id=$week->id", "$week->week");
-        
-        redirect("view.php?id=$course->id");
-        exit;
-    }
-
-/// Otherwise fill and print the form.
-
-    if (! $form ) {
-        $form = $week;
-    }
-
-    print_header("Edit week $week->week", "Edit week $week->week", "", "form.summary");
-
-    include("editweek.html");
-
-    print_footer($course);
-
-?>