ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/graphs/banner_daily.php File Reference

Go to the source code of this file.

Namespaces

namespace  admin

Variables

 if (!defined('IS_ADMIN_FLAG'))
 $year = (($_GET['year']) ? zen_db_input($_GET['year']) : date('Y'))
 $month = (($_GET['month']) ? zen_db_input($_GET['month']) : date('n'))
 $days = (date('t', mktime(0,0,0,$month))+1)
 $stats = array()
for($i=1;$i<$days;$i++) $banner_stats = $db->Execute("select dayofmonth(banners_history_date) as banner_day, banners_shown as value, banners_clicked as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . (int)$banner_id . "' and month(banners_history_date) = '" . $month . "' and year(banners_history_date) = '" . $year . "'")
while(!$banner_stats->EOF) $graph = new PHPlot(600, 350, 'images/graphs/banner_daily-' . $banner_id . '.' . $banner_extension)

Variable Documentation

for ($i=1;$i<$days;$i++) $banner_stats = $db->Execute("select dayofmonth(banners_history_date) as banner_day, banners_shown as value, banners_clicked as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . (int)$banner_id . "' and month(banners_history_date) = '" . $month . "' and year(banners_history_date) = '" . $year . "'")

Definition at line 24 of file banner_daily.php.

$days = (date('t', mktime(0,0,0,$month))+1)

Definition at line 18 of file banner_daily.php.

while (!$banner_stats->EOF) $graph = new PHPlot(600, 350, 'images/graphs/banner_daily-' . $banner_id . '.' . $banner_extension)

Definition at line 30 of file banner_daily.php.

$month = (($_GET['month']) ? zen_db_input($_GET['month']) : date('n'))

Definition at line 16 of file banner_daily.php.

$stats = array()

Definition at line 19 of file banner_daily.php.

$year = (($_GET['year']) ? zen_db_input($_GET['year']) : date('Y'))

Definition at line 15 of file banner_daily.php.

if(!defined('IS_ADMIN_FLAG'))

Definition at line 9 of file banner_daily.php.

 All Data Structures Namespaces Files Functions Variables Enumerations