version 1.75, 2016/05/21 22:59:58
|
version 1.79, 2019/01/06 04:02:19
|
Line 48 var pscat='';
|
Line 48 var pscat='';
|
var pmarker=''; |
var pmarker=''; |
var pmodal=''; |
var pmodal=''; |
var pname=''; |
var pname=''; |
|
var precursive=''; |
|
var pnonreccol=''; |
|
var pmarkerst=''; |
|
var pparm=''; |
|
|
var defhour=0; |
var defhour=0; |
var defmin=0; |
var defmin=0; |
Line 188 function second() {
|
Line 192 function second() {
|
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
} |
} |
|
|
|
|
function date() { |
function date() { |
Line 239 function month() {
|
Line 243 function month() {
|
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
} |
} |
|
|
|
|
function intminute() { |
function intminute() { |
var thisminutes=cmins; |
var thisminutes=cmins; |
var i; |
var i; |
Line 450 function ipstringeval() {
|
Line 454 function ipstringeval() {
|
if (items.length > 0) { |
if (items.length > 0) { |
for (var j=0; j<items.length; j++) { |
for (var j=0; j<items.length; j++) { |
if (items[j].type == "text") { |
if (items[j].type == "text") { |
var possip = items[j].value |
var possip = items[j].value; |
possip = possip.replace(/^\s+|\s+$/g,''); |
possip = possip.replace(/^\s+|\s+$/g,''); |
if (patternIp.test(possip)) { |
if (patternIp.test(possip)) { |
if (acctypes[i] == 'deny') { |
if (acctypes[i] == 'deny') { |
Line 510 function lenienteval(newval) {
|
Line 514 function lenienteval(newval) {
|
document.getElementById('lenientweighteddiv').style.display='block'; |
document.getElementById('lenientweighteddiv').style.display='block'; |
} |
} |
var patternRelWeight = /^\-?[\d.]+$/; |
var patternRelWeight = /^\-?[\d.]+$/; |
var sform=choices.document.forms.sch; |
var sform=choices.document.forms.sch; |
if ((sform.lenientrelwt.length != 'undefined') && (sform.lenientrelwt.length) != 'null') { |
if ((sform.lenientrelwt.length != 'undefined') && (sform.lenientrelwt.length) != 'null') { |
for (var i=0; i<sform.lenientrelwt.length; i++) { |
for (var i=0; i<sform.lenientrelwt.length; i++) { |
var relweight = sform.lenientrelwt[i].value; |
var relweight = sform.lenientrelwt[i].value; |
Line 545 function calllenientradioeval(newval) {
|
Line 549 function calllenientradioeval(newval) {
|
|
|
function callintervalpmodval() { |
function callintervalpmodval() { |
return 'onclick="parent.intcalc();parent.toggleSecret()"'; |
return 'onclick="parent.intcalc();parent.toggleSecret()"'; |
} |
} |
|
|
function intervaldis() { |
function intervaldis() { |
csecs=svalue; |
csecs=svalue; |
Line 784 function draw() {
|
Line 788 function draw() {
|
if (ptype=='float') { |
if (ptype=='float') { |
if (pscat=='default') { |
if (pscat=='default') { |
tablestart('Default value or none'); |
tablestart('Default value or none'); |
choicewrite('</table>'); |
choicewrite('</table>'); |
} else { |
} else { |
if (pscat=='pos') { |
if (pscat=='pos') { |
tablestart('Positive floating point number or zero'); |
tablestart('Positive floating point number or zero'); |
Line 1053 function draw() {
|
Line 1057 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></tr></table>'); |
choicewrite('</td></tr></table>'); |
|
} |
|
if (pscat=='deeplink') { |
|
tablestart('Deep-linked items'); |
|
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
|
choicewrite('<label><input name="stringval" value="full"'+ |
|
' type="radio" '+callradiostringeval('full')); |
|
if (svalue=='full') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> Displayed (linked) in Contents and Grades.</label><br />'); |
|
choicewrite('<label><input name="stringval" value="absent"'+ |
|
' type="radio" '+callradiostringeval('absent')); |
|
if (svalue=='absent') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> Not displayed in Contents or Grades.</label><br />'); |
|
choicewrite('<label><input name="stringval" value="grades"'+ |
|
' type="radio" '+callradiostringeval('grades')); |
|
if (svalue=='grades') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> Displayed in Grades only.</label><br />'); |
|
choicewrite('<label><input name="stringval" value="details"'+ |
|
' type="radio" '+callradiostringeval('details')); |
|
if (svalue=='details') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> Displayed (unlinked) in Contents and Grades.</label><br />'); |
|
choicewrite('<label><input name="stringval" value="datestatus"'+ |
|
' type="radio" '+callradiostringeval('datestatus')); |
|
if (svalue=='datestatus') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> Displayed (with date status) but unlinked in Contents and Grades.</label><br />'); |
|
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |
|
|
if (ptype=='color') { |
if (ptype=='color') { |
tablestart('Choose a Color'); |
tablestart('Choose a Color'); |
choicewrite('<table>'); |
choicewrite('<table>'); |
Line 1071 function draw() {
|
Line 1100 function draw() {
|
colorfield(ir,ig,ib); |
colorfield(ir,ig,ib); |
} |
} |
choicewrite('</tr>'); |
choicewrite('</tr>'); |
} |
} |
} |
} |
choicewrite('</table></td></table>'); |
choicewrite('</table></td></table>'); |
} |
} |
Line 1094 function catchange() {
|
Line 1123 function catchange() {
|
draw(); |
draw(); |
} |
} |
|
|
|
function recursechange() { |
|
var rform=selector.document.forms.frec; |
|
var count = rform.recurse.length; |
|
if (count > 0) { |
|
for (var i=0; i<count; i++) { |
|
if (rform.recurse[i].checked) { |
|
var colnum = pnonreccol; |
|
if (rform.recurse[i].value == 1) { |
|
colnum++; |
|
} |
|
pmarker = pmarkerst+'_'+pparm+'&'+colnum; |
|
} |
|
} |
|
} |
|
} |
|
|
function assemble() { |
function assemble() { |
if ((ptype=='date') && (pscat!='interval')) { |
if ((ptype=='date') && (pscat!='interval')) { |
svalue=Math.floor(cdate.getTime()/1000); |
svalue=Math.floor(cdate.getTime()/1000); |
Line 1148 function init() {
|
Line 1193 function init() {
|
var doneproctorRegExp = /_done(|\:[^\:]+\:)_proctor/; |
var doneproctorRegExp = /_done(|\:[^\:]+\:)_proctor/; |
var proctorkeyRegExp = /^(\d+)_(.+)$/; |
var proctorkeyRegExp = /^(\d+)_(.+)$/; |
var donetextRegExp = /\:([^\:]+)\:/; |
var donetextRegExp = /\:([^\:]+)\:/; |
|
var markerRegExp = /^(.+)_([A-Za-z0-9]+)\&(\d+)$/; |
var namevalue=this.window.location.search.split('&'); |
var namevalue=this.window.location.search.split('&'); |
namevalue[0]=namevalue[0].substr(1,namevalue[0].length-1); |
namevalue[0]=namevalue[0].substr(1,namevalue[0].length-1); |
|
|
Line 1158 function init() {
|
Line 1204 function init() {
|
if (pair[0]=='type') { subs=pair[1].split('_'); |
if (pair[0]=='type') { subs=pair[1].split('_'); |
ptype=subs[0]; |
ptype=subs[0]; |
pscat=subs[1]; |
pscat=subs[1]; |
if (typeof(subs[2])!="undefined") { |
if (typeof(subs[2])!="undefined") { |
pscat+='_'+subs[2]; |
pscat+='_'+subs[2]; |
} |
} |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
pscat='default'; |
pscat='default'; |
} |
} |
} |
} |
Line 1177 function init() {
|
Line 1223 function init() {
|
if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } |
if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } |
} |
} |
|
|
|
var tablecol = ''; |
|
var ismap = ''; |
|
if (markerRegExp.test(pmarker)) { |
|
var markerinfo = pmarker.match(markerRegExp); |
|
if (markerinfo.length == 4) { |
|
pmarkerst = markerinfo[1]; |
|
pparm = markerinfo[2]; |
|
tablecol = markerinfo[3]; |
|
if (tablecol == 17 || tablecol == 16) { |
|
ismap = 1; |
|
if (tablecol == 17) { |
|
precursive = 1; |
|
} |
|
pnonreccol = 16; |
|
} else if (tablecol == 11 || tablecol == 10) { |
|
ismap = 1; |
|
if (tablecol == 11) { |
|
precursive = 1; |
|
} |
|
pnonreccol = 10; |
|
} else if (tablecol == 7 || tablecol == 6) { |
|
ismap = 1; |
|
if (tablecol == 7) { |
|
precursive = 1; |
|
} |
|
pnonreccol = 6; |
|
} else if (tablecol == 3 || tablecol == 2) { |
|
ismap = 1; |
|
if (tablecol == 3) { |
|
precursive = 1; |
|
} |
|
pnonreccol = 2; |
|
} |
|
} |
|
} |
|
|
|
|
if (ptype=='date' && pscat == 'interval') { |
if (ptype=='date' && pscat == 'interval') { |
if (doneproctorRegExp.test(pvalue)) { |
if (doneproctorRegExp.test(pvalue)) { |
var current = pvalue.match(doneproctorRegExp); |
var current = pvalue.match(doneproctorRegExp); |
Line 1202 function init() {
|
Line 1285 function init() {
|
} |
} |
} else { |
} else { |
if (doneRegExp.test(pvalue)) { |
if (doneRegExp.test(pvalue)) { |
var current = pvalue.match(doneRegExp); |
var current = pvalue.match(doneRegExp); |
if (current.length == 2) { |
if (current.length == 2) { |
var textstr = current[1]; |
var textstr = current[1]; |
if (textstr != '') { |
if (textstr != '') { |
Line 1220 function init() {
|
Line 1303 function init() {
|
} |
} |
svalue=pvalue; |
svalue=pvalue; |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
(pscat=='default') && |
(pscat=='default') && |
(typeof(svalue)!="undefined") && |
(typeof(svalue)!="undefined") && |
(svalue!=0) && (svalue!='')) { pscat='any'; } |
(svalue!=0) && (svalue!='')) { pscat='any'; } |
|
|
if (ptype=='tolerance') { |
if (ptype=='tolerance') { |
Line 1297 function init() {
|
Line 1380 function init() {
|
months[10]='November'; |
months[10]='November'; |
months[11]='December'; |
months[11]='December'; |
} |
} |
|
|
if (ptype=='int') { |
if (ptype=='int') { |
sopt('default','Default'); |
sopt('default','Default'); |
sopt('pos','Positive Integer, Not Zero'); |
sopt('pos','Positive Integer, Not Zero'); |
Line 1326 function init() {
|
Line 1409 function init() {
|
else if (pscat == 'ip') { sopt('ip','IP Number/Name'); } |
else if (pscat == 'ip') { sopt('ip','IP Number/Name'); } |
else if (pscat == 'fileext') { sopt('fileext','File Extension'); } |
else if (pscat == 'fileext') { sopt('fileext','File Extension'); } |
else if (pscat == 'useslots') { sopt('useslots','Slots control access'); } |
else if (pscat == 'useslots') { sopt('useslots','Slots control access'); } |
|
else if (pscat == 'deeplink') { sopt('deeplink','Deep-linked items'); } |
else { pscat = 'any'; } |
else { pscat = 'any'; } |
sopt('any','String Value'); |
sopt('any','String Value'); |
} |
} |
Line 1336 function init() {
|
Line 1420 function init() {
|
} |
} |
|
|
selwrite('</select></form>'); |
selwrite('</select></form>'); |
|
if (ismap == 1) { |
|
if ((pparm != 'hiddenresource') && (pparm != 'encrypturl')) { |
|
selwrite('<form name="frec" action="">'); |
|
selwrite('Recursive: <label><input type="radio" name="recurse" value="1" '); |
|
if (precursive == 1) { |
|
selwrite('checked="checked" '); |
|
} |
|
selwrite('onclick="parent.recursechange();" />Yes</label> '); |
|
selwrite('<label><input type="radio" name="recurse" value="0" '); |
|
if (precursive != 1) { |
|
selwrite('checked="checked" '); |
|
} |
|
selwrite('onclick="parent.recursechange();" />No</label>'); |
|
selwrite('</form><br />'); |
|
} |
|
} |
var targ='parent.opener'; |
var targ='parent.opener'; |
if (pmodal==1) { |
if (pmodal==1) { |
targ='parent.parent'; |
targ='parent.parent'; |
Line 1378 function init() {
|
Line 1478 function init() {
|
</script> |
</script> |
</head> |
</head> |
|
|
<frameset rows="120,*" onload="init();"> |
<frameset rows="125,*" onload="init();"> |
<frame name="selector" src="empty.html" /> |
<frame name="selector" src="empty.html" /> |
<frame name="choices" src="empty.html" /> |
<frame name="choices" src="empty.html" /> |
</frameset> |
</frameset> |