Files
webgui/plugins/dynamix/Browse.page
2017-10-03 09:44:05 +02:00

38 lines
1.5 KiB
Plaintext

Title="Index of $dir"
Tag="navicon"
---
<?PHP
/* Copyright 2005-2017, Lime Technology
* Copyright 2012-2017, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<style>.loc{text-align:left;white-space:nowrap}</style>
<script>
$(function(){
$.get('/webGui/include/Browse.php',{dir:"<?=addslashes(urlencode($dir))?>",path:"<?=$path?>",user:<?=strpos($dir,'/mnt/user')===0?1:0?>},function(data){
var table = $('table.indexer');
var col = $.cookie('col')||1;
var dir = $.cookie('dir')||0;
table.html(data);
table.bind('sortEnd',function(e,t){
var sort = e.target.config.sortList.toString().split(',');
$.cookie('col',sort[0],{path:'/'});
$.cookie('dir',sort[1],{path:'/'});
});
table.tablesorter({sortList:[[col,dir],[1,0]],sortAppend:[[1,0]],textAttribute:'data'});
});
});
</script>
<table class="indexer tablesorter">
<thead><tr><th>Type</th><th>Name</th><th>Size</th><th>Last Modified</th><th>Location</th></tr></thead>
<tbody><tr><td colspan="5" style="text-align:center;padding-top:12px"><i class='fa fa-spinner fa-spin icon'></i><em>Please wait, loading information ...</em></td></tr></tbody>
</table>
<input type="button" value="Done" onclick="done('Browse')">