mirror of
https://github.com/unraid/webgui.git
synced 2026-01-15 22:19:58 -06:00
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
Title="Index of $dir"
|
|
Tag="navicon"
|
|
Markdown="false"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2018, Lime Technology
|
|
* Copyright 2012-2018, 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 shift">
|
|
<thead><tr><th>Type</th><th class='sorter-text'>Name</th><th>Size</th><th>Last Modified</th><th>Location</th></tr></thead>
|
|
<tbody><tr><td colspan="5"><div class="spinner"></div></td></tr></tbody>
|
|
</table>
|
|
<input type="button" value="Done" onclick="done('Browse')">
|