--- rat/client/parameter.html 2011/12/08 21:37:51 1.63
+++ rat/client/parameter.html 2016/08/05 17:39:45 1.64.2.3
@@ -5,7 +5,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.63 2011/12/08 21:37:51 www Exp $
+// $Id: parameter.html,v 1.64.2.3 2016/08/05 17:39:45 raeburn Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -241,58 +241,66 @@ function month() {
function intminute() {
var thisminutes=cmins;
var i;
- choicewrite('';
+ return result;
}
function inthour() {
var thishours=chours;
var i;
- choicewrite('');
+ var result = '';
+ result += '';
for (i=0;i<=23;i++) {
- choicewrite('');
+ result += '>'+i+'';
}
- choicewrite('');
-}
+ result += '';
+ return result;
+}
function intsecond() {
var thisseconds=csecs;
var i;
- choicewrite('');
+ var result = '';
+ result += '';
for (i=0;i<=59;i++) {
- choicewrite('');
+ result += '>'+i+'';
}
- choicewrite('');
-}
+ result += '';
+ return result;
+}
function intday() {
var thisdate=cdays;
var i;
- choicewrite('');
+ var result ='';
+ result += '';
for (i=0;i<=31;i++) {
- choicewrite('');
+ result += '>'+i+'';
}
- choicewrite('');
+ result += '';
+ return result;
}
function intcalc() {
@@ -342,9 +350,7 @@ function radiostringeval(newval) {
}
function callradiostringeval(newval) {
- return 'onchange="parent.radiostringeval(\''
- +newval+'\')" onclick="parent.radiostringeval(\''
- +newval+'\')"';
+ return 'onclick="parent.radiostringeval(\''+newval+'\')"';
}
function intervaldis() {
@@ -473,14 +479,17 @@ function draw() {
}
if (pscat=='interval') {
tablestart('Time interval');
- choicewrite('
');
- intervaldis();
- choicewrite(' |
Time:'
- +' | ');
- intday();choicewrite('days ');
- inthour();choicewrite('hours ');
- intminute(); choicewrite('mins '); intsecond();
- choicewrite('secs |
');
+ choicewrite( [
+ ''+intervaldis()+' |
',
+ 'Time: | ',
+ ''+intday()+' days ',
+ ''+inthour()+' hours',
+ ''+intminute()+' mins',
+ ''+intsecond()+' secs',
+ ' |
',
+ '',
+ '
',
+ ].join("\n"));
} else {
choicewrite(''
+cdate.toString()+
@@ -681,6 +690,22 @@ function draw() {
if (svalue=='default') { choicewrite(' checked="checked"'); }
choicewrite(' /> Default (only bubblesheet grading is lenient) ');
}
+ if (pscat=='discussvote') {
+ tablestart('Discussion Voting');
+ choicewrite(' |
Value: | ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ }
if (pscat=='ip') {
tablestart('IP Number/Name');
choicewrite(' |
Value: | ');
@@ -884,7 +909,7 @@ function init() {
selwrite('');
selwrite('');
selwrite(' |