( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
$(document).ready(function(){
function loadingIn()
{
$('.dialog-background').css('display','block') ;
$('.dialog-background').fadeIn('slow');
}
function loadingOut()
{
$('.dialog-background').css('display','none') ;
$('.dialog-background').fadeOut('slow');
}
function loadDataReportaM(page){
var thisaccount = localStorage.getItem('profile');
var myaccount = localStorage.getItem('myaccount');
$.ajax
({
type: "GET",
url: mimiServer+"service/profile2.php?who="+myaccount+"&profile="+thisaccount+"",
data: "page=4-"+page,
success: function(msg)
{
$("#containerReportaM").ajaxComplete(function(event, request, settings)
{
$("#containerReportaM").html(msg);
});
}
});
}
loadDataReportaM("0");
// For first time page load default results
$('#containerReportaM .paginationReportaM span.active').live('click',function(){
var page = $(this).attr('p');
/*$('#profile').css('display', 'none');*/
$('#nav2').css('margin-bottom', '-45px');
loadDataReportaM(page);
});
$('#go_btnReportaM').live('click',function(){
var page = parseInt($('.gotoReportaM').val());
var no_of_pages = parseInt($('.totalReportaM').attr('a'));
if(page != 0 && page <= no_of_pages){
loadDataReportaM(page);
}else{
alert('Enter a PAGE between 1 and '+no_of_pages);
$('.gotoReportaM').val("").focus();
return false;
}
});
});
//tailer