Diff for /loncom/publisher/lonpubdir.pm between versions 1.104 and 1.105

version 1.104, 2007/10/18 21:58:21 version 1.105, 2007/11/02 19:24:44
Line 362  sub dircontrols { Line 362  sub dircontrols {
                                        move => 'Move current file to',                                         move => 'Move current file to',
                                        copy => 'Copy current file to',                                         copy => 'Copy current file to',
                                        type => 'Type Name Here',                                         type => 'Type Name Here',
                                        go => 'Go',                                         go   => 'Go',
                                        prnt => 'Print contents of directory',                                         prnt => 'Print contents of directory',
                                        crea => 'Create a new directory or LON-CAPA document',                                         crea => 'Create a new directory or LON-CAPA document',
        acti => 'Actions for current directory',         acti => 'Actions for current directory',
        updc => 'Upload a new document'         updc => 'Upload a new document',
          pick => 'Please select an action to perform using the new filename',
                                       );                                        );
     $r->print(<<END);      $r->print(<<END);
         <table id="LC_cstr_controls">          <table id="LC_cstr_controls">
Line 406  sub dircontrols { Line 407  sub dircontrols {
     <form name="fileaction" method="post" action="/adm/cfile" target="_parent">      <form name="fileaction" method="post" action="/adm/cfile" target="_parent">
       <span style="white-space: nowrap">        <span style="white-space: nowrap">
  <input type="hidden" name="filename" value="/~$uname$thisdisfn/" />   <input type="hidden" name="filename" value="/~$uname$thisdisfn/" />
   <select name="action">                    <script type="text/javascript">
     <option value="Select Action">$lt{'sela'}</option>                      function validate_go() {
     <option value="newfile">$lt{'nfil'}:</option>                          var selected = document.fileaction.action.selectedIndex;
     <option value="newhtmlfile">$lt{'nhtm'}:</option>                          if (selected == 0) {
     <option value="newproblemfile">$lt{'nprb'}:</option>                              alert('$lt{'pick'}');
                             <option value="newpagefile">$lt{'npag'}:</option>                          } else {
                             <option value="newsequencefile">$lt{'nseq'}:</option>                              document.fileaction.submit();
                             <option value="newrightsfile">$lt{'ncrf'}:</option>                          }
                             <option value="newstyfile">$lt{'nsty'}:</option>                      }
                             <option value="newtaskfile">$lt{'nbt'}:</option>                    </script>
                             <option value="newlibraryfile">$lt{'nlib'}:</option>    <select name="action">
     <option value="newdir">$lt{'nsub'}:</option>      <option value="none">$lt{'sela'}</option>
   </select>&nbsp;<input type="text" name="newfilename" value="Type Name Here" onfocus="if (this.value == 'Type Name Here') this.value=''" />&nbsp;<input type="button" value="Go" onclick="document.fileaction.submit()" />      <option value="newfile">$lt{'nfil'}:</option>
       <option value="newhtmlfile">$lt{'nhtm'}:</option>
       <option value="newproblemfile">$lt{'nprb'}:</option>
                       <option value="newpagefile">$lt{'npag'}:</option>
                       <option value="newsequencefile">$lt{'nseq'}:</option>
                       <option value="newrightsfile">$lt{'ncrf'}:</option>
                       <option value="newstyfile">$lt{'nsty'}:</option>
                       <option value="newtaskfile">$lt{'nbt'}:</option>
                       <option value="newlibraryfile">$lt{'nlib'}:</option>
               <option value="newdir">$lt{'nsub'}:</option>
     </select>&nbsp;<input type="text" name="newfilename" value="Type Name Here" onfocus="if (this.value == 'Type Name Here') this.value=''" />&nbsp;<input type="button" value="Go" onclick="validate_go();" />
  </span>   </span>
  </form>   </form>
   </td>    </td>

Removed from v.1.104  
changed lines
  Added in v.1.105


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