⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 banner_yearly.php

📁 每个RFC 3261信息头有一个相应的存取标识. 但是,许多信息头拥有同样的形式。 例如。To和From的信息头都是由显示名和一个URI组成。 To和From信息头用来管理与处理NameAddr实例的
💻 PHP
字号:
<?php/*  $Id: banner_yearly.php,v 1.3 2002/05/09 18:28:46 dgw_ Exp $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2002 osCommerce  Released under the GNU General Public License*/  include(DIR_WS_CLASSES . 'phplot.php');  $stats = array(array('0', '0', '0'));  $banner_stats_query = tep_db_query("select year(banners_history_date) as year, sum(banners_shown) as value, sum(banners_clicked) as dvalue from " . TABLE_BANNERS_HISTORY . " where banners_id = '" . $banner_id . "' group by year");  while ($banner_stats = tep_db_fetch_array($banner_stats_query)) {    $stats[] = array($banner_stats['year'], (($banner_stats['value']) ? $banner_stats['value'] : '0'), (($banner_stats['dvalue']) ? $banner_stats['dvalue'] : '0'));  }  $graph = new PHPlot(600, 350, 'images/graphs/banner_yearly-' . $banner_id . '.' . $banner_extension);  $graph->SetFileFormat($banner_extension);  $graph->SetIsInline(1);  $graph->SetPrintImage(0);  $graph->SetSkipBottomTick(1);  $graph->SetDrawYGrid(1);  $graph->SetPrecisionY(0);  $graph->SetPlotType('lines');  $graph->SetPlotBorderType('left');  $graph->SetTitleFontSize('4');  $graph->SetTitle(sprintf(TEXT_BANNERS_YEARLY_STATISTICS, $banner['banners_title']));  $graph->SetBackgroundColor('white');  $graph->SetVertTickPosition('plotleft');  $graph->SetDataValues($stats);  $graph->SetDataColors(array('blue','red'),array('blue', 'red'));  $graph->DrawGraph();  $graph->PrintImage();?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -