]> git.mjollnir.org Git - moodle.git/commitdiff
Tidied up some XHTML
authormoodler <moodler>
Tue, 21 Sep 2004 10:52:55 +0000 (10:52 +0000)
committermoodler <moodler>
Tue, 21 Sep 2004 10:52:55 +0000 (10:52 +0000)
user/view.php

index e76e0669b8c04ad66fab6033b908d6f97cf8fa52..a2db5b9bdaa152b585f8e66587f2f03eb75b5c30 100644 (file)
         } else {
             $wwwroot = str_replace('http','https',$CFG->wwwroot);
         }
-        echo "<p><form action=\"$wwwroot/user/edit.php\" method=\"get\">";
+        echo "<form action=\"$wwwroot/user/edit.php\" method=\"get\">";
         echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
         echo "<input type=\"hidden\" name=\"course\" value=\"$course->id\" />";
         echo "<input type=\"submit\" value=\"".get_string("editmyprofile")."\" />";
-        echo "</form></p>";
+        echo "</form>";
     }
-    echo "</td></tr></table>";
+    echo "</td></tr></table>\n\n";
 
 
     // Print the description
 
     if ($user->description) {
-        echo "<p>".format_text($user->description, FORMAT_MOODLE)."</p><hr />";
+        echo format_text($user->description, FORMAT_MOODLE)."<hr />";
     }
 
     // Print all the little details in a list
 
     echo "</td></tr></table>";
 
+
     $internalpassword = false;
     if (is_internal_auth()) {
         if(empty($CFG->loginhttps)) {
         echo "<input type=\"submit\" value=\"".get_string("loginas")."\" />";
         echo "</form></p></td>";
     }
+    echo "<td></td>";
     echo "</tr></table></center>\n";
 
     $isseparategroups = ($course->groupmode == SEPARATEGROUPS and
 /// Functions ///////
 
 function print_row($left, $right) {
-    echo "<tr><td nowrap=\"nowrap\" align=\"right\" valign=\"top\"><p>$left</p></td><td align=\"left\" valign=\"top\"><p>$right</p></td></tr>";
+    echo "\n<tr><td nowrap=\"nowrap\" align=\"right\" valign=\"top\">$left</td><td align=\"left\" valign=\"top\">$right</td></tr>\n";
 }
 
 ?>