Diff for /loncom/publisher/publisher.html between versions 1.5 and 1.9

version 1.5, 2001/03/31 01:44:31 version 1.9, 2001/04/09 18:22:07
Line 5 Line 5
   
 function getfilename() {  function getfilename() {
    document.publisher.filename.value=parent.LONCAPAToBePublished.location.href;     document.publisher.filename.value=parent.LONCAPAToBePublished.location.href;
      if ((document.publisher.filename.value.charAt(
           document.publisher.filename.value.length-1)!='/') &&
          (document.publisher.filename.value.indexOf('/adm/pubdir')==-1)) {
           document.publisher.submit();
      } else {
         alert('Cannot publish directory');
      }
 }  }
   
 function getdfilename() {  function getdfilename() {
   document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href;    document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
     if (document.dpublisher.filename.value.indexOf('/adm/pubdir')==-1) {
         document.dpublisher.submit();
     }
   }
   
   function getufilename() {
     document.upublisher.filename.value=parent.LONCAPAToBePublished.location.href;
     if (document.upublisher.filename.value.indexOf('/adm/pubdir')==-1) {
         document.upublisher.submit();
     }
 }  }
   
 function getrfilename() {  function getrfilename() {
   document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;    document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
      if ((document.rpublisher.filename.value.charAt(
           document.rpublisher.filename.value.length-1)!='/') &&
          (document.rpublisher.filename.value.indexOf('/adm/pubdir')==-1)) {
           document.rpublisher.submit();
      } else {
         alert('Cannot retrieve directory');
      }
 }  }
   
 </script>  </script>
 </head>  </head>
 <body bgcolor="#FFFFFF">  <body bgcolor="#FFFFFF">
 <table><tr><td>  <table border=2><tr><td>
 <form name="publisher" action="/adm/publish" target="_parent" method="post"   <form name="publisher" action="/adm/publish" target="_parent" method="post">
 onSubmit="getfilename();">  
 <input type="hidden" name="filename" value="">  <input type="hidden" name="filename" value="">
 <input type="submit" value="Publish this Resource">  <input type="button" value="Publish this Resource" onClick="getfilename();">
 </form></td><td>  </form></td><td>
 <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished"   <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished" 
 method="post" onSubmit="getdfilename();">  method="post">
 <input type="hidden" name="filename" value="">  <input type="hidden" name="filename" value="">
 <input type="submit" value="List Directory">  <input type="button" value="List Directory" onClick="getdfilename();">
 </form></td><td>  </form></td><td>
 <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post"  <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post">
  onSubmit="getrfilename();">  
 <input type="hidden" name="filename" value="">  <input type="hidden" name="filename" value="">
 <input type="submit" value="Retrieve Old Version">  <input type="button" value="Retrieve Old Version" onClick="getrfilename();">
 </form></td><td>  </form></td><td>
 <b>LON-CAPA Construction Space</b>  <form name="upublisher" action="/adm/upload" target="_parent" 
   method="post" enctype="multipart/form-data">
   <input type="hidden" name="filename" value="">
   <input type="file" size="20">
   <input type="button" value="Upload file" onClick="getufilename();">
   </form>
 </td></tr></table>  </td></tr></table>
 </body>  </body>
 </html>  </html>
   

Removed from v.1.5  
changed lines
  Added in v.1.9


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