GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/ad_report_chart.php

<script type="text/javascript" src="ad_report_chart_script/fusioncharts.js"></script>
<script type="text/javascript" src="ad_report_chart_script/themes/fusioncharts.theme.zune.js"></script>
<script type="text/javascript">
FusionCharts.ready(function(){
var revenueChart = new FusionCharts({
type: "column2d",
renderAt: "chartContainer",
width: "400",
height: "300",
dataFormat: "json",
dataSource: {
    "chart": {
    "caption": "AD's Visits Report",
    "subCaption": "",
    "xAxisName": "Days",
    "yAxisName": "Visits",
    "theme": "zune"
    },
    "data": [
    <?php
		for($day = 0; $day < 7; $day++)
		{
			$fulldate = date('Y-m-d',strtotime("-".$day." days"));
			$date_day = date('d-m',strtotime("-".$day." days"));
			$report_query = "SELECT COUNT(id) AS TOTAL_VISITS FROM `USER_AD_REPORT` WHERE add_date LIKE '".$fulldate."%' AND user_id = '".$_SESSION['userid']."'";
			$report_result = execute_query($report_query);
			$report_row    = mysql_fetch_array($report_result);
			
			?>
			{
				"label": "<?php echo $date_day;?>",
				"value": "<?php echo $report_row['TOTAL_VISITS'];?>"
			},
			<?php
		}
	?>
    ]
    }
     
    });
    revenueChart.render("chartContainer");
    });
     
</script>


./BlackJoker Mini Shell 1.0