[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 20 Feb 2006 21:43:16 -0000
albertel Mon Feb 20 16:43:16 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- converting from <table> style to <div> style layout
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.110 loncom/homework/bridgetask.pm:1.111
--- loncom/homework/bridgetask.pm:1.110 Tue Feb 14 14:51:29 2006
+++ loncom/homework/bridgetask.pm Mon Feb 20 16:43:16 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.110 2006/02/14 19:51:29 albertel Exp $
+# $Id: bridgetask.pm,v 1.111 2006/02/20 21:43:16 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -392,8 +392,10 @@
my $result=<<INFO;
<div class="handininfo">
- <input type="submit" name="next" value="$lt{'done'}" />
- <input type="submit" name="stop" value="$lt{'stop'}" />
+ <div class="maincontrols">
+ <input type="submit" name="next" value="$lt{'done'}" />
+ <input type="submit" name="stop" value="$lt{'stop'}" />
+ </div>
$file_list
</div>
INFO
@@ -607,7 +609,7 @@
if ($webgrade eq 'yes') { $result.=&webgrade_standard_info(); }
}
if ($target eq 'webgrade') {
- $result.="\n".'<table width="100%" style="width:100%" border="1">';
+ $result.="\n".'<div id="criterialist">';
}
} elsif ($target eq 'edit') {
$result.=$head_tag_start."</head>".$body_tag_start.$form_tag_start.
@@ -987,7 +989,7 @@
&Apache::structuretags::finalize_storage();
}
} elsif ($target eq 'webgrade') {
- $result.="</table>\n<hr />";
+ $result.="</div>\n<hr />";
#$result.='<input type="submit" name="next" value="'.
# &mt('Save & Next').'" /> ';
#$result.='<input type="submit" name="end" value="'.
@@ -1770,28 +1772,28 @@
foreach my $id (@{$dimension{$instance.'.criterias'}}) {
my $link='criteria_'.$instance.'_'.$id;
my $status=$Apache::lonhomework::history{"resource.$version.0.$dim.$instance.$id.status"};
- $result.='<tr><td width="100%" valign="top">'.
- '<a name="'.$link.'" />'.
- '<a name="next_'.$last_link.'" />'.
- '<br /><textarea enabled="false" style="width:100%" rows="8" width="25" wrap="hard">';
+ $result.='<div id="'.$link.'">'."\n".
+ '<a name="'.$link.'" />'."\n".
+ '<a name="next_'.$last_link.'" />'."\n".
+ '<div class="criteriatext">'."\n";
@Apache::scripttag::parser_env = @_;
$result.=&Apache::scripttag::xmlparse($dimension{$instance.'.criteria.'.$id});
- $result.='</textarea>'.
+ $result.='</div>'."\n".
#$dimension{$instance.'.criteria.'.$id}.
- '</td>'.
- '<td><nobr>Additional Comment for Student</nobr> <br />'.
- '<textarea style="width:100%" rows="8" width="25" wrap="hard" name="HWVAL_comment_'.$link.'">'.&HTML::Entities::encode($Apache::lonhomework::history{"resource.$version.0.$dim.$instance.$id.comment"}).'</textarea>'.
- '</td>'.
- '<td>'.
- '<nobr><label><input type="radio" name="HWVAL_'.$link.'" value="ungraded" '.($status eq 'ungraded' || !$status ? 'checked="checked"':'').' />'.&mt('Ungraded').'</label></nobr><br />'.
- '<label><input type="radio" name="HWVAL_'.$link.'" value="pass" '.($status eq 'pass' ? 'checked="checked"':'').' />'.&mt('Pass').'</label><br />'.
- '<label><input type="radio" name="HWVAL_'.$link.'" value="fail" '.($status eq 'fail' ? 'checked="checked"':'').' />'.&mt('Fail').'</label><br />'.
- '<label><input type="radio" name="HWVAL_'.$link.'" value="review" '.($status eq 'review' ? 'checked="checked"':'').' />'.&mt('Review').'</label><br />'.
- '</td>'.
- '<td>'.
- '<a href="#'.$last_link.'">Prev</a><br />'.
- '<a href="#next_'.$link.'">Next</a><br /><br /><br />'.
- '</td></tr>';
+ '<div class="grade">'."\n".
+ '<label class="ungraded"><input type="radio" name="HWVAL_'.$link.'" value="ungraded" '.($status eq 'ungraded' || !$status ? 'checked="checked"':'').' />'.&mt('Ungraded').'</label>'."\n".
+ '<label class="fail"><input type="radio" name="HWVAL_'.$link.'" value="fail" '.($status eq 'fail' ? 'checked="checked"':'').' />'.&mt('Fail').'</label>'."\n".
+ '<label class="pass"><input type="radio" name="HWVAL_'.$link.'" value="pass" '.($status eq 'pass' ? 'checked="checked"':'').' />'.&mt('Pass').'</label>'."\n".
+ '<label class="review"><input type="radio" name="HWVAL_'.$link.'" value="review" '.($status eq 'review' ? 'checked="checked"':'').' />'.&mt('Review').'</label>'."\n".
+ '</div>'."\n".
+ '<label class="comment">'.&mt('Additional Comment for Student').'</label>'."\n".
+ '<textarea class="comment_area" name="HWVAL_comment_'.$link.'">'.&HTML::Entities::encode($Apache::lonhomework::history{"resource.$version.0.$dim.$instance.$id.comment"}).'</textarea>'."\n".
+ '</label>'."\n".
+ '<ul class="navbuttons">'."\n".
+ '<li><a href="#'.$last_link.'">Prev</a></li>'."\n".
+ '<li><a href="#next_'.$link.'">Next</a></li>'."\n".
+ '</ul>'."\n".
+ '</div>'."\n";
$last_link=$link;
}
} elsif ($target eq 'grade' && $env{'form.webgrade'}) {