version 1.64.2.5.2.2, 2022/05/27 17:58:03
|
version 1.92, 2023/12/29 21:06:03
|
Line 45 var pextravaltwo='';
|
Line 45 var pextravaltwo='';
|
var preturn=''; |
var preturn=''; |
var pcode=''; |
var pcode=''; |
var pscat=''; |
var pscat=''; |
|
var psmap=''; |
var pmarker=''; |
var pmarker=''; |
var pmodal=''; |
var pmodal=''; |
var pname=''; |
var pname=''; |
|
var precursive=''; |
|
var pnonreccol=''; |
|
var pmarkerst=''; |
|
var pparm=''; |
var pextra=''; |
var pextra=''; |
|
|
var defhour=0; |
var defhour=0; |
Line 189 function second() {
|
Line 194 function second() {
|
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
} |
} |
|
|
|
|
function date() { |
function date() { |
Line 240 function month() {
|
Line 245 function month() {
|
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
} |
} |
|
|
|
|
function intminute() { |
function intminute() { |
var thisminutes=cmins; |
var thisminutes=cmins; |
var i; |
var i; |
Line 288 function intsecond() {
|
Line 293 function intsecond() {
|
} |
} |
result += '</select>'; |
result += '</select>'; |
return result; |
return result; |
} |
} |
|
|
|
|
function intday() { |
function intday() { |
Line 324 function intcalc() {
|
Line 329 function intcalc() {
|
newpmodval = sform.donebutton[i].value; |
newpmodval = sform.donebutton[i].value; |
newpextravaltwo = sform.donebutton_text.value; |
newpextravaltwo = sform.donebutton_text.value; |
} else { |
} else { |
if (sform.donebutton[i].value == '_done_proctor') { |
if (sform.donebutton[i].value == '_done_proctor') { |
newpmodval = sform.donebutton[i].value; |
newpmodval = sform.donebutton[i].value; |
newpextraval = sform.donebutton_proctorkey.value; |
newpextraval = sform.donebutton_proctorkey.value; |
newpextravaltwo = sform.donebutton_text.value; |
newpextravaltwo = sform.donebutton_text.value; |
Line 345 function intcalc() {
|
Line 350 function intcalc() {
|
svalue += donevals[1]; |
svalue += donevals[1]; |
} |
} |
if (newpextravaltwo) { |
if (newpextravaltwo) { |
if (newpextravaltwo != 'Done') { |
if (newpextravaltwo != 'Done') { |
svalue += ':'+newpextravaltwo+':'; |
svalue += ':'+newpextravaltwo+':'; |
} |
} |
} |
} |
Line 396 function validateInterval() {
|
Line 401 function validateInterval() {
|
for (var i=0; i<sform.donebutton.length; i++) { |
for (var i=0; i<sform.donebutton.length; i++) { |
if (sform.donebutton[i].checked) { |
if (sform.donebutton[i].checked) { |
if (sform.donebutton[i].value == '_done_proctor') { |
if (sform.donebutton[i].value == '_done_proctor') { |
if ((sform.donebutton_proctorkey.value == '') || |
var keyval = sform.donebutton_proctorkey.value; |
(sform.donebutton_proctorkey.value == null)) { |
if ((keyval == '') || (typeof(keyval) == 'undefined')) { |
alert('Please provide a key for a proctor to enter when a student uses the "Done" button.'); |
alert('Please enter a key for a proctor to enter when a student uses the "Done" button.'); |
return; |
return; |
} |
} |
} |
} |
Line 412 function validateInterval() {
|
Line 417 function validateInterval() {
|
function validateDeepLink() { |
function validateDeepLink() { |
var sform=choices.document.forms.sch; |
var sform=choices.document.forms.sch; |
svalue = sform.deeplinkstate.options[sform.deeplinkstate.selectedIndex].value+','; |
svalue = sform.deeplinkstate.options[sform.deeplinkstate.selectedIndex].value+','; |
svalue += sform.deeplinkothers.options[sform.deeplinkothers.selectedIndex].value+','; |
svalue += sform.deeplinkothers.options[sform.deeplinkothers.selectedIndex].value+','; |
svalue += sform.deeplinklisted.options[sform.deeplinklisted.selectedIndex].value+','; |
svalue += sform.deeplinklisted.options[sform.deeplinklisted.selectedIndex].value+','; |
svalue += sform.deeplinkacc.options[sform.deeplinkacc.selectedIndex].value+','; |
svalue += sform.deeplinkacc.options[sform.deeplinkacc.selectedIndex].value+','; |
var keyRegExp = /^[a-zA-Z\d_.!@#$%^&*()+=-]+$/; |
var keyRegExp = /^[a-zA-Z\d_.!@#$%^&*()+=-]+$/; |
var numRegExp = /^\d+$/; |
var numRegExp = /^\d+$/; |
|
var exitTextRegExp = /^[^'":;,]+$/; |
if (sform.deeplinkprotect.length) { |
if (sform.deeplinkprotect.length) { |
for (var i=0; i<sform.deeplinkprotect.length; i++) { |
for (var i=0; i<sform.deeplinkprotect.length; i++) { |
if (sform.deeplinkprotect[i].checked) { |
if (sform.deeplinkprotect[i].checked) { |
Line 429 function validateDeepLink() {
|
Line 435 function validateDeepLink() {
|
} else { |
} else { |
alert('Please enter a value for the key containing one or more of: a-zA-Z0-9_.!@#$%^&*()+=-\n'+ |
alert('Please enter a value for the key containing one or more of: a-zA-Z0-9_.!@#$%^&*()+=-\n'+ |
'or choose a different supported link type.'); |
'or choose a different supported link type.'); |
return; |
return; |
} |
} |
} else if (sform.deeplinkprotect[i].value == 'ltic') { |
} else if (sform.deeplinkprotect[i].value == 'ltic') { |
var possltic = sform.linkpossltic.options[sform.linkpossltic.selectedIndex].value; |
var possltic = sform.linkpossltic.options[sform.linkpossltic.selectedIndex].value; |
Line 460 function validateDeepLink() {
|
Line 466 function validateDeepLink() {
|
svalue += '0'; |
svalue += '0'; |
} else if (sform.deeplinkmenus[i].value == 'collnum') { |
} else if (sform.deeplinkmenus[i].value == 'collnum') { |
var posscoll = sform.linkpossmenu.options[sform.linkpossmenu.selectedIndex].value; |
var posscoll = sform.linkpossmenu.options[sform.linkpossmenu.selectedIndex].value; |
if ((numRegExp.test(posscoll)) && (posscoll > 0)) { |
if ((numRegExp.test(posscoll)) && (posscoll > 0)) { |
svalue += posscoll; |
svalue += posscoll; |
} else { |
} else { |
alert("Please select either a numbered collection or check 'Standard (all menus)'."); |
alert("Please select either a numbered collection or check 'Standard (all menus)'."); |
Line 473 function validateDeepLink() {
|
Line 479 function validateDeepLink() {
|
} |
} |
svalue += ','; |
svalue += ','; |
svalue += sform.deeplinktarget.options[sform.deeplinktarget.selectedIndex].value; |
svalue += sform.deeplinktarget.options[sform.deeplinktarget.selectedIndex].value; |
|
svalue += ','; |
|
if (sform.deeplinkexit.length) { |
|
for (var i=0; i<sform.deeplinkexit.length; i++) { |
|
if (sform.deeplinkexit[i].checked) { |
|
if (sform.deeplinkexit[i].value == 'no') { |
|
svalue += sform.deeplinkexit[i].value; |
|
} else { |
|
var exittext = sform.deeplinkexittext.value; |
|
exittext = exittext.replace(/^\s+|\s+$/g,''); |
|
if ((exittext.length) && (exitTextRegExp.test(exittext))) { |
|
svalue += sform.deeplinkexit[i].value; |
|
if (exittext !== 'Exit Tool') { |
|
svalue += ':'+exittext; |
|
} |
|
} else { |
|
alert('Please enter the button text. Disallowed characters are ;,":\'\n'+ |
|
'or check "not in use" option for "Exit Tool Link"'); |
|
return; |
|
} |
|
} |
|
break; |
|
} |
|
} |
|
} |
assemble(); |
assemble(); |
} |
} |
|
|
Line 522 function toggleDeepLink(caller) {
|
Line 552 function toggleDeepLink(caller) {
|
} |
} |
} |
} |
} |
} |
|
if ((caller == 'exit') && (sform.deeplinkexit.length)) { |
|
var frame = window.frames["choices"]; |
|
for (var i=0; i<sform.deeplinkexit.length; i++) { |
|
if (sform.deeplinkexit[i].checked) { |
|
if (frame.document.getElementById('deeplinkexitdiv')) { |
|
if (sform.deeplinkexit[i].value == 'no') { |
|
frame.document.getElementById('deeplinkexitdiv').style.display='none'; |
|
sform.deeplinkexittext.value = ''; |
|
} else { |
|
frame.document.getElementById('deeplinkexitdiv').style.display='inline-block'; |
|
if (sform.deeplinkexittext.value == '') { |
|
sform.deeplinkexittext.value = 'Exit Tool'; |
|
} |
|
frame.document.getElementById('deeplinkexitdiv').scrollIntoView(); |
|
} |
|
} |
|
break; |
|
} |
|
} |
|
} |
} |
} |
|
|
function calldeeplink(caller) { |
function calldeeplink(caller) { |
Line 567 function ipstringeval() {
|
Line 617 function ipstringeval() {
|
svalue = ''; |
svalue = ''; |
for (var i=0; i<acctypes.length; i++) { |
for (var i=0; i<acctypes.length; i++) { |
var items = choices.document.getElementsByName('setip'+acctypes[i]); |
var items = choices.document.getElementsByName('setip'+acctypes[i]); |
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; |
Line 592 function addIpRule(iptype) {
|
Line 642 function addIpRule(iptype) {
|
var frame = window.frames["choices"]; |
var frame = window.frames["choices"]; |
if (frame.document.getElementById('LC_string_ipacc_inner_'+iptype)) { |
if (frame.document.getElementById('LC_string_ipacc_inner_'+iptype)) { |
var innerDiv = frame.document.getElementById('LC_string_ipacc_inner_'+iptype); |
var innerDiv = frame.document.getElementById('LC_string_ipacc_inner_'+iptype); |
var count = innerDiv.childNodes.length |
var count = innerDiv.childNodes.length |
var ipDiv = frame.document.createElement('div'); |
var ipDiv = frame.document.createElement('div'); |
ipDiv.innerHTML = '<input type="text" size="10" name="setip'+iptype+'" onblur="parent.ipstringeval();" />'+ |
ipDiv.innerHTML = '<input type="text" size="10" name="setip'+iptype+'" onblur="parent.ipstringeval();" />'+ |
'<a href="#" onclick="parent.removeIpRule(\''+iptype+'\',\''+count+'\')">Remove</a>'; |
'<a href="#" onclick="parent.removeIpRule(\''+iptype+'\',\''+count+'\')">Remove</a>'; |
Line 624 function callradiostringeval(newval) {
|
Line 674 function callradiostringeval(newval) {
|
return 'onclick="parent.radiostringeval(\''+newval+'\')"'; |
return 'onclick="parent.radiostringeval(\''+newval+'\')"'; |
} |
} |
|
|
|
function lenienteval(newval) { |
|
if (newval == 'weighted') { |
|
if (document.getElementById('lenientweighteddiv')) { |
|
document.getElementById('lenientweighteddiv').style.display='block'; |
|
} |
|
var patternRelWeight = /^\-?[\d.]+$/; |
|
var sform=choices.document.forms.sch; |
|
var relwtlength = sform.lenientrelwt.length; |
|
if ((relwtlength != '') && (typeof(relwtlength) != 'undefined')) { |
|
for (var i=0; i<sform.lenientrelwt.length; i++) { |
|
var relweight = sform.lenientrelwt[i].value; |
|
relweight = relweight.replace(/^\s+|\s+$/g,''); |
|
if (!patternRelWeight.test(relweight)) { |
|
if (i<2) { |
|
relweight = '1.0'; |
|
} else { |
|
relweight = '0.0'; |
|
} |
|
} |
|
sform.lenientrelwt[i].value = relweight; |
|
if (i==0) { |
|
svalue = relweight; |
|
} else { |
|
svalue += ','+relweight; |
|
} |
|
} |
|
} |
|
} else { |
|
if (document.getElementById('lenientweighteddiv')) { |
|
document.getElementById('lenientweighteddiv').style.display='none'; |
|
} |
|
svalue=newval; |
|
} |
|
draw(); |
|
} |
|
|
|
function calllenientradioeval(newval) { |
|
return 'onclick="parent.lenienteval(\''+newval+'\')"'; |
|
} |
|
|
function callintervalpmodval() { |
function callintervalpmodval() { |
return 'onclick="parent.intcalc();parent.toggleSecret()"'; |
return 'onclick="parent.intcalc();parent.toggleSecret()"'; |
} |
} |
Line 652 function colorfield(ir,ig,ib) {
|
Line 742 function colorfield(ir,ig,ib) {
|
if (color==svalue) { selection="<font color='#"+col[10-ir]+col[10-ig]+col[10-ib]+"'>X</font>"; } |
if (color==svalue) { selection="<font color='#"+col[10-ir]+col[10-ig]+col[10-ib]+"'>X</font>"; } |
choicewrite('<td bgcolor="'+color+'"><a href="javascript:parent.pickcolor('+"'"+ |
choicewrite('<td bgcolor="'+color+'"><a href="javascript:parent.pickcolor('+"'"+ |
color+"'"+')">'+selection+'</a></td>'); |
color+"'"+')">'+selection+'</a></td>'); |
|
} |
} |
|
|
|
function draw() { |
function draw() { |
choicestart(); |
choicestart(); |
Line 756 function draw() {
|
Line 845 function draw() {
|
tablestart('Date and time'); |
tablestart('Date and time'); |
} |
} |
if (pscat=='interval') { |
if (pscat=='interval') { |
var proctorkeytype = 'hidden'; |
var proctorkeytype = 'hidden'; |
var donebuttontext = 'none'; |
var donebuttontext = 'none'; |
if (pmodval == '_done_proctor') { |
if (pmodval == '_done_proctor') { |
proctorkeytype = 'text'; |
proctorkeytype = 'text'; |
Line 865 function draw() {
|
Line 954 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 884 function draw() {
|
Line 973 function draw() {
|
} |
} |
|
|
if (ptype=='string') { |
if (ptype=='string') { |
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">'); |
Line 953 function draw() {
|
Line 1042 function draw() {
|
choicewrite('<label><input name="stringval" value="exam"'+ |
choicewrite('<label><input name="stringval" value="exam"'+ |
' type="radio" '+callradiostringeval('exam')); |
' type="radio" '+callradiostringeval('exam')); |
if (svalue=='exam') { choicewrite(' checked="checked"'); } |
if (svalue=='exam') { choicewrite(' checked="checked"'); } |
choicewrite(' /> Exam</label><br />'); |
choicewrite(' /> Bubblesheet Exam</label><br />'); |
// choicewrite('<label><input name="stringval" value="assess"'+ |
// choicewrite('<label><input name="stringval" value="assess"'+ |
// ' type="radio" '+callradiostringeval('assess')); |
// ' type="radio" '+callradiostringeval('assess')); |
// if (svalue=='assess') { choicewrite(' checked="checked"'); } |
// if (svalue=='assess') { choicewrite(' checked="checked"'); } |
Line 988 function draw() {
|
Line 1077 function draw() {
|
choicewrite(' /> Library</label><br />'); |
choicewrite(' /> Library</label><br />'); |
} |
} |
if (pscat=='lenient') { |
if (pscat=='lenient') { |
|
var patternLenientStd = /^(yes|no|default)$/; |
|
var patternLenientRel = /^([\-\d\.]+)\,([\-\d\.]+)\,([\-\d\.]+)\,([\-\d\.]+)$/; |
|
var lenientweighted = 'none'; |
|
var relatives = new Array; |
tablestart('Lenient Grading (Partial Credit)'); |
tablestart('Lenient Grading (Partial Credit)'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<label><input name="stringval" value="yes"'+ |
choicewrite('<label><input name="stringval" value="yes"'+ |
' type="radio" '+callradiostringeval('yes')); |
' type="radio" '+calllenientradioeval('yes')); |
if (svalue=='yes') { choicewrite(' checked="checked"'); } |
if (svalue=='yes') { choicewrite(' checked="checked"'); } |
choicewrite(' /> Yes</label><br />'); |
choicewrite(' /> Yes</label><br />'); |
choicewrite('<label><input name="stringval" value="no"'+ |
choicewrite('<label><input name="stringval" value="no"'+ |
' type="radio" '+callradiostringeval('no')); |
' type="radio" '+calllenientradioeval('no')); |
if (svalue=='no') { choicewrite(' checked="checked"'); } |
if (svalue=='no') { choicewrite(' checked="checked"'); } |
choicewrite(' /> No</label><br />'); |
choicewrite(' /> No</label><br />'); |
choicewrite('<label><input name="stringval" value="default"'+ |
choicewrite('<label><input name="stringval" value="default"'+ |
' type="radio" '+callradiostringeval('default')); |
' type="radio" '+calllenientradioeval('default')); |
if (svalue=='default') { choicewrite(' checked="checked"'); } |
if (svalue=='default') { choicewrite(' checked="checked"'); } |
choicewrite(' /> Default (only bubblesheet grading is lenient)</label><br />'); |
choicewrite(' /> Default (only bubblesheet grading is lenient)</label><br />'); |
|
choicewrite('<label><input name="stringval" value="weighted"'+ |
|
' type="radio" '+calllenientradioeval('weighted')); |
|
if (!patternLenientStd.test(svalue) && svalue != '') { |
|
choicewrite(' checked="checked"'); |
|
lenientweighted='block'; |
|
var relatives = svalue.match(patternLenientRel); |
|
} |
|
choicewrite(' />Yes, weighted (optionresponse in checkbox mode)</label><br /><br />'+ |
|
'<div id="lenientweighteddiv" style="display:'+lenientweighted+'">'+ |
|
'<table class="LC_parmsel_table"><tr bgcolor="#C5DB99">'+ |
|
'<th colspan="2">Foil submission status</th><th>Points</th></tr>'); |
|
var lenienttypes = ['Correct (checked)','Correct (unchecked)','Incorrect (checked)','Incorrect (unchecked)']; |
|
for (var i=0; i<lenienttypes.length; i++) { |
|
var j = i+1; |
|
if (relatives[j] == '') { |
|
if (i < 2) { |
|
relatives[j] = '1.0'; |
|
} else { |
|
relatives[j] = '0.0'; |
|
} |
|
} |
|
choicewrite('<tr><td colspan="2">'+lenienttypes[i]+'</td>'+ |
|
'<td><input type="text" name="lenientrelwt" value="'+relatives[j]+'"'+ |
|
' size="3" onblur="parent.lenienteval(\'weighted\')" /></td></tr>'); |
|
} |
|
choicewrite('</table></div>'); |
} |
} |
if (pscat=='discussvote') { |
if (pscat=='discussvote') { |
tablestart('Discussion Voting'); |
tablestart('Discussion Voting'); |
Line 1019 function draw() {
|
Line 1138 function draw() {
|
if (svalue=='no') { choicewrite(' checked="checked"'); } |
if (svalue=='no') { choicewrite(' checked="checked"'); } |
choicewrite(' /> No</label><br />'); |
choicewrite(' /> No</label><br />'); |
} |
} |
|
if (pscat=='tex') { |
|
tablestart('TeX file display'); |
|
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
|
choicewrite('<label><input name="stringval" value="tth"'+ |
|
' type="radio" '+callradiostringeval('tth')); |
|
if (svalue=='tth') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> tth (TeX to HTML)</label><br />'); |
|
choicewrite('<label><input name="stringval" value="mathjax"'+ |
|
' type="radio" '+callradiostringeval('mathjax')); |
|
if (svalue=='mathjax') { choicewrite(' checked="checked"'); } |
|
choicewrite(' /> MathJax</label><br />'); |
|
} |
if (pscat=='ip') { |
if (pscat=='ip') { |
var currallow = new Array; |
var currallow = new Array; |
var currdeny = new Array; |
var currdeny = new Array; |
if ((svalue != '') && (svalue != null)) { |
if ((svalue != '') && (typeof(svalue) != 'undefined')) { |
var patternComma = /,/; |
var patternComma = /,/; |
var patternAllow = /^([\[\]a-zA-Z\.\d\*\-]+)$/; |
var patternAllow = /^([\[\]a-zA-Z\.\d\*\-]+)$/; |
var patternDeny = /^\!([\[\]a-zA-Z\.\d\*\-]+)$/; |
var patternDeny = /^\!([\[\]a-zA-Z\.\d\*\-]+)$/; |
Line 1104 function draw() {
|
Line 1235 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 the 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 the 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') { |
if (pscat=='deeplink') { |
var deeplinkvals = new Array(); |
var deeplinkvals = new Array(); |
var linkprotectparts = new Array(); |
var linkprotectparts = new Array(); |
var ltikeyRegExp = /^(ltic|ltid|key):(\w+)$/; |
var ltikeyRegExp = /^(ltic:\d+|ltid:\d+|key:[a-zA-Z\d_.!@#$%^&*()+=-]+)$/; |
|
var linkexitparts = new Array(); |
|
var dlinkexitRegExp = /^(yes|url|no)(|:[^:,;'"]+)$/; |
var dlinkkeysty = 'hidden'; |
var dlinkkeysty = 'hidden'; |
var dlinkkeyval = ''; |
var dlinkkeyval = ''; |
var dlinklticdivsty = 'none'; |
var dlinklticdivsty = 'none'; |
var dlinkltiddivsty = 'none'; |
var dlinkltiddivsty = 'none'; |
var dlinkmenusdivsty = 'none'; |
var dlinkmenusdivsty = 'none'; |
if ((svalue != '') && (svalue != null)) { |
var dlinkexitdivsty = 'none'; |
|
var dlinkexittextval = ''; |
|
if ((svalue != '') && (typeof(svalue) != 'undefined')) { |
deeplinkvals = svalue.split(','); |
deeplinkvals = svalue.split(','); |
if (ltikeyRegExp.test(deeplinkvals[4])) { |
if (ltikeyRegExp.test(deeplinkvals[4])) { |
linkprotectparts = deeplinkvals[4].split(':'); |
linkprotectparts = deeplinkvals[4].split(':'); |
Line 1132 function draw() {
|
Line 1267 function draw() {
|
if (deeplinkvals[5] >= 1) { |
if (deeplinkvals[5] >= 1) { |
dlinkmenusdivsty = 'inline-block'; |
dlinkmenusdivsty = 'inline-block'; |
} |
} |
|
if (dlinkexitRegExp.test(deeplinkvals[7])) { |
|
linkexitparts = deeplinkvals[7].split(':'); |
|
deeplinkvals[7] = linkexitparts[0]; |
|
if (deeplinkvals[7] != 'no') { |
|
dlinkexitdivsty = 'inline-block'; |
|
if (!linkexitparts[1]) { |
|
dlinkexittextval = 'Exit Tool'; |
|
} else { |
|
dlinkexittextval = linkexitparts[1]; |
|
} |
|
} |
|
} |
} else { |
} else { |
deeplinkvals = ['off','unhide','full','res','','0']; |
deeplinkvals = ['off','unhide','full','res','','0','_self','no']; |
} |
} |
var deeplinkstate = new Array(); |
var deeplinkstate = new Array(); |
deeplinkstate = ['only','off','both']; |
deeplinkstate = ['only','off','both']; |
Line 1157 function draw() {
|
Line 1304 function draw() {
|
deeplinktarget = ['_self','_top']; |
deeplinktarget = ['_self','_top']; |
var deeplinktargettxt = new Array(); |
var deeplinktargettxt = new Array(); |
deeplinktargettxt = ['Embedded','Not embedded']; |
deeplinktargettxt = ['Embedded','Not embedded']; |
|
var deeplinkexit = ['yes','url','no']; |
tablestart('Deep-linked items'); |
tablestart('Deep-linked items'); |
choicewrite('<tr><td>Access status?</td><td>'); |
choicewrite('<tr><td>Access status?</td><td>'); |
choicewrite('<select name="deeplinkstate">'); |
choicewrite('<select name="deeplinkstate">'); |
Line 1212 function draw() {
|
Line 1360 function draw() {
|
choicewrite('</span><br />'); |
choicewrite('</span><br />'); |
|
|
var possmenus = new Array(); |
var possmenus = new Array(); |
if ((pextra != '') && (pextra != null)) { |
if ((pextra != '') && (typeof(pextra) != 'undefined')) { |
var lticRegExp = /^ltic_/; |
var lticRegExp = /^ltic_/; |
var ltidRegExp = /^ltid_/; |
var ltidRegExp = /^ltid_/; |
var menusRegExp = /^menus_/; |
var menusRegExp = /^menus_/; |
Line 1313 function draw() {
|
Line 1461 function draw() {
|
choicewrite(' checked="checked"'); |
choicewrite(' checked="checked"'); |
} |
} |
choicewrite(' /> Standard (all menus)</label></span><br />'); |
choicewrite(' /> Standard (all menus)</label></span><br />'); |
if (possmenus.length >= 1) { |
if (possmenus.length >= 1) { |
choicewrite('<span style="white-space: nowrap;"><label>'); |
choicewrite('<span style="white-space: nowrap;"><label>'); |
choicewrite('<input name="deeplinkmenus" value="collnum"'+ |
choicewrite('<input name="deeplinkmenus" value="collnum"'+ |
' type="radio" '+calldeeplink('menus')); |
' type="radio" '+calldeeplink('menus')); |
Line 1348 function draw() {
|
Line 1496 function draw() {
|
choicewrite('>'+deeplinktargettxt[i]+'</option>'); |
choicewrite('>'+deeplinktargettxt[i]+'</option>'); |
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
|
choicewrite('</td></tr>'); |
|
choicewrite('<tr><td>Exit Button?</td><td>'); |
|
choicewrite('<span style="white-space: nowrap;"><label>'); |
|
choicewrite('<input name="deeplinkexit" value="no"'+ |
|
' type="radio" '+calldeeplink('exit')); |
|
if (deeplinkvals[7]=='no') { choicewrite(' checked="checked"'); } |
|
choicewrite(' />not in use</label></span><br />'); |
|
choicewrite('<span style="white-space: nowrap;"><label>'); |
|
choicewrite('<input name="deeplinkexit" value="yes"'+ |
|
' type="radio" '+calldeeplink('exit')); |
|
if (deeplinkvals[7]=='yes') { choicewrite(' checked="checked"'); } |
|
choicewrite(' />in use, no redirect</label></span> '); |
|
choicewrite('<span style="white-space: nowrap;"><label>'); |
|
choicewrite('<input name="deeplinkexit" value="url"'+ |
|
' type="radio" '+calldeeplink('exit')); |
|
if (deeplinkvals[7]=='url') { choicewrite(' checked="checked"'); } |
|
choicewrite(' />in use, redirect to URL</label></span><br />'); |
|
choicewrite('<div id="deeplinkexitdiv" style="display:'+dlinkexitdivsty+'">'); |
|
choicewrite('<br /><span style="white-space: nowrap;">Button text: '); |
|
choicewrite('<input type="text" name="deeplinkexittext" id="deeplinkexittext" value="'+dlinkexittextval+'" size="10" />'); |
|
choicewrite('</span></div>'); |
choicewrite('</td></tr></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |
|
|
if (ptype=='color') { |
if (ptype=='color') { |
tablestart('Choose a Color'); |
tablestart('Choose a Color'); |
choicewrite('<table>'); |
choicewrite('<table>'); |
Line 1366 function draw() {
|
Line 1535 function draw() {
|
colorfield(ir,ig,ib); |
colorfield(ir,ig,ib); |
} |
} |
choicewrite('</tr>'); |
choicewrite('</tr>'); |
} |
} |
} |
} |
choicewrite('</table></td></table>'); |
choicewrite('</table></td></table>'); |
} |
} |
Line 1389 function catchange() {
|
Line 1558 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 1443 function init() {
|
Line 1628 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 1453 function init() {
|
Line 1639 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 1473 function init() {
|
Line 1659 function init() {
|
if (pair[0]=='extra') { pextra=pair[1]; } |
if (pair[0]=='extra') { pextra=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; |
|
} |
|
} |
|
} |
|
psmap = ismap; |
|
|
|
|
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 1516 function init() {
|
Line 1740 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 1593 function init() {
|
Line 1817 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 1623 function init() {
|
Line 1847 function init() {
|
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 if (pscat == 'deeplink') { sopt('deeplink','Deep-linked items'); } |
|
else if (pscat == 'tex') { sopt('texdisplay','TeX File Display'); } |
else { pscat = 'any'; } |
else { pscat = 'any'; } |
if (pscat != 'deeplink') { sopt('any','String Value'); } |
if (pscat != 'deeplink') { sopt('any','String Value'); } |
} |
} |
Line 1633 function init() {
|
Line 1858 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 1670 function init() {
|
Line 1911 function init() {
|
selwrite('</body></html>'); |
selwrite('</body></html>'); |
this.window.selector.document.close(); |
this.window.selector.document.close(); |
if (pscat == 'deeplink') { |
if (pscat == 'deeplink') { |
document.getElementById("LCparampopup").rows="60,*"; |
if (psmap==1) { |
|
document.getElementById("LCparampopup").rows="100,*"; |
|
} else { |
|
document.getElementById("LCparampopup").rows="60,*"; |
|
} |
} |
} |
draw(); |
draw(); |
|
|
} |
} |
|
|
// ]]> |
// ]]> |