Diff for /loncom/interface/londocs.pm between versions 1.63 and 1.65

version 1.63, 2003/07/07 07:32:16 version 1.65, 2003/07/15 19:52:47
Line 376  sub handler { Line 376  sub handler {
   foreach ('Adding_Course_Doc','Main_Course_Documents',    foreach ('Adding_Course_Doc','Main_Course_Documents',
            'Adding_External_Resource','Navigate_Content',             'Adding_External_Resource','Navigate_Content',
            'Adding_Folders','Docs_Overview',             'Adding_Folders','Docs_Overview',
            'Creating_From_Template','Supplemental',             'Supplemental',
            'Importing_LON-CAPA_Resource','Uploading_From_Harddrive') {             'Importing_LON-CAPA_Resource','Uploading_From_Harddrive') {
       $help{$_}=&Apache::loncommon::help_open_topic('Docs_'.$_);        $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'}) {    if ($ENV{'form.verify'}) {
     
Line 539  ENDHEADERS Line 549  ENDHEADERS
     $iconpath = $r->dir_config('lonIconsURL') . "/";      $iconpath = $r->dir_config('lonIconsURL') . "/";
   
     my $now=time;      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  # print screen
     $r->print(<<ENDDOCUMENT);      $r->print(<<ENDDOCUMENT);
 <html>  <html>
Line 590  function makesmppage() { Line 594  function makesmppage() {
 }  }
   
 function makesmpproblem() {  function makesmpproblem() {
    $noeggforyou  
    var title=prompt('Listed Title for the Problem');     var title=prompt('Listed Title for the Problem');
    if (title) {      if (title) { 
     this.document.forms.newsmpproblem.importdetail.value=      this.document.forms.newsmpproblem.importdetail.value=
Line 755  value="External Resource" /> $help{'Addi Line 758  value="External Resource" /> $help{'Addi
 value="Syllabus=/public/$coursedom/$coursenum/syllabus">  value="Syllabus=/public/$coursedom/$coursenum/syllabus">
 <nobr>  <nobr>
 <input name="newsyl" type="submit" value="Syllabus" />   <input name="newsyl" type="submit" value="Syllabus" /> 
  $help{'Creating_From_Template'}   $help{'Syllabus'}
 </nobr>  </nobr>
 </form>  </form>
 <form action="/adm/coursedocs" method="post" name="newnav">  <form action="/adm/coursedocs" method="post" name="newnav">
Line 774  $help{'Navigate_Content'} Line 777  $help{'Navigate_Content'}
 <input type=hidden name="importdetail" value="">  <input type=hidden name="importdetail" value="">
 <nobr>  <nobr>
 <input name="newsmppg" type="button" value="Simple Page"  <input name="newsmppg" type="button" value="Simple Page"
 onClick="javascript:makesmppage();" /> $help{'Creating_From_Template'}  onClick="javascript:makesmppage();" /> $help{'Simple Page'}
 </nobr>  </nobr>
 </form>  </form>
 <form action="/adm/coursedocs" method="post" name="newsmpproblem">  <form action="/adm/coursedocs" method="post" name="newsmpproblem">
Line 783  onClick="javascript:makesmppage();" /> $ Line 786  onClick="javascript:makesmppage();" /> $
 <input type=hidden name="importdetail" value="">  <input type=hidden name="importdetail" value="">
 <nobr>  <nobr>
 <input name="newsmpproblem" type="button" value="Simple Problem"  <input name="newsmpproblem" type="button" value="Simple Problem"
 onClick="javascript:makesmpproblem();" />$help{'Creating_From_Template'}  onClick="javascript:makesmpproblem();" />$help{'Simple Problem'}
 </nobr>  </nobr>
 </form>  </form>
 <form action="/adm/coursedocs" method="post" name="newexamupload">  <form action="/adm/coursedocs" method="post" name="newexamupload">
Line 802  onClick="javascript:makeexamupload();" / Line 805  onClick="javascript:makeexamupload();" /
 <nobr>  <nobr>
 <input name="newbulletin" type="button" value="Bulletin Board"  <input name="newbulletin" type="button" value="Bulletin Board"
 onClick="javascript:makebulboard();" />  onClick="javascript:makebulboard();" />
 $help{'Creating_From_Template'}  $help{'Bulletin Board'}
 </nobr>  </nobr>
 </form>  </form>
 <form action="/adm/coursedocs" method="post" name="newaboutme">  <form action="/adm/coursedocs" method="post" name="newaboutme">
Line 812  $help{'Creating_From_Template'} Line 815  $help{'Creating_From_Template'}
 value="$plainname=/adm/$udom/$uname/aboutme">  value="$plainname=/adm/$udom/$uname/aboutme">
 <nobr>  <nobr>
 <input name="newaboutme" type="submit" value="My Personal Info" />  <input name="newaboutme" type="submit" value="My Personal Info" />
 $help{'Creating_From_Template'}  $help{'My Personal Info'}
 </nobr>  </nobr>
 </form>  </form>
 </td></tr>  </td></tr>
Line 899  value="External Resource" /> $help{'Addi Line 902  value="External Resource" /> $help{'Addi
 value="Syllabus=/public/$coursedom/$coursenum/syllabus">  value="Syllabus=/public/$coursedom/$coursenum/syllabus">
 <nobr>  <nobr>
 <input name="newsyl" type="submit" value="Syllabus" />  <input name="newsyl" type="submit" value="Syllabus" />
 $help{'Creating_From_Template'}  $help{'Syllabus'}
 </nobr>  </nobr>
 </form>  </form>
 <form action="/adm/coursedocs" method="post" name="subnewaboutme">  <form action="/adm/coursedocs" method="post" name="subnewaboutme">
Line 909  $help{'Creating_From_Template'} Line 912  $help{'Creating_From_Template'}
 value="$plainname=/adm/$udom/$uname/aboutme">  value="$plainname=/adm/$udom/$uname/aboutme">
 <nobr>  <nobr>
 <input name="newaboutme" type="submit" value="My Personal Info" />  <input name="newaboutme" type="submit" value="My Personal Info" />
 $help{'Creating_From_Template'}  $help{'My Personal Info'}
 </nobr>  </nobr>
 </form>  </form>
 </td></tr>  </td></tr>

Removed from v.1.63  
changed lines
  Added in v.1.65


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>