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 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:
31: function getrfilename() {
32: document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
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: }
40: }
41:
42: </script>
43: </head>
44: <body bgcolor="#FFFFFF">
45: <table border=2><tr><td>
46: <form name="publisher" action="/adm/publish" target="_parent" method="post">
47: <input type="hidden" name="filename" value="">
48: <input type="button" value="Publish this Resource" onClick="getfilename();">
49: </form></td><td>
50: <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished"
51: method="post">
52: <input type="hidden" name="filename" value="">
53: <input type="button" value="List Directory" onClick="getdfilename();">
54: </form></td><td>
55: <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post">
56: <input type="hidden" name="filename" value="">
57: <input type="button" value="Retrieve Old Version" onClick="getrfilename();">
58: </form></td><td>
59: <form name="upublisher" action="/adm/upload" target="_parent"
60: method="post" enctype="multipart/form-data">
61: <input type="hidden" name="filename" value="">
62: <input type="file" name="upfile" size="20">
63: <input type="button" value="Upload file" onClick="getufilename();">
64: </form>
65: </td></tr></table>
66: </body>
67: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>