]> git.mjollnir.org Git - moodle.git/commitdiff
added option to delete a users attempt records. Sends an email if delete was seccess...
authormichaelpenne <michaelpenne>
Tue, 21 Sep 2004 22:13:08 +0000 (22:13 +0000)
committermichaelpenne <michaelpenne>
Tue, 21 Sep 2004 22:13:08 +0000 (22:13 +0000)
mod/lesson/mod.html

index a1f4f2077229a34e7c46d23835dba9647949dea6..f1511b73c6edc6d8e6d4ab570066fdf3f1b6050f 100644 (file)
@@ -97,11 +97,15 @@ if ($form->mode == "add") {
        if (!isset($form->lessondefault)) {
                $form->lessondefault = 0;
        }
+       
+       $form->deleteattempts = "";
+
        /// CDC-FLAG ///
 ?>
 
 <form name="form" method="post" action="<?php echo $ME ?>">
 <center>
+
 <table cellpadding=5>
 <tr valign=top>
     <td align=right><p><b><?php  print_string("name") ?>:</b></p></td>
@@ -407,6 +411,20 @@ if ($form->mode == "add") {
     ?>
     </td>
 </tr>
+<?php 
+       if ($form->mode != "add") {
+?>
+<tr>
+    <td align=right><p><b><?php  print_string("deleteattempts", "lesson"); ?>:</b></p></td>
+    <td>
+        <input type="text" name="deleteattempts" size=7 value="">
+               <?php helpbutton("deleteattempts", get_string("deleteattempts", "lesson"), "lesson"); ?>
+               <input type="hidden" name="deleteattemptsid" value="<?php echo $USER->id; ?>">
+    </td>
+</tr>
+<?php
+       }  // end if statement  if ($form->mode != "add") {
+?>
 
 </table>
 <!-- These hidden variables are always the same -->