Skip to content

Commit

Permalink
body and html close were being printed twice! Number of XHTML
Browse files Browse the repository at this point in the history
errors highly reduced by the form-table mix remains...
  • Loading branch information
stronk7 committed Apr 29, 2006
1 parent 755a1c4 commit 954ec82
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions files/index.php
Expand Up @@ -39,15 +39,9 @@
}

function html_footer() {

global $course, $choose;

if ($choose) {
echo "</td></tr></table></body></html>";
} else {
echo "</td></tr></table></body></html>";
print_footer($course);
}
print_footer($course);
}

function html_header($course, $wdir, $formfield=""){
Expand Down Expand Up @@ -852,6 +846,7 @@ function displaydir ($wdir) {
echo " <input type=\"submit\" value=\"$strmovefilestohere\" />";
echo "</form>";
}
echo "</td>";
echo "<td align=\"right\">";
echo "<form action=\"index.php\" method=\"get\">";
echo ' <input type="hidden" name="choose" value="'.$choose.'" />';
Expand Down

0 comments on commit 954ec82

Please sign in to comment.