]> git.p6c8.net - devedit.git/blob - templates/dirlist.htm
Updated license in about dialogue
[devedit.git] / templates / dirlist.htm
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3
4 <html>
5 <head>
6 <title>Directory listing of {DIR}</title>
7 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
8 <script type="text/javascript">
9 function selectAll()
10 {
11 if(document.forms[0])
12 {
13 for(var x = 0; x < document.forms[0].length; x++)
14 {
15 if(document.forms[0].elements[x].name == "files" && document.forms[0].elements[x].type == "checkbox")
16 {
17 document.forms[0].elements[x].checked = true
18 }
19 }
20 }
21 }
22
23 function unselectAll()
24 {
25 if(document.forms[0])
26 {
27 for(var x = 0; x < document.forms[0].length; x++)
28 {
29 if(document.forms[0].elements[x].name == "files" && document.forms[0].elements[x].type == "checkbox")
30 {
31 document.forms[0].elements[x].checked = false
32 }
33 }
34 }
35 }
36 </script>
37 </head>
38 <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
39
40 <h1>Directory listing of {DIR}</h1>
41
42 <p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p>
43
44 <hr>
45
46 {IF empty}<p><i>This directory is empty or nothing is matching against your wildcard</i></p>{ELSE}<form>
47 <input type="hidden" name="command" value="remove_multi">
48 <input type="hidden" name="file" value="{DIR}">
49
50 <table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;">
51 {DIRLIST}</table>
52
53 <hr>
54
55 <p><a onclick="selectAll(); return false;" href="#">Select all</a> / <a onclick="unselectAll(); return false;" href="#">Unselect all</a></p>
56
57 <p><input type="submit" value="Delete selected files"></p>
58
59 </form>{ENDIF}
60
61 <hr>
62
63 <table border="0">
64 <tr>
65 <form action="{SCRIPT}">
66 <input type="hidden" name="command" value="mkdir">
67 <input type="hidden" name="curdir" value="{DIR}">
68 <td>Create new directory:</td>
69 <td>{DIR} <input type="text" name="newfile"> <input type="submit" value="Create!"></td>
70 </form>
71 </tr>
72
73 <tr>
74 <td>Create new file:</td>
75 <form action="{SCRIPT}">
76 <input type="hidden" name="command" value="mkfile">
77 <input type="hidden" name="curdir" value="{DIR}">
78 <td>{DIR} <input type="text" name="newfile"> <input type="submit" value="Create!"> <input type="checkbox" name="edit" id="edit" value="1"><label for="edit">Open file for editing</label></td>
79 </form>
80 </tr>
81 {IF dir_writeable}
82 <tr>
83 <td colspan="2"><a href="{SCRIPT}?command=upload&amp;file={DIR_URL}">Upload a file</a></td>
84 </tr>
85 {ENDIF}</table>
86
87 <hr>
88
89 <table border="0" width="100%">
90 <tr>
91 <td>
92 <table border="0">
93 <tr>
94 <form action="{SCRIPT}">
95 <input type="hidden" name="command" value="show">{IF filter}
96 <input type="hidden" name="filter" value="{FILTER}">{ENDIF}
97 <td>Go to directory/file:</td>
98 <td><input type="text" name="file" value="{DIR}"></td>
99 <td><input type="submit" value="Go!"></td>
100 </form>
101 </tr>
102 <tr>
103 <form action="{SCRIPT}">
104 <input type="hidden" name="command" value="show">
105 <input type="hidden" name="file" value="{DIR}">
106 <td>Filter:</td>
107 <td><input type="text" name="filter" value="{FILTER}"></td>
108 <td><input type="submit" value="Filter!"></td>
109 </form>
110 </tr>
111 </table>
112 </td>
113 <td align="right" valign="top"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></td>
114 </tr>
115 </table>
116 </body>
117 </html>

patrick-canterino.de