version 1.31, 2005/06/14 02:33:18
|
version 1.45, 2007/06/13 01:01:33
|
Line 176 function year() {
|
Line 176 function year() {
|
var thisyear=cdate.getFullYear(); |
var thisyear=cdate.getFullYear(); |
var nowdate=new Date(); |
var nowdate=new Date(); |
var nowyear=nowdate.getFullYear(); |
var nowyear=nowdate.getFullYear(); |
|
if ( !thisyear ) { thisyear=nowyear; } |
var loweryear=thisyear-2; |
var loweryear=thisyear-2; |
var upperyear=thisyear+5; |
var upperyear=thisyear+5; |
if (thisyear>nowyear) { loweryear=nowyear-2; } |
if (thisyear>nowyear) { loweryear=nowyear-2; } |
Line 528 function draw() {
|
Line 529 function draw() {
|
} |
} |
|
|
if (ptype=='string') { |
if (ptype=='string') { |
if (pscat=='default') { |
if ((pscat=='any') || (pscat=='') || (pscat=='default') || |
tablestart('Default value or none'); |
(typeof(pscat)=='undefined')) { |
choicewrite('</table>'); |
|
} else { |
|
if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) { |
|
tablestart('Text'); |
tablestart('Text'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
Line 541 function draw() {
|
Line 539 function draw() {
|
if (pscat=='yesno') { |
if (pscat=='yesno') { |
tablestart('Yes/No'); |
tablestart('Yes/No'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" value="yes"'+ |
choicewrite('<label><input name="stringval" value="yes"'+ |
' type="radio" '+callradiostringeval('yes')); |
' type="radio" '+callradiostringeval('yes')); |
if (svalue=='yes') { choicewrite(' checked'); } |
if (svalue=='yes') { choicewrite(' checked'); } |
choicewrite('> Yes<br />'); |
choicewrite('> Yes</label><br />'); |
choicewrite('<input name="stringval" value="no"'+ |
choicewrite('<label><input name="stringval" value="no"'+ |
' type="radio" '+callradiostringeval('no')); |
' type="radio" '+callradiostringeval('no')); |
if (svalue=='no') { choicewrite(' checked'); } |
if (svalue=='no') { choicewrite(' checked'); } |
choicewrite('> No<br />'); |
choicewrite('> No</label><br />'); |
} |
} |
if (pscat=='examtype') { |
if (pscat=='examtype') { |
tablestart('Exam Type'); |
tablestart('Exam Type'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" value="online"'+ |
choicewrite('<label><input name="stringval" value="online"'+ |
' type="radio" '+callradiostringeval('online')); |
' type="radio" '+callradiostringeval('online')); |
if (svalue=='online') { choicewrite(' checked'); } |
if (svalue=='online') { choicewrite(' checked'); } |
choicewrite('> Online<br />'); |
choicewrite('> Online</label><br />'); |
choicewrite('<input name="stringval" value="checkout"'+ |
choicewrite('<label><input name="stringval" value="checkout"'+ |
' type="radio" '+callradiostringeval('checkout')); |
' type="radio" '+callradiostringeval('checkout')); |
if (svalue=='checkout') { choicewrite(' checked'); } |
if (svalue=='checkout') { choicewrite(' checked'); } |
choicewrite('> Check out<br />'); |
choicewrite('> Check out</label><br />'); |
} |
} |
if (pscat=='questiontype') { |
if (pscat=='questiontype') { |
tablestart('Question Type'); |
tablestart('Question Type'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" value="problem"'+ |
choicewrite('<label><input name="stringval" value="problem"'+ |
' type="radio" '+callradiostringeval('problem')); |
' type="radio" '+callradiostringeval('problem')); |
if (svalue=='problem') { choicewrite(' checked'); } |
if (svalue=='problem') { choicewrite(' checked'); } |
choicewrite('> Standard Problem<br />'); |
choicewrite('> Standard Problem</label><br />'); |
choicewrite('<input name="stringval" value="quiz"'+ |
// choicewrite('<label><input name="stringval" value="quiz"'+ |
' type="radio" '+callradiostringeval('quiz')); |
// ' type="radio" '+callradiostringeval('quiz')); |
if (svalue=='quiz') { choicewrite(' checked'); } |
// if (svalue=='quiz') { choicewrite(' checked'); } |
choicewrite('> Quiz<br />'); |
// choicewrite('> Quiz</label><br />'); |
choicewrite('<input name="stringval" value="exam"'+ |
choicewrite('<label><input name="stringval" value="practice"'+ |
|
' type="radio" '+callradiostringeval('practice')); |
|
if (svalue=='practice') { choicewrite(' checked'); } |
|
choicewrite('> Practice</label><br />'); |
|
choicewrite('<label><input name="stringval" value="exam"'+ |
' type="radio" '+callradiostringeval('exam')); |
' type="radio" '+callradiostringeval('exam')); |
if (svalue=='exam') { choicewrite(' checked'); } |
if (svalue=='exam') { choicewrite(' checked'); } |
choicewrite('> Exam<br />'); |
choicewrite('> Exam</label><br />'); |
choicewrite('<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'); } |
// if (svalue=='assess') { choicewrite(' checked'); } |
choicewrite('> Assessment<br />'); |
// choicewrite('> Assessment</label><br />'); |
choicewrite('<input name="stringval" value="survey"'+ |
choicewrite('<label><input name="stringval" value="survey"'+ |
' type="radio" '+callradiostringeval('survey')); |
' type="radio" '+callradiostringeval('survey')); |
if (svalue=='survey') { choicewrite(' checked'); } |
if (svalue=='survey') { choicewrite(' checked'); } |
choicewrite('> Survey<br />'); |
choicewrite('> Survey</label><br />'); |
choicewrite('<input name="stringval" value="form"'+ |
// choicewrite('<label><input name="stringval" value="form"'+ |
' type="radio" '+callradiostringeval('form')); |
// ' type="radio" '+callradiostringeval('form')); |
if (svalue=='form') { choicewrite(' checked'); } |
// if (svalue=='form') { choicewrite(' checked'); } |
choicewrite('> Input Form<br />'); |
// choicewrite('> Input Form</label><br />'); |
choicewrite('<input name="stringval" value="library"'+ |
choicewrite('<label><input name="stringval" value="library"'+ |
' type="radio" '+callradiostringeval('library')); |
' type="radio" '+callradiostringeval('library')); |
if (svalue=='library') { choicewrite(' checked'); } |
if (svalue=='library') { choicewrite(' checked'); } |
choicewrite('> Library<br />'); |
choicewrite('> Library</label><br />'); |
} |
} |
if (pscat=='ip') { |
if (pscat=='ip') { |
tablestart('IP Number/Name'); |
tablestart('IP Number/Name'); |
Line 603 function draw() {
|
Line 605 function draw() {
|
if (pscat=='fileext') { |
if (pscat=='fileext') { |
tablestart('Allowed File Extensions'); |
tablestart('Allowed File Extensions'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="radstringval" value="txt"'+ |
choicewrite('<label><input name="radstringval" value="txt"'+ |
' type="radio" '+callradiostringeval('txt')); |
' type="radio" '+callradiostringeval('txt')); |
if (svalue=='txt') { choicewrite(' checked'); } |
if (svalue=='txt') { choicewrite(' checked'); } |
choicewrite('> Plain Text<br />'); |
choicewrite('> Plain Text</label><br />'); |
choicewrite('<input name="radstringval" value="png,jpg,jpeg,gif"'+ |
choicewrite('<label><input name="radstringval" value="png,jpg,jpeg,gif"'+ |
' type="radio" '+callradiostringeval('png,jpg,jpeg,gif')); |
' type="radio" '+callradiostringeval('png,jpg,jpeg,gif')); |
if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked'); } |
if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked'); } |
choicewrite('> Picture File<br />'); |
choicewrite('> Picture File</label><br />'); |
choicewrite('<input name="radstringval" value="doc,xls,ppt"'+ |
choicewrite('<label><input name="radstringval" value="doc,xls,ppt"'+ |
' type="radio" '+callradiostringeval('doc,xls,ppt')); |
' type="radio" '+callradiostringeval('doc,xls,ppt')); |
if (svalue=='doc,xls,ppt') { choicewrite(' checked'); } |
if (svalue=='doc,xls,ppt') { choicewrite(' checked'); } |
choicewrite('> Office Document<br />'); |
choicewrite('> Office Document</label><br />'); |
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
'" onChange="parent.stringeval()">'); |
'" onChange="parent.stringeval()">'); |
} |
} |
|
if (pscat=='useslots') { |
|
tablestart('Slots control access'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<label><input name="stringval" value="no"'+ |
|
' type="radio" '+callradiostringeval('no')); |
|
if (svalue=='no') { choicewrite(' checked'); } |
|
choicewrite('> No</label><br />'); |
|
choicewrite('<label><input name="stringval" value="resource"'+ |
|
' type="radio" '+callradiostringeval('resource')); |
|
if (svalue=='resource') { choicewrite(' checked'); } |
|
choicewrite('> Yes, and the scope of student selected slot is a single resource.</label><br />'); |
|
choicewrite('<label><input name="stringval" value="map"'+ |
|
' type="radio" '+callradiostringeval('map')); |
|
if (svalue=='map') { choicewrite(' checked'); } |
|
choicewrite('> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource.</label><br />'); |
|
choicewrite('<label><input name="stringval" value="map_map"'+ |
|
' type="radio" '+callradiostringeval('map_map')); |
|
if (svalue=='map_map') { choicewrite(' 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('</td></table>'); |
choicewrite('</td></table>'); |
} |
} |
} |
} |
Line 641 function draw() {
|
Line 662 function draw() {
|
choicewrite('</table></td></table>'); |
choicewrite('</table></td></table>'); |
} |
} |
|
|
choicewrite('</table></form>'); |
choicewrite('</form>'); |
choiceend(); |
choiceend(); |
} |
} |
|
|
Line 661 function catchange() {
|
Line 682 function catchange() {
|
|
|
function assemble() { |
function assemble() { |
if ((ptype=='date') && (pscat!='interval')) { |
if ((ptype=='date') && (pscat!='interval')) { |
svalue=Math.round(cdate.getTime()/1000); |
svalue=Math.floor(cdate.getTime()/1000); |
} |
} |
if (ptype=='tolerance') { |
if (ptype=='tolerance') { |
if (pscat=='relative_sym') { |
if (pscat=='relative_sym') { |
Line 730 function init() {
|
Line 751 function init() {
|
if (pair[0]=='call') { pcode=pair[1]; } |
if (pair[0]=='call') { pcode=pair[1]; } |
if (pair[0]=='marker') { pmarker=pair[1]; } |
if (pair[0]=='marker') { pmarker=pair[1]; } |
if (pair[0]=='name') { pname=pair[1]; } |
if (pair[0]=='name') { pname=pair[1]; } |
if (pair[0]=='defhour') { defhour=pair[1]; } |
if (pair[0]=='defhour' && pair[1] >= 0 && pair[1] < 24 ) { |
if (pair[0]=='defmin') { defmin=pair[1]; } |
defhour=pair[1]; |
if (pair[0]=='defsec') { defsec=pair[1]; } |
} |
|
if (pair[0]=='defmin' && pair[1] >= 0 && pair[1] < 60) { defmin=pair[1]; } |
|
if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } |
} |
} |
|
|
svalue=pvalue; |
svalue=pvalue; |
Line 815 function init() {
|
Line 838 function init() {
|
} |
} |
|
|
if (ptype=='string') { |
if (ptype=='string') { |
sopt('default','Default'); |
//sopt('default','Default'); |
|
if (pscat == 'yesno') { sopt('yesno','Yes/No'); } |
|
else if (pscat == 'examtype') { sopt('examtype','Exam Type'); } |
|
else if (pscat == 'questiontype') { sopt('questiontype','Question Type'); } |
|
else if (pscat == 'ip') { sopt('ip','IP Number/Name'); } |
|
else if (pscat == 'fileext') { sopt('fileext','File Extension'); } |
|
else if (pscat == 'useslots') { sopt('useslots','Slots control access'); } |
|
else { pscat = 'any'; } |
sopt('any','String Value'); |
sopt('any','String Value'); |
} |
} |
|
|
Line 840 function init() {
|
Line 870 function init() {
|
if (pcode!='') { |
if (pcode!='') { |
selwrite('parent.opener.'+pcode+'();'); |
selwrite('parent.opener.'+pcode+'();'); |
} |
} |
selwrite('">Store</a> '); |
selwrite('">Save</a> '); |
|
|
selwrite('<a href="javascript:'); |
selwrite('<a href="javascript:'); |
selwrite( |
selwrite( |