'
@@ -576,7 +788,7 @@ function draw() {
if (ptype=='float') {
if (pscat=='default') {
tablestart('Default value or none');
- choicewrite('');
+ choicewrite('');
} else {
if (pscat=='pos') {
tablestart('Positive floating point number or zero');
@@ -699,20 +911,50 @@ function draw() {
choicewrite(' /> Library ');
}
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)');
choicewrite('
Value:
');
choicewrite(' Yes ');
choicewrite(' No ');
choicewrite(' Default (only bubblesheet grading is lenient) ');
+ choicewrite('Yes, weighted (optionresponse in checkbox mode)
'+
+ '
'+
+ '
'+
+ '
Foil submission status
Points
');
+ var lenienttypes = ['Correct (checked)','Correct (unchecked)','Incorrect (checked)','Incorrect (unchecked)'];
+ for (var i=0; i
'+lenienttypes[i]+'
'+
+ '
');
+ }
+ choicewrite('
');
}
if (pscat=='discussvote') {
tablestart('Discussion Voting');
@@ -731,10 +973,51 @@ function draw() {
choicewrite(' /> No ');
}
if (pscat=='ip') {
- tablestart('IP Number/Name');
- choicewrite('
Value:
');
- choicewrite('');
+ var currallow = new Array;
+ var currdeny = new Array;
+ if ((svalue != '') && (svalue != null)) {
+ var patternComma = /,/;
+ var patternAllow = /^([\[\]a-zA-Z\.\d\*\-]+)$/;
+ var patternDeny = /^\!([\[\]a-zA-Z\.\d\*\-]+)$/;
+ var current = new Array;
+ if (patternComma.test(svalue)) {
+ current = svalue.split(',');
+ } else {
+ current = (svalue);
+ }
+ for (var i=0; i
Allow from
Deny from
');
+ var acctypes = ['allow','deny'];
+ for (var i=0; i'+
+ '
'+
+ '
');
+ for (var j=0; j');
+ choicewrite('Remove');
+ choicewrite('
');
+ }
+ choicewrite('
');
+ }
+ choicewrite('
');
}
if (pscat=='fileext') {
tablestart('Allowed File Extensions');
@@ -774,10 +1057,35 @@ function draw() {
' type="radio" '+callradiostringeval('map_map'));
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. ');
- choicewrite('');
+ choicewrite('');
+ }
+ if (pscat=='deeplink') {
+ tablestart('Deep-linked items');
+ choicewrite('
Value:
');
+ choicewrite(' Displayed (linked) in Contents and Grades. ');
+ choicewrite(' Not displayed in Contents or Grades. ');
+ choicewrite(' Displayed in Grades only. ');
+ choicewrite(' Displayed (unlinked) in Contents and Grades. ');
+ choicewrite(' Displayed (with date status) but unlinked in Contents and Grades. ');
+ choicewrite('
');
}
}
-
+
if (ptype=='color') {
tablestart('Choose a Color');
choicewrite('