add(ERROR_GRAPHS_DIRECTORY_NOT_WRITEABLE, 'error');
}
} else {
$messageStack->add(ERROR_GRAPHS_DIRECTORY_DOES_NOT_EXIST, 'error');
}
}
$banner = $db->Execute("select banners_title
from " . TABLE_BANNERS . "
where banners_id = '" . (int)$_GET['bID'] . "'");
$years_array = array();
$years = $db->Execute("select distinct year(banners_history_date) as banner_year
from " . TABLE_BANNERS_HISTORY . "
where banners_id = '" . (int)$_GET['bID'] . "'");
while (!$years->EOF) {
$years_array[] = array('id' => $years->fields['banner_year'],
'text' => $years->fields['banner_year']);
$years->MoveNext();
}
$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));
?>
>
|
|
' . zen_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|
|
|
' . "\n" .
' ' . $stats[$i][0] . ' | ' . "\n" .
' ' . number_format($stats[$i][1]) . ' | ' . "\n" .
' ' . number_format($stats[$i][2]) . ' | ' . "\n" .
' ' . "\n";
}
?>
|
|
' . zen_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|