'".$sqlDay."-000000-0000' AND cart_order_id<'".$sqlDay."-999999-9999' AND `status` = 3 ORDER BY cart_order_id ASC;"; $day = $db->select($query); for($i=0;$i<23;$i++) { $hour[sprintf("%02d",$i)] = 0; } for($i=0;$i $value){ $chartData[] = array(sprintf("%02d",$i),round($value)); $i++; } $imageNo++; $filename = md5(CC_ROOT_DIR.$glob['license_key'].$imageNo).".png"; $graph = new PHPlot; $graph->SetDataValues($chartData); $graph->SetIsInline(true); $graph->PHPlot(550,300,"cache".CC_DS.$filename); $graph->SetPlotType("bars"); $graph->skip_right_tick = TRUE; $graph->SetNumXTicks(1); $graph->SetTitle(sprintf($lang['admin']['stats_hourly_sales_chart'],$monthsArray[substr($sqlDay,2,2)]." ".substr($sqlDay,4,2)." '".substr($sqlDay,0,2))); $graph->SetXTitle($lang['admin']['stats_hours_of_day']); $graph->SetYTitle(sprintf($lang['admin']['stats_sales_vol'],$config['defaultCurrency'])); $graph->DrawGraph(); echo ""; ?>