version 1.53, 2010/01/08 17:59:57
|
version 1.54, 2010/01/13 18:45:15
|
Line 118 function hour() {
|
Line 118 function hour() {
|
var i; var j; |
var i; var j; |
choicewrite('<select name="hours" onchange="parent.datecalc();">'); |
choicewrite('<select name="hours" onchange="parent.datecalc();">'); |
for (i=0;i<=23;i++) { |
for (i=0;i<=23;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thishour) { |
if (i==thishour) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'); |
choicewrite('>'); |
if (i==12) { choicewrite('noon'); } else { |
if (i==12) { choicewrite('noon'); } else { |
Line 142 function minute() {
|
Line 142 function minute() {
|
var i; |
var i; |
choicewrite('<select name="minutes" onchange="parent.datecalc();">'); |
choicewrite('<select name="minutes" onchange="parent.datecalc();">'); |
for (i=0;i<=59;i++) { |
for (i=0;i<=59;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisminutes) { |
if (i==thisminutes) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 156 function second() {
|
Line 156 function second() {
|
var i; |
var i; |
choicewrite('<select name="seconds" onchange="parent.datecalc();">'); |
choicewrite('<select name="seconds" onchange="parent.datecalc();">'); |
for (i=0;i<=59;i++) { |
for (i=0;i<=59;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisseconds) { |
if (i==thisseconds) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 171 function date() {
|
Line 171 function date() {
|
var i; |
var i; |
choicewrite('<select name="date" onchange="parent.datecalc();">'); |
choicewrite('<select name="date" onchange="parent.datecalc();">'); |
for (i=1;i<=31;i++) { |
for (i=1;i<=31;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisdate) { |
if (i==thisdate) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 192 function year() {
|
Line 192 function year() {
|
var i; |
var i; |
choicewrite('<select name="year" onchange="parent.datecalc();">'); |
choicewrite('<select name="year" onchange="parent.datecalc();">'); |
for (i=loweryear;i<=upperyear;i++) { |
for (i=loweryear;i<=upperyear;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisyear) { |
if (i==thisyear) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 206 function month() {
|
Line 206 function month() {
|
var i; |
var i; |
choicewrite('<select name="month" onchange="parent.datecalc();">'); |
choicewrite('<select name="month" onchange="parent.datecalc();">'); |
for (i=0;i<=11;i++) { |
for (i=0;i<=11;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thismonth) { |
if (i==thismonth) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+months[i]+'</option>'); |
choicewrite('>'+months[i]+'</option>'); |
} |
} |
Line 221 function intminute() {
|
Line 221 function intminute() {
|
var i; |
var i; |
choicewrite('<select name="minutes" onchange="parent.intcalc();">'); |
choicewrite('<select name="minutes" onchange="parent.intcalc();">'); |
for (i=0;i<=59;i++) { |
for (i=0;i<=59;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisminutes) { |
if (i==thisminutes) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 235 function inthour() {
|
Line 235 function inthour() {
|
var i; |
var i; |
choicewrite('<select name="hours" onchange="parent.intcalc();">'); |
choicewrite('<select name="hours" onchange="parent.intcalc();">'); |
for (i=0;i<=23;i++) { |
for (i=0;i<=23;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thishours) { |
if (i==thishours) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 249 function intsecond() {
|
Line 249 function intsecond() {
|
var i; |
var i; |
choicewrite('<select name="seconds" onchange="parent.intcalc();">'); |
choicewrite('<select name="seconds" onchange="parent.intcalc();">'); |
for (i=0;i<=59;i++) { |
for (i=0;i<=59;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisseconds) { |
if (i==thisseconds) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 264 function intday() {
|
Line 264 function intday() {
|
var i; |
var i; |
choicewrite('<select name="date" onchange="parent.intcalc();">'); |
choicewrite('<select name="date" onchange="parent.intcalc();">'); |
for (i=0;i<=31;i++) { |
for (i=0;i<=31;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value="'+i+'"'); |
if (i==thisdate) { |
if (i==thisdate) { |
choicewrite(' selected'); |
choicewrite(' selected="selected"'); |
} |
} |
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
Line 510 function draw() {
|
Line 510 function draw() {
|
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+ |
'" onchange="parent.integereval()" />'); |
'" onchange="parent.integereval()" />'); |
choicewrite('</td></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |
} |
} |
Line 532 function draw() {
|
Line 532 function draw() {
|
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+ |
'" onchange="parent.floateval()" />'); |
'" onchange="parent.floateval()" />'); |
choicewrite('</td></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |
|
|
Line 540 function draw() {
|
Line 540 function draw() {
|
if ((pscat=='any') || (pscat=='') || (pscat=='default') || |
if ((pscat=='any') || (pscat=='') || (pscat=='default') || |
(typeof(pscat)=='undefined')) { |
(typeof(pscat)=='undefined')) { |
tablestart('Text'); |
tablestart('Text'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+ |
'" type="text" onchange="parent.stringeval()" />'); |
'" type="text" onchange="parent.stringeval()" />'); |
} |
} |
Line 667 function draw() {
|
Line 667 function draw() {
|
' type="radio" '+callradiostringeval('map_map')); |
' type="radio" '+callradiostringeval('map_map')); |
if (svalue=='map_map') { choicewrite(' checked="checked"'); } |
if (svalue=='map_map') { choicewrite(' checked="checked"'); } |
choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in..</label><br />'); |
choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in..</label><br />'); |
choicewrite('</td></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |
|
|
Line 697 function draw() {
|
Line 697 function draw() {
|
function sopt(va,text) { |
function sopt(va,text) { |
selwrite('<option value="'+va+'"'); |
selwrite('<option value="'+va+'"'); |
if (va==pscat) { |
if (va==pscat) { |
selwrite(' selected'); |
selwrite(' selected="selected"'); |
} |
} |
selwrite('>'+text+'</option>'); |
selwrite('>'+text+'</option>'); |
} |
} |