--- rat/client/parameter.html 2022/05/27 17:58:03 1.64.2.5.2.2 +++ rat/client/parameter.html 2025/06/28 14:35:11 1.96 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.64.2.5.2.2 2022/05/27 17:58:03 raeburn Exp $ +// $Id: parameter.html,v 1.96 2025/06/28 14:35:11 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -45,9 +45,14 @@ var pextravaltwo=''; var preturn=''; var pcode=''; var pscat=''; +var psmap=''; var pmarker=''; var pmodal=''; var pname=''; +var precursive=''; +var pnonreccol=''; +var pmarkerst=''; +var pparm=''; var pextra=''; var defhour=0; @@ -91,6 +96,8 @@ function choicestart() { choicewrite('}'); choicewrite('table.LC_parmsel_table {font-size: 90%;}'); choicewrite('table.LC_parmsel_table tr td { padding: 5px; border: 1px solid #C8C8C8;}'); + choicewrite('fieldset.LC_grace { display:inline; }'); + choicewrite('fieldset.LC_grace > legend { font-weight: normal; }'); choicewrite('-->'); choicewrite(''); choicewrite(''); @@ -189,7 +196,7 @@ function second() { choicewrite('>'+i+''); } choicewrite(''); -} +} function date() { @@ -240,13 +247,24 @@ function month() { } choicewrite(''); } - - -function intminute() { - var thisminutes=cmins; + + +function intminute(mins) { + var thisminutes; + if ((typeof mins === 'number') && (!isNaN(mins))) { + thisminutes=mins; + } else { + thisminutes=cmins; + } var i; var result = ''; - result += ''; for (i=0;i<=59;i++) { result += ''); } choicewrite(''); + choicewrite(''); + choicewrite('Exit Button?'); + choicewrite('
'); + choicewrite(' '); + choicewrite('
'); + choicewrite('
'); + choicewrite('
Button text: '); + choicewrite(''); + choicewrite('
'); choicewrite(''); } + if (pscat=='grace') { + tablestart('Grace period after due date'); + choicewrite(''+ + '
'+ + '
'); + if ((svalue != '') && (typeof(svalue) != 'undefined')) { + var patternComma = /,/; + var patternGrace = /^\d+:(0|1).?\d*:(0|1)$/; + var current = new Array; + if (patternComma.test(svalue)) { + current = svalue.split(','); + } else { + current = [svalue]; + } + for (var i=0; i'); + choicewrite(graceitem(current[i])); + choicewrite('
'); + } + } + } else { + choicewrite('
'); + choicewrite(graceitem()); + choicewrite('
'); + } + choicewrite('
'); + choicewrite(''); + } } - + if (ptype=='color') { tablestart('Choose a Color'); choicewrite(''); @@ -1366,7 +1735,7 @@ function draw() { colorfield(ir,ig,ib); } choicewrite(''); - } + } } choicewrite('
'); } @@ -1389,6 +1758,22 @@ function catchange() { draw(); } +function recursechange() { + var rform=selector.document.forms.frec; + var count = rform.recurse.length; + if (count > 0) { + for (var i=0; i'); + if (ismap == 1) { + if ((pparm != 'hiddenresource') && (pparm != 'encrypturl')) { + selwrite('
'); + selwrite('Recursive:   '); + selwrite(''); + selwrite('

'); + } + } var targ='parent.opener'; if (pmodal==1) { targ='parent.parent'; @@ -1670,10 +2112,21 @@ function init() { selwrite(''); this.window.selector.document.close(); if (pscat == 'deeplink') { - document.getElementById("LCparampopup").rows="60,*"; + if (psmap==1) { + document.getElementById("LCparampopup").rows="100,*"; + } else { + document.getElementById("LCparampopup").rows="60,*"; + } + } + if (pscat == 'grace') { + if (psmap==1) { + document.getElementById("LCparampopup").rows="105,*"; + } else { + document.getElementById("LCparampopup").rows="65,*"; + } } draw(); - + } // ]]>