--- loncom/interface/londocs.pm 2003/05/13 15:41:20 1.55 +++ loncom/interface/londocs.pm 2003/07/15 20:08:28 1.66 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.55 2003/05/13 15:41:20 www Exp $ +# $Id: londocs.pm,v 1.66 2003/07/15 20:08:28 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -376,10 +376,20 @@ sub handler { foreach ('Adding_Course_Doc','Main_Course_Documents', 'Adding_External_Resource','Navigate_Content', 'Adding_Folders','Docs_Overview', - 'Creating_From_Template','Supplemental', + 'Supplemental', 'Score_Upload_Form', 'Importing_LON-CAPA_Resource','Uploading_From_Harddrive') { $help{$_}=&Apache::loncommon::help_open_topic('Docs_'.$_); } + # Composite help files + $help{'Syllabus'} = &Apache::loncommon::help_open_topic( + 'Docs_About_Syllabus,Docs_Editing_Templated_Pages'); + $help{'Simple Page'} = &Apache::loncommon::help_open_topic( + 'Docs_About_Simple_Page,Docs_Editing_Templated_Pages'); + $help{'Bulletin Board'} = &Apache::loncommon::help_open_topic( + 'Docs_About_Bulletin_Board,Docs_Editing_Templated_Pages'); + $help{'My Personal Info'} = &Apache::loncommon::help_open_topic( + 'Docs_About_My_Personal_Info,Docs_Editing_Templated_Pages'); + if ($ENV{'form.verify'}) { @@ -565,6 +575,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) { @@ -578,7 +597,7 @@ function makesmpproblem() { 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(); } } @@ -612,7 +631,7 @@ function changename(folder,index,oldtitl } function removeres(folder,index,oldtitle) { - if (confirm('Remove "'+oldtitle+'"?')) { + if ((oldtitle=='NO RESOURCE') || (confirm('Remove "'+oldtitle+'"?'))) { this.document.forms.renameform.cmd.value='del_'+index; this.document.forms.renameform.folder.value=folder; this.document.forms.renameform.submit(); @@ -680,15 +699,18 @@ $ENV{'request.role'}.'" value="1" /> File:
- +
-Title:
+Title:
- $help{'Uploading_From_Harddrive'}
+ + $help{'Uploading_From_Harddrive'} + +
@@ -696,73 +718,107 @@ Title:
+ -$help{'Importing_LON-CAPA_Resource'}
+$help{'Importing_LON-CAPA_Resource'} +
+

+


+value="Select Map"> +

+ $help{'Adding_Folders'} +value="New Folder" />$help{'Adding_Folders'} +
+ $help{'Adding_External_Resource'} +
+ - $help{'Creating_From_Template'} + $help{'Syllabus'} +
+
+ $help{'Navigate_Content'} +
+ $help{'Creating_From_Template'} +onClick="javascript:makesmppage();" /> $help{'Simple Page'} +
+ $help{'Creating_From_Template'} +onClick="javascript:makesmpproblem();" />$help{'Simple Problem'} + +
+
+ + + + + +$help{'Score_Upload_Form'} +
+ -$help{'Creating_From_Template'} +$help{'Bulletin Board'} +
+
+ -$help{'Creating_From_Template'} +$help{'My Personal Info'} +
+ ENDFORM @@ -789,15 +845,18 @@ ENDFORM
- +
Comment:
+ - $help{'Uploading_From_Harddrive'} + $help{'Uploading_From_Harddrive'} +
+
@@ -808,43 +867,55 @@ ENDFORM "javascript:document.forms.simpleedit.folder.value='$folder';groupsearch()" value="Search"> $help{'Importing_LON-CAPA_Resource'} -
+

+


+value="Select Map"> +

+ $help{'Adding_Folders'} +
+ $help{'Adding_External_Resource'} +
+ -$help{'Creating_From_Template'} +$help{'Syllabus'} +
+
+ -$help{'Creating_From_Template'} +$help{'My Personal Info'} +
+ ENDSUPFORM