Diff for /loncom/publisher/lonpubdir.pm between versions 1.65 and 1.66

version 1.65, 2004/11/08 22:42:20 version 1.66, 2004/11/30 19:08:18
Line 192  sub startpage { Line 192  sub startpage {
   
     $r->print('<html><head><title>LON-CAPA Construction Space</title></head>');      $r->print('<html><head><title>LON-CAPA Construction Space</title></head>');
   
     my $pagetitle;       my $pagetitle;
     my $formaction='/priv/'.$uname.'/'.$thisdisfn;      my $formaction='/priv/'.$uname.'/'.$thisdisfn.'/';
     $formaction=~s/\/+/\//g;      $formaction=~s/\/+/\//g;
     $pagetitle .= ('<form name="dirs" method="post" action="'.$formaction      $pagetitle .= &Apache::loncommon::help_open_menu('','','','',3,'Authoring').
               .'" target="_parent">'.  
         '<font face="Arial, Helvetica, sans-serif"><b>Construction Space</b>:</font>&nbsp;'.          '<font face="Arial, Helvetica, sans-serif"><b>Construction Space</b>:</font>&nbsp;'.
         &Apache::lonhtmlcommon::crumbs($uname.'/'.$thisdisfn,'top','/priv','','-1').          '<form name="dirs" method="post" action="'.$formaction.
           '" target="_parent">'.
           &Apache::lonhtmlcommon::crumbs($uname.'/'.$thisdisfn.'/','_top','/priv','','+1').
         &Apache::lonhtmlcommon::select_recent('construct','recent',          &Apache::lonhtmlcommon::select_recent('construct','recent',
                  'this.form.action=this.form.recent.value;this.form.submit()').                   'this.form.action=this.form.recent.value;this.form.submit()').
               '</form>');                '</form>';
      &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction);      &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction);
     if ($ENV{'environment.remote'} eq 'off') {      if ($ENV{'environment.remote'} eq 'off') {
  $ENV{'request.noversionuri'}=$currdir;   $ENV{'request.noversionuri'}=$currdir;
  $r->print(&Apache::loncommon::bodytag('Construction Space',undef,undef,undef,undef,undef,$pagetitle));   $r->print(&Apache::loncommon::bodytag('Construction Space',undef,undef,undef,undef,undef,$pagetitle));
     } else {      } else {
  $r->print($pagetitle);   $r->print($pagetitle);
     }      }
     $r->print(&Apache::loncommon::help_open_menu('','','','',3,'Authoring'));  
     my $pubdirscript=(<<ENDPUBDIRSCRIPT);      my $pubdirscript=(<<ENDPUBDIRSCRIPT);
 <script>  <script>
 // Store directory location for menu bar to find  // Store directory location for menu bar to find
Line 228  parent.lastknownpriv='/~$uname/$thisdisf Line 228  parent.lastknownpriv='/~$uname/$thisdisf
             pubrecdir(document.publishdir)              pubrecdir(document.publishdir)
         }          }
         if (theform.dirtask.options[theform.dirtask.selectedIndex].value == 'editcat') {          if (theform.dirtask.options[theform.dirtask.selectedIndex].value == 'editcat') {
             window.location=theform.filename.value+'default.meta'              top.location=theform.filename.value+'default.meta'
         }          }
         if (theform.dirtask.options[theform.dirtask.selectedIndex].value == 'printdir' ) {          if (theform.dirtask.options[theform.dirtask.selectedIndex].value == 'printdir' ) {
             document.printdir.postdata.value=theform.filename.value              document.printdir.postdata.value=theform.filename.value
Line 266  parent.lastknownpriv='/~$uname/$thisdisf Line 266  parent.lastknownpriv='/~$uname/$thisdisf
   
     function SetPubDir(theform,printForm) {      function SetPubDir(theform,printForm) {
         if (theform.diraction.options[theform.diraction.selectedIndex].value == "open") {          if (theform.diraction.options[theform.diraction.selectedIndex].value == "open") {
             window.location = theform.filename.value              top.location = theform.filename.value
             return              return
         }          }
         if (theform.diraction.options[theform.diraction.selectedIndex].value == "publish") {          if (theform.diraction.options[theform.diraction.selectedIndex].value == "publish") {
Line 276  parent.lastknownpriv='/~$uname/$thisdisf Line 276  parent.lastknownpriv='/~$uname/$thisdisf
             pubrecdir(theform)              pubrecdir(theform)
         }          }
         if (theform.diraction.options[theform.diraction.selectedIndex].value == "editcat") {          if (theform.diraction.options[theform.diraction.selectedIndex].value == "editcat") {
             window.location=theform.filename.value+'default.meta'              top.location=theform.filename.value+'default.meta'
         }          }
         if (theform.diraction.options[theform.diraction.selectedIndex].value == "print") {          if (theform.diraction.options[theform.diraction.selectedIndex].value == "print") {
             theform.action = '/adm/printout'              theform.action = '/adm/printout'
Line 370  sub dircontrols { Line 370  sub dircontrols {
     $r->print(<<END);      $r->print(<<END);
         <table cellspacing="4" cellpadding="4" width="100%">          <table cellspacing="4" cellpadding="4" width="100%">
          <tr>           <tr>
           <th bgcolor="#DDDDDD">Actions for current directory</th>            <td bgcolor="#DDDDDD" align="middle"><b>Actions for current directory</b></td>
           <th bgcolor="#DDDDDD">Upload a new document</th>            <td bgcolor="#DDDDDD" align="middle"><b>Upload a new document</b></td>
           <th bgcolor="#DDDDDD">Create a new directory or LON-CAPA document</th>            <td bgcolor="#DDDDDD" align="middle"><b>Create a new directory or LON-CAPA document</b></td>
         </tr>          </tr>
         <tr>          <tr>
          <td bgcolor="#ccddaa" valign="top" align="center">           <td bgcolor="#ccddaa" valign="top" align="center">

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


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