version 1.38, 2006/05/12 01:20:18
|
version 1.45, 2007/06/13 01:01:33
|
Line 529 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 637 function draw() {
|
Line 634 function draw() {
|
choicewrite('<label><input name="stringval" value="map"'+ |
choicewrite('<label><input name="stringval" value="map"'+ |
' type="radio" '+callradiostringeval('map')); |
' type="radio" '+callradiostringeval('map')); |
if (svalue=='map') { choicewrite(' checked'); } |
if (svalue=='map') { choicewrite(' checked'); } |
choicewrite('> Yes, and the scope of student selected slot is the enclosing map/folder.</label><br />'); |
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 662 function draw() {
|
Line 662 function draw() {
|
choicewrite('</table></td></table>'); |
choicewrite('</table></td></table>'); |
} |
} |
|
|
choicewrite('</table></form>'); |
choicewrite('</form>'); |
choiceend(); |
choiceend(); |
} |
} |
|
|
Line 682 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 838 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 863 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( |