Annotation of loncom/publisher/publisher.html, revision 1.18
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;
1.14 www 26: if (document.upublisher.filename.value.indexOf('/adm/pubdir')!=-1) {
27: document.upublisher.filename.value=document.dpublisher.filename.value;
1.9 www 28: }
1.14 www 29: document.upublisher.submit();
1.9 www 30: }
31:
1.4 www 32: function getrfilename() {
33: document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
1.8 www 34: if ((document.rpublisher.filename.value.charAt(
35: document.rpublisher.filename.value.length-1)!='/') &&
36: (document.rpublisher.filename.value.indexOf('/adm/pubdir')==-1)) {
37: document.rpublisher.submit();
38: } else {
39: alert('Cannot retrieve directory');
40: }
1.4 www 41: }
42:
1.11 www 43: function getdelfilename() {
44: document.del.filename.value=parent.LONCAPAToBePublished.location.href;
45: document.del.submit();
46: }
47:
48: function getrenamefilename() {
49: document.rename.filename.value=parent.LONCAPAToBePublished.location.href;
50: document.rename.submit();
51: }
52:
1.12 www 53: function getcpfilename() {
54: document.cp.filename.value=parent.LONCAPAToBePublished.location.href;
55: document.cp.submit();
56: }
57:
1.11 www 58: function getnewdirfilename() {
1.13 www 59: document.newdir.filename.value=parent.LONCAPAToBePublished.location.href;
60: if (document.newdir.filename.value.indexOf('/adm/pubdir')!=-1) {
61: document.newdir.filename.value=document.dpublisher.filename.value;
62: }
1.11 www 63: if ((document.newdir.filename.value.charAt(
64: document.newdir.filename.value.length-1)!='/') &&
65: (document.newdir.filename.value.indexOf('/adm/pubdir')==-1)) {
66: alert('Must create new subdirectory inside a directory');
67: } else {
68: document.newdir.submit();
69: }
70: }
1.1 www 71: </script>
72: </head>
1.17 ng 73: <body bgcolor="#99ff99">
1.15 ng 74: <table border=0><tr><th bgcolor="#aaaaaa" height=20>
1.16 ng 75: <table border=0><tr valign="middle">
1.18 ! albertel 76: <form name="publisher" action="/adm/publish" target="_parent" method="post" onSubmit="getfilename();">
! 77: <td bgcolor="#ccffcc">
1.1 www 78: <input type="hidden" name="filename" value="">
1.18 ! albertel 79: <input type="button" value="Publish this Resource">
1.16 ng 80: </td></form>
1.5 www 81: <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished"
1.18 ! albertel 82: method="post" onSubmit="getdfilename();">
! 83: <td bgcolor="#ccffcc">
1.4 www 84: <input type="hidden" name="filename" value="">
1.18 ! albertel 85: <input type="button" value="List Directory">
1.16 ng 86: </td></form>
1.18 ! albertel 87: <form name="cp" action="/adm/cfile" target="_parent" method="post" onSubmit="getcpfilename();">
! 88: <td bgcolor="#ccffcc">
1.4 www 89: <input type="hidden" name="filename" value="">
1.15 ng 90: <input type="hidden" name="action" value="copy">
91: <input type="text" size=10 name="newfilename" value="">
1.18 ! albertel 92: <input type="button" value="Copy">
1.16 ng 93: </td></form>
1.9 www 94: <form name="upublisher" action="/adm/upload" target="_parent"
1.18 ! albertel 95: method="post" enctype="multipart/form-data" onSubmit="getufilename();">
! 96: <td bgcolor="#ccffcc" valign="top">
1.9 www 97: <input type="hidden" name="filename" value="">
1.11 www 98: <input type="file" name="upfile" size="10">
1.18 ! albertel 99: <input type="button" value="Upload file">
1.16 ng 100: </td></form></tr>
1.15 ng 101:
1.16 ng 102: <tr valign="middle">
1.18 ! albertel 103: <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post" onSubmit="getrfilename();">
! 104: <td bgcolor="#ccffcc">
1.15 ng 105: <input type="hidden" name="filename" value="">
1.18 ! albertel 106: <input type="button" value="Retrieve Old Version">
1.16 ng 107: </td></form>
1.18 ! albertel 108: <form name="del" action="/adm/cfile" target="_parent" method="post" onSubmit="getdelfilename();">
! 109: <td bgcolor="#ccffcc">
1.11 www 110: <input type="hidden" name="filename" value="">
111: <input type="hidden" name="action" value="delete">
1.18 ! albertel 112: <input type="button" value="Delete">
1.16 ng 113: </td></form>
1.18 ! albertel 114: <form name="rename" action="/adm/cfile" target="_parent" method="post" onSubmit="getrenamefilename();">
! 115: <td bgcolor="#ccffcc">
1.11 www 116: <input type="hidden" name="filename" value="">
117: <input type="hidden" name="action" value="rename">
1.15 ng 118: <input type="text" size=10 name="newfilename" value="">
1.18 ! albertel 119: <input type="button" value="Rename">
1.16 ng 120: </td></form>
1.18 ! albertel 121: <form name="newdir" action="/adm/cfile" target="_parent" method="post" onSubmit="getnewdirfilename();">
! 122: <td bgcolor="#ccffcc">
1.11 www 123: <input type="hidden" name="filename" value="">
124: <input type="hidden" name="action" value="newdir">
1.15 ng 125: <input type="text" size=10 name="newfilename" value="">
1.18 ! albertel 126: <input type="button" value="New Subdirectory">
1.16 ng 127: </td></form>
1.11 www 128: </tr>
129: </table>
1.15 ng 130: </th></tr></table>
131:
1.1 www 132: </body>
1.11 www 133: </html>
1.15 ng 134:
135:
136:
1.11 www 137:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>