]> git.mjollnir.org Git - moodle.git/commitdiff
I have changed the icon for removing a question from a quiz from X to >> and changed...
authorgustav_delius <gustav_delius>
Sun, 6 Feb 2005 10:42:31 +0000 (10:42 +0000)
committergustav_delius <gustav_delius>
Sun, 6 Feb 2005 10:42:31 +0000 (10:42 +0000)
mod/quiz/locallib.php
pix/t/removeright.gif [new file with mode: 0644]

index a2694f1c8160b1b42bc670e9ccaf678deb25421b..524d659926231b69869ab7947d1fca01fb755175 100644 (file)
@@ -1160,7 +1160,7 @@ function quiz_print_question_list($questionlist, $grades, $allowdelete=true) {
     $strorder = get_string("order");
     $strquestionname = get_string("questionname", "quiz");
     $strgrade = get_string("grade");
-    $strdelete = get_string("delete");
+    $strremove = get_string('remove', 'quiz');
     $stredit = get_string("edit");
     $strmoveup = get_string("moveup");
     $strmovedown = get_string("movedown");
@@ -1210,14 +1210,14 @@ function quiz_print_question_list($questionlist, $grades, $allowdelete=true) {
         echo '<td align="center">';
 
         if ($canedit) {
+            echo "<a title=\"$strpreview\" href=\"#\" onClick=\"openpopup('/mod/quiz/preview.php?id=$qnum','$strpreview','scrollbars=yes,resizable=yes,width=700,height=480', false)\">
+                  <img src=\"../../pix/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>&nbsp;";
             echo "<a title=\"$stredit\" href=\"question.php?id=$qnum\">
                   <img src=\"../../pix/t/edit.gif\" border=\"0\" alt=\"$stredit\" /></a>&nbsp;";
             if ($allowdelete) {
-                echo "<a title=\"$strdelete\" href=\"edit.php?delete=$qnum&amp;sesskey=$USER->sesskey\">
-                      <img src=\"../../pix/t/delete.gif\" border=\"0\" alt=\"$strdelete\" /></a>&nbsp;";
+                echo "<a title=\"$strremove\" href=\"edit.php?delete=$qnum&amp;sesskey=$USER->sesskey\">
+                      <img src=\"../../pix/t/removeright.gif\" border=\"0\" alt=\"$strremove\" /></a>";
             }
-            echo "<a title=\"$strpreview\" href=\"#\" onClick=\"openpopup('/mod/quiz/preview.php?id=$qnum','$strpreview','scrollbars=yes,resizable=yes,width=700,height=480', false)\">
-                  <img src=\"../../pix/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>";
         }
         echo "</td>";
 
diff --git a/pix/t/removeright.gif b/pix/t/removeright.gif
new file mode 100644 (file)
index 0000000..7e1fb2d
Binary files /dev/null and b/pix/t/removeright.gif differ