]> git.mjollnir.org Git - moodle.git/commitdiff
For some reason there was a target on the delete link which pops up the list
authormoodler <moodler>
Sun, 31 Aug 2003 06:54:39 +0000 (06:54 +0000)
committermoodler <moodler>
Sun, 31 Aug 2003 06:54:39 +0000 (06:54 +0000)
in a new window.  Gone.

admin/user.php

index 3c23aa7f46c1440cf273a59fd9dc9b12507e222c..e481147cb3fa028d38a4f74495fb0b60b28eb310 100644 (file)
         }
 
         $table->head = array ($name, $email, $city, $country, $lastaccess, "", "");
-        $table->align = array ("LEFT", "LEFT", "LEFT", "LEFT", "LEFT", "CENTER", "CENTER");
+        $table->align = array ("left", "left", "left", "left", "left", "center", "center");
         $table->width = "95%";
         foreach ($users as $user) {
             if ($user->id == $USER->id or $user->username == "changeme") {
                 $deletebutton = "";
             } else {
-                $deletebutton = "<A HREF=\"user.php?delete=$user->id\" TARGET=\"$strdeletecheck\">$strdelete</A>";
+                $deletebutton = "<a href=\"user.php?delete=$user->id\">$strdelete</a>";
             }
             if ($user->lastaccess) {
                 $strlastaccess = format_time(time() - $user->lastaccess);
             } else {
                 $strlastaccess = get_string("never");
             }
-            $table->data[] = array ("<A HREF=\"../user/view.php?id=$user->id&course=$site->id\">$user->firstname $user->lastname</A>",
+            $table->data[] = array ("<a href=\"../user/view.php?id=$user->id&course=$site->id\">$user->firstname $user->lastname</a>",
                              "$user->email",
                              "$user->city",
                              "$user->country",
                              $strlastaccess,
-                             "<A HREF=\"../user/edit.php?id=$user->id&course=$site->id\">$stredit</A>",
+                             "<a href=\"../user/edit.php?id=$user->id&course=$site->id\">$stredit</a>",
                              $deletebutton);
         }
 
-        echo "<TABLE align=center cellpadding=10><TR><TD>";
-        echo "<FORM ACTION=user.php METHOD=POST>";
-        echo "<INPUT TYPE=text NAME=search VALUE=\"$search\" SIZE=20>";
-        echo "<INPUT TYPE=submit VALUE=\"$strsearch\">";
+        echo "<table align=center cellpadding=10><tr><td>";
+        echo "<form action=user.php method=post>";
+        echo "<input type=text name=search value=\"$search\" size=20>";
+        echo "<input type=submit value=\"$strsearch\">";
         if ($search) {
-            echo "<INPUT type=\"button\" onClick=\"document.location='user.php';\" value=\"$strshowallusers\">";
+            echo "<input type=\"button\" onclick=\"document.location='user.php';\" value=\"$strshowallusers\">";
         }
-        echo "</FORM>";    
-        echo "</TD></TR></TABLE>";
+        echo "</form>";    
+        echo "</td></tr></table>";
 
         print_table($table);
 
         if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
-            print_heading("<A HREF=\"user.php?newuser=true\">".get_string("addnewuser")."</A>");
+            print_heading("<a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a>");
         }
 
         print_footer();