REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.51 KB
Close
//opt/cloudlinux/alt-php54/root/usr/share/xcache_3/common/tablesort.js
Text
Base64
var sort_column; var prev_span = null; function get_inner_text(el) { if((typeof el == 'string')||(typeof el == 'undefined')) return el; if(el.innerText) return el.innerText; else { var str = ""; var cs = el.childNodes; var l = cs.length; for (var i=0;i<l;i++) { if (cs[i].nodeType==1) str += get_inner_text(cs[i]); else if (cs[i].nodeType==3) str += cs[i].nodeValue; } } return str; } function sortfn(a,b) { var i = a.cells[sort_column].getAttribute('int'); if (i != null) { return parseInt(i)-parseInt(b.cells[sort_column].getAttribute('int')); } else { var at = get_inner_text(a.cells[sort_column]); var bt = get_inner_text(b.cells[sort_column]); aa = at.toLowerCase(); bb = bt.toLowerCase(); if (aa==bb) return 0; else if (aa<bb) return -1; else return 1; } } function resort(lnk) { var span = lnk.childNodes[1]; if (!span) { var span = document.createElement("span") span.className = "sortarrow"; lnk.appendChild(span); } var table = lnk.parentNode.parentNode.parentNode.parentNode; var rows = new Array(); for (j=1;j<table.rows.length;j++) rows[j-1] = table.rows[j]; sort_column = lnk.parentNode.cellIndex; rows.sort(sortfn); if (prev_span != null) prev_span.innerHTML = ''; if (span.getAttribute('sortdir')=='down') { span.innerHTML = '↑'; span.setAttribute('sortdir','up'); rows.reverse(); } else { span.innerHTML = '↓'; span.setAttribute('sortdir','down'); } for (i=0;i<rows.length;i++) table.tBodies[0].appendChild(rows[i]); prev_span = span; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
lang
DIR
-
drwxr-xr-x
2024-03-03 22:51:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
common.css
4.08 KB
lrw-r--r--
2013-09-26 13:30:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
common.php
6.21 KB
lrw-r--r--
2013-09-26 13:30:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
footer.tpl.php
633 B
lrw-r--r--
2013-09-26 13:30:39
Edit
Download
Rename
Chmod
Change Date
Delete
header.tpl.php
1.23 KB
lrw-r--r--
2013-09-26 13:30:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tablesort.js
1.51 KB
lrw-r--r--
2013-09-26 13:30:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
xcache.png
5.98 KB
lrw-r--r--
2013-09-26 13:30:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).