add(ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE, 'error');
}
} else {
$messageStack->add(ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST, 'error');
}
}
$banner_query = tep_db_query("select banners_title from " . TABLE_BANNERS . " where banners_id = '" . (int)$HTTP_GET_VARS['bID'] . "'");
$banner = tep_db_fetch_array($banner_query);
$years_array = array();
$years_query = tep_db_query("select distinct year(banners_history_date) as banner_year from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . (int)$HTTP_GET_VARS['bID'] . "'");
while ($years = tep_db_fetch_array($years_query)) {
$years_array[] = array('id' => $years['banner_year'],
'text' => $years['banner_year']);
}
$months_array = array();
for ($i=1; $i<13; $i++) {
$months_array[] = array('id' => $i,
'text' => strftime('%B', mktime(0,0,0,$i)));
}
$type_array = array(array('id' => 'daily',
'text' => STATISTICS_TYPE_DAILY),
array('id' => 'monthly',
'text' => STATISTICS_TYPE_MONTHLY),
array('id' => 'yearly',
'text' => STATISTICS_TYPE_YEARLY));
?>
>
|
|
|
|
|
|
' . "\n" .
' ' . $stats[$i][0] . ' | ' . "\n" .
' ' . number_format($stats[$i][1]) . ' | ' . "\n" .
' ' . number_format($stats[$i][2]) . ' | ' . "\n" .
' ' . "\n";
}
?>
|
|
' . tep_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|