version 1.9, 2001/02/13 18:18:40
|
version 1.10, 2001/07/25 16:08:38
|
Line 13
|
Line 13
|
# 2/9 Guy Albertelli |
# 2/9 Guy Albertelli |
# 2/10 Gerd Kortemeyer |
# 2/10 Gerd Kortemeyer |
# 2/13 Guy Albertelli |
# 2/13 Guy Albertelli |
|
# 7/25 Gerd Kortemeyer |
|
|
package Apache::lonfeedback; |
package Apache::lonfeedback; |
|
|
Line 31 sub mail_screen {
|
Line 32 sub mail_screen {
|
<script> |
<script> |
function gosubmit() { |
function gosubmit() { |
var rec=0; |
var rec=0; |
if (document.mailform.elements.author!=undefined) { |
if (typeof(document.mailform.elements.author!=undefined)) { |
if (document.mailform.elements.author.checked) { |
if (document.mailform.elements.author.checked) { |
rec=1; |
rec=1; |
} |
} |
} |
} |
if (document.mailform.elements.question!=undefined) { |
if (typeof(document.mailform.elements.question!=undefined)) { |
if (document.mailform.elements.question.checked) { |
if (document.mailform.elements.question.checked) { |
rec=1; |
rec=1; |
} |
} |
} |
} |
if (document.mailform.elements.course!=undefined) { |
if (typeof(document.mailform.elements.course!=undefined)) { |
if (document.mailform.elements.course.checked) { |
if (document.mailform.elements.course.checked) { |
rec=1; |
rec=1; |
} |
} |
} |
} |
if (document.mailform.elements.policy!=undefined) { |
if (typeof(document.mailform.elements.policy!=undefined)) { |
if (document.mailform.elements.policy.checked) { |
if (document.mailform.elements.policy.checked) { |
rec=1; |
rec=1; |
} |
} |
} |
} |
|
if (typeof(document.mailform.elements.discuss!=undefined)) { |
|
if (document.mailform.elements.discuss.checked) { |
|
rec=1; |
|
} |
|
} |
|
|
if (rec) { |
if (rec) { |
document.mailform.submit(); |
document.mailform.submit(); |
Line 157 sub screen_header {
|
Line 163 sub screen_header {
|
'<br><input type=checkbox name=policy> '. |
'<br><input type=checkbox name=policy> '. |
'Question/Comment/Feedback about course policy'; |
'Question/Comment/Feedback about course policy'; |
} |
} |
|
if ($ENV{'request.course.id'}) { |
|
$options.='<br><input type=checkbox name=discuss> '. |
|
'<b>Contribution to course discussion of resource</b>'; |
|
} |
return $options; |
return $options; |
} |
} |
|
|