File:  [LON-CAPA] / loncom / publisher / publisher.html
Revision 1.8: download - view: text, annotated - select for diffs
Tue Apr 3 14:57:17 2001 UTC (23 years, 2 months ago) by www
Branches: MAIN
CVS tags: HEAD
Catch attempt to retrieve directory

    1: <html>
    2: <head>
    3: <title>LON-CAPA Publishing Frame</title>
    4: <script>
    5: 
    6: function getfilename() {
    7:    document.publisher.filename.value=parent.LONCAPAToBePublished.location.href;
    8:    if ((document.publisher.filename.value.charAt(
    9:         document.publisher.filename.value.length-1)!='/') &&
   10:        (document.publisher.filename.value.indexOf('/adm/pubdir')==-1)) {
   11:         document.publisher.submit();
   12:    } else {
   13:       alert('Cannot publish directory');
   14:    }
   15: }
   16: 
   17: function getdfilename() {
   18:   document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
   19:   if (document.dpublisher.filename.value.indexOf('/adm/pubdir')==-1) {
   20:       document.dpublisher.submit();
   21:   }
   22: }
   23: 
   24: function getrfilename() {
   25:   document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
   26:    if ((document.rpublisher.filename.value.charAt(
   27:         document.rpublisher.filename.value.length-1)!='/') &&
   28:        (document.rpublisher.filename.value.indexOf('/adm/pubdir')==-1)) {
   29:         document.rpublisher.submit();
   30:    } else {
   31:       alert('Cannot retrieve directory');
   32:    }
   33: }
   34: 
   35: </script>
   36: </head>
   37: <body bgcolor="#FFFFFF">
   38: <table><tr><td>
   39: <form name="publisher" action="/adm/publish" target="_parent" method="post">
   40: <input type="hidden" name="filename" value="">
   41: <input type="button" value="Publish this Resource" onClick="getfilename();">
   42: </form></td><td>
   43: <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished" 
   44: method="post">
   45: <input type="hidden" name="filename" value="">
   46: <input type="button" value="List Directory" onClick="getdfilename();">
   47: </form></td><td>
   48: <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post">
   49: <input type="hidden" name="filename" value="">
   50: <input type="button" value="Retrieve Old Version" onClick="getrfilename();">
   51: </form></td><td>
   52: <b>LON-CAPA Construction Space</b>
   53: </td></tr></table>
   54: </body>
   55: </html>

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