--- loncom/interface/londocs.pm 2003/05/30 20:51:03 1.58 +++ loncom/interface/londocs.pm 2003/07/09 10:05:15 1.64 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.58 2003/05/30 20:51:03 albertel Exp $ +# $Id: londocs.pm,v 1.64 2003/07/09 10:05:15 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -539,13 +539,7 @@ ENDHEADERS $iconpath = $r->dir_config('lonIconsURL') . "/"; my $now=time; -# -# FIXME: hack to disable new problem -# - my $noeggforyou=''; - unless ($ENV{'user.debug'}) { - $noeggforyou='alert("Sorry, not implemented yet."); return 0;'; - } + # print screen $r->print(< @@ -571,6 +565,15 @@ function makenewext(targetname) { window.open('/adm/rat/extpickframe.html'); } +function makeexamupload() { + var title=prompt('Listed Title for the Uploaded Score'); + if (title) { + this.document.forms.newexamupload.importdetail.value= + title+'=/res/lib/templates/examupload.problem'; + this.document.forms.newexamupload.submit(); + } +} + function makesmppage() { var title=prompt('Listed Title for the Page'); if (title) { @@ -581,11 +584,10 @@ function makesmppage() { } function makesmpproblem() { - $noeggforyou var title=prompt('Listed Title for the Problem'); if (title) { this.document.forms.newsmpproblem.importdetail.value= - title+'=/adm/wrapper/uploaded/$udom/$uname/$now.problem'; + title+'=/res/lib/templates/simpleproblem.problem'; this.document.forms.newsmpproblem.submit(); } } @@ -687,17 +689,18 @@ $ENV{'request.role'}.'" value="1" /> File:
- +
Title:
- - $help{'Uploading_From_Harddrive'} +
+ $help{'Uploading_From_Harddrive'} +
@@ -710,11 +713,13 @@ Title:
"javascript:document.forms.simpleedit.folder.value='$folder';groupimport();" value="Import"> $help{'Importing_LON-CAPA_Resource'} -
+

+


+value="Select Map"> +

@@ -774,6 +779,15 @@ onClick="javascript:makesmppage();" /> $ onClick="javascript:makesmpproblem();" />$help{'Creating_From_Template'}
+
+ + + + + + +
@@ -820,7 +834,7 @@ ENDFORM - +
Comment:
@@ -842,11 +856,13 @@ ENDFORM "javascript:document.forms.simpleedit.folder.value='$folder';groupsearch()" value="Search"> $help{'Importing_LON-CAPA_Resource'} -
+

+


+value="Select Map"> +