Annotation of loncom/publisher/publisher.html, revision 1.10

1.1       www         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;
1.7       www         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:    }
1.1       www        15: }
                     16: 
1.4       www        17: function getdfilename() {
                     18:   document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
1.6       www        19:   if (document.dpublisher.filename.value.indexOf('/adm/pubdir')==-1) {
                     20:       document.dpublisher.submit();
                     21:   }
1.4       www        22: }
                     23: 
1.9       www        24: function getufilename() {
                     25:   document.upublisher.filename.value=parent.LONCAPAToBePublished.location.href;
                     26:   if (document.upublisher.filename.value.indexOf('/adm/pubdir')==-1) {
                     27:       document.upublisher.submit();
                     28:   }
                     29: }
                     30: 
1.4       www        31: function getrfilename() {
                     32:   document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
1.8       www        33:    if ((document.rpublisher.filename.value.charAt(
                     34:         document.rpublisher.filename.value.length-1)!='/') &&
                     35:        (document.rpublisher.filename.value.indexOf('/adm/pubdir')==-1)) {
                     36:         document.rpublisher.submit();
                     37:    } else {
                     38:       alert('Cannot retrieve directory');
                     39:    }
1.4       www        40: }
                     41: 
1.1       www        42: </script>
                     43: </head>
                     44: <body bgcolor="#FFFFFF">
1.9       www        45: <table border=2><tr><td>
1.7       www        46: <form name="publisher" action="/adm/publish" target="_parent" method="post">
1.1       www        47: <input type="hidden" name="filename" value="">
1.7       www        48: <input type="button" value="Publish this Resource" onClick="getfilename();">
1.4       www        49: </form></td><td>
1.5       www        50: <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished" 
1.6       www        51: method="post">
1.4       www        52: <input type="hidden" name="filename" value="">
1.6       www        53: <input type="button" value="List Directory" onClick="getdfilename();">
1.4       www        54: </form></td><td>
1.8       www        55: <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post">
1.4       www        56: <input type="hidden" name="filename" value="">
1.8       www        57: <input type="button" value="Retrieve Old Version" onClick="getrfilename();">
1.4       www        58: </form></td><td>
1.9       www        59: <form name="upublisher" action="/adm/upload" target="_parent" 
                     60: method="post" enctype="multipart/form-data">
                     61: <input type="hidden" name="filename" value="">
1.10    ! www        62: <input type="file" name="upfile" size="20">
1.9       www        63: <input type="button" value="Upload file" onClick="getufilename();">
                     64: </form>
1.4       www        65: </td></tr></table>
1.1       www        66: </body>
                     67: </html>

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