version 1.36, 2004/03/02 16:55:01
|
version 1.37, 2004/04/07 18:02:47
|
Line 81 function getcurseed() {
|
Line 81 function getcurseed() {
|
return 0; |
return 0; |
} |
} |
|
|
|
function getproblemtype() { |
|
if (parent.LONCAPAToBePublished.document.lonhomework) { |
|
var optionelement; |
|
var valueIndex=0; |
|
for (var optionIndex=0; |
|
optionIndex < parent.LONCAPAToBePublished.document.lonhomework.problemtype.options.length; |
|
optionIndex++) |
|
{ |
|
optionElement=parent.LONCAPAToBePublished.document.lonhomework.problemtype.options[optionIndex]; |
|
if (optionElement.selected) { |
|
return optionElement.value; |
|
} |
|
} |
|
} |
|
return 0; |
|
} |
|
|
function getpostdata() { |
function getpostdata() { |
document.printout.postdata.value=frameloc(); |
document.printout.postdata.value=frameloc(); |
document.printout.curseed.value=getcurseed(); |
document.printout.curseed.value=getcurseed(); |
|
document.printout.problemtype.value=getproblemtype(); |
document.printout.submit(); |
document.printout.submit(); |
} |
} |
</script> |
</script> |
Line 116 function getpostdata() {
|
Line 134 function getpostdata() {
|
<td rowspan="2" bgcolor="#ccddaa" align="center"> |
<td rowspan="2" bgcolor="#ccddaa" align="center"> |
<input type="hidden" name="postdata" value="" /> |
<input type="hidden" name="postdata" value="" /> |
<input type="hidden" name="curseed" value="" /> |
<input type="hidden" name="curseed" value="" /> |
|
<input type="hidden" name="problemtype" value="" /> |
<input type="button" value="MT{Print}" onClick="getpostdata();" /> |
<input type="button" value="MT{Print}" onClick="getpostdata();" /> |
</td> |
</td> |
</form> |
</form> |