X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/b4a18168323d91c911689ae9a9cddb2b7ab51997..5ede518875b79d23f301b0fde64bc8e4c36d3f6c:/templates/dirlist.htm?ds=inline diff --git a/templates/dirlist.htm b/templates/dirlist.htm index 7338db2..f1626e3 100644 --- a/templates/dirlist.htm +++ b/templates/dirlist.htm @@ -5,6 +5,35 @@ <head> <title>Directory listing of {DIR}</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> +<script type="text/javascript"> +function selectAll() +{ + if(document.forms[0]) + { + for(var x = 0; x < document.forms[0].length; x++) + { + if(document.forms[0].elements[x].name == "files" && document.forms[0].elements[x].type == "checkbox") + { + document.forms[0].elements[x].checked = true + } + } + } +} + +function unselectAll() +{ + if(document.forms[0]) + { + for(var x = 0; x < document.forms[0].length; x++) + { + if(document.forms[0].elements[x].name == "files" && document.forms[0].elements[x].type == "checkbox") + { + document.forms[0].elements[x].checked = false + } + } + } +} +</script> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> @@ -14,8 +43,20 @@ <hr> -{IF empty}<p><i>This directory is empty or nothing is matching against your wildcard</i></p>{ELSE}<table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;"> -{DIRLIST}</table>{ENDIF} +{IF empty}<p><i>This directory is empty or nothing is matching against your wildcard</i></p>{ELSE}<form> +<input type="hidden" name="command" value="remove_multi"> +<input type="hidden" name="file" value="{DIR}"> + +<table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;"> +{DIRLIST}</table> + +<hr> + +<p><a onclick="selectAll(); return false;" href="#">Select all</a> / <a onclick="unselectAll(); return false;" href="#">Unselect all</a></p> + +<p><input type="submit" value="Delete selected files"></p> + +</form>{ENDIF} <hr> @@ -34,7 +75,7 @@ <form action="{SCRIPT}"> <input type="hidden" name="command" value="mkfile"> <input type="hidden" name="curdir" value="{DIR}"> -<td>{DIR} <input type="text" name="newfile"> <input type="submit" value="Create!"></td> +<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> </form> </tr> {IF dir_writeable} @@ -51,7 +92,8 @@ <table border="0"> <tr> <form action="{SCRIPT}"> -<input type="hidden" name="command" value="show"> +<input type="hidden" name="command" value="show">{IF filter} +<input type="hidden" name="filter" value="{FILTER}">{ENDIF} <td>Go to directory/file:</td> <td><input type="text" name="file" value="{DIR}"></td> <td><input type="submit" value="Go!"></td>