Skip to content

Commit

Permalink
Fixed broken XHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Apr 5, 2007
1 parent 6907f59 commit 79c8c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Expand Up @@ -892,7 +892,7 @@ function display_submission($extra_javascript = '') {
if ($this->usehtmleditor) {
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
echo '<div align="right" class="format">';
echo '<div class="format">';
choose_from_menu(format_text_menu(), "format", $submission->format, "");
helpbutton("textformat", get_string("helpformatting"));
echo '</div>';
Expand Down
4 changes: 3 additions & 1 deletion mod/assignment/type/upload/assignment.class.php
Expand Up @@ -216,6 +216,7 @@ function custom_feedbackform($submission, $return=false) {

$output .= '<form enctype="multipart/form-data" method="post" '.
"action=\"$CFG->wwwroot/mod/assignment/upload.php\">";
$output .= '<div>';
$output .= '<input type="hidden" name="id" value="'.$this->cm->id.'" />';
$output .= '<input type="hidden" name="action" value="uploadresponse" />';
$output .= '<input type="hidden" name="mode" value="'.$mode.'" />';
Expand All @@ -224,6 +225,7 @@ function custom_feedbackform($submission, $return=false) {
require_once($CFG->libdir.'/uploadlib.php');
$output .= upload_print_form_fragment(1,array('newfile'),null,false,null,0,0,true);
$output .= '<input type="submit" name="save" value="'.get_string('uploadthisfile').'" />';
$output .= '</div>';
$output .= '</form>';

if ($forcerefresh) {
Expand Down Expand Up @@ -329,7 +331,7 @@ function print_user_files($userid=0, $return=false) {
$ffurl = "$CFG->wwwroot/file.php?file=/$filearea/$file";


$output .= '<a href="'.$ffurl.'" ><img class="icon" src="'.$CFG->pixpath.'/f/'.$icon.'" class="icon" alt="'.$icon.'" />'.$file.'</a>';
$output .= '<a href="'.$ffurl.'" ><img src="'.$CFG->pixpath.'/f/'.$icon.'" class="icon" alt="'.$icon.'" />'.$file.'</a>';

if ($candelete) {
$delurl = "$CFG->wwwroot/mod/assignment/delete.php?id={$this->cm->id}&amp;file=$file&amp;userid={$submission->userid}&amp;mode=$mode&amp;offset=$offset";
Expand Down

0 comments on commit 79c8c1d

Please sign in to comment.