<?php

/*
  $Id: traffic_source_summary.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$date = toC_Piwik::getWebsiteDateCreated();
$year = substr($date, 0, 4);
$month = (int) substr($date, 5, 2) - 1;
$day = (int) substr($date, 8, 2);
?>

Toc.reports_web.TrafficSourceSummaryPanel = function(config) {
  config = config || {};

  config.width = 800;
  config.height = 460;
  config.modal = true;
  config.layout = 'border';
  config.border = false;
  
  var today = new Date();
  var start_date = today.add(Date.MONTH, -1).add(Date.DAY, -1);
  var date_created = new Date(<?php