--- loncom/interface/londocs.pm 2003/06/08 01:46:41 1.59 +++ loncom/interface/londocs.pm 2003/07/15 19:52:47 1.65 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.59 2003/06/08 01:46:41 www Exp $ +# $Id: londocs.pm,v 1.65 2003/07/15 19:52:47 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', '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'}) { @@ -539,13 +549,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 +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) { @@ -581,11 +594,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(); } } @@ -696,8 +708,9 @@ Title:
- $help{'Uploading_From_Harddrive'} + $help{'Uploading_From_Harddrive'} +
@@ -715,7 +728,7 @@ $help{'Importing_LON-CAPA_Resource'} +value="Select Map">

@@ -745,7 +758,7 @@ value="External Resource" /> $help{'Addi value="Syllabus=/public/$coursedom/$coursenum/syllabus"> - $help{'Creating_From_Template'} + $help{'Syllabus'}
@@ -764,7 +777,7 @@ $help{'Navigate_Content'} $help{'Creating_From_Template'} +onClick="javascript:makesmppage();" /> $help{'Simple Page'}
@@ -773,7 +786,16 @@ onClick="javascript:makesmppage();" /> $ $help{'Creating_From_Template'} +onClick="javascript:makesmpproblem();" />$help{'Simple Problem'} + +
+
+ + + + +
@@ -783,7 +805,7 @@ onClick="javascript:makesmpproblem();" / -$help{'Creating_From_Template'} +$help{'Bulletin Board'}
@@ -793,7 +815,7 @@ $help{'Creating_From_Template'} value="$plainname=/adm/$udom/$uname/aboutme"> -$help{'Creating_From_Template'} +$help{'My Personal Info'}
@@ -849,7 +871,7 @@ ENDFORM +value="Select Map">

@@ -880,7 +902,7 @@ value="External Resource" /> $help{'Addi value="Syllabus=/public/$coursedom/$coursenum/syllabus"> -$help{'Creating_From_Template'} +$help{'Syllabus'}
@@ -890,7 +912,7 @@ $help{'Creating_From_Template'} value="$plainname=/adm/$udom/$uname/aboutme"> -$help{'Creating_From_Template'} +$help{'My Personal Info'}