[LON-CAPA-cvs] cvs: rat /client parameter.html loncom/publisher packages.tab
www
lon-capa-cvs@mail.lon-capa.org
Thu, 10 Jul 2003 10:29:00 -0000
www Thu Jul 10 06:29:00 2003 EDT
Modified files:
/loncom/publisher packages.tab
/rat/client parameter.html
Log:
Bug #1746: offering choices for standard filetypes.
Index: loncom/publisher/packages.tab
diff -u loncom/publisher/packages.tab:1.21 loncom/publisher/packages.tab:1.22
--- loncom/publisher/packages.tab:1.21 Thu Jul 10 04:34:42 2003
+++ loncom/publisher/packages.tab Thu Jul 10 06:29:00 2003
@@ -41,5 +41,5 @@
essayresponse&maxcollaborators&type:int_zeropos
essayresponse&maxcollaborators&default:0
essayresponse&maxcollaborators&display:Maximum Number of Collaborators
-essayresponse&uploadedfiletypes&type:string
+essayresponse&uploadedfiletypes&type:string_fileext
essayresponse&uploadedfiletypes&display:Allowed File Extensions for Uploaded Files
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.25 rat/client/parameter.html:1.26
--- rat/client/parameter.html:1.25 Thu Jul 10 04:34:43 2003
+++ rat/client/parameter.html Thu Jul 10 06:29:00 2003
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.25 2003/07/10 08:34:43 www Exp $
+// $Id: parameter.html,v 1.26 2003/07/10 10:29:00 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -590,9 +590,27 @@
if (pscat=='ip') {
tablestart('IP Number/Name');
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+
'" onChange="parent.stringeval()">');
}
+ if (pscat=='fileext') {
+ tablestart('Allowed File Extensions');
+ choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>');
+ choicewrite('<input name="stringval" value="txt"'+
+ ' type="radio" onChange="parent.radiostringeval(\'txt\')"');
+ if (svalue=='txt') { choicewrite(' checked'); }
+ choicewrite('> Plain Text<br />');
+ choicewrite('<input name="stringval" value="png,jpg,jpeg,gif"'+
+ ' type="radio" onChange="parent.radiostringeval(\'png,jpg,jpeg,gif\')"');
+ if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked'); }
+ choicewrite('> Picture File<br />');
+ choicewrite('<input name="stringval" value="doc,xls,ppt"'+
+ ' type="radio" onChange="parent.radiostringeval(\'doc,xls,ppt\')"');
+ if (svalue=='doc,xls,ppt') { choicewrite(' checked'); }
+ choicewrite('> Office Document<br />');
+ choicewrite('<input name="stringval" size="20" value="'+svalue+
+ '" onChange="parent.stringeval()">');
+ }
choicewrite('</td></table>');
}
}