/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: zwar_calendar_panel.php
| Author: ZEZoar
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
$zwar_cal_wararray = array();
$result = dbquery("SELECT war_id, war_date, war_game_id, opp_name_short, DAYOFMONTH(FROM_UNIXTIME(war_date)) AS warday FROM ".DB_ZWAR_WARS." AS zw LEFT JOIN ".DB_ZWAR_OPPONENTS." AS zop ON zw.war_opp_id=zop.opp_id WHERE MONTH(FROM_UNIXTIME(war_date))='".$zwc_month."' AND YEAR(FROM_UNIXTIME(war_date))='".$zwc_year."' ORDER BY war_date ASC");
if (dbrows($result)) {
while($data = dbarray($result)) {
if (!isset($zwar_cal_wararray[$data['warday']]['matches'])) { $zwar_cal_wararray[$data['warday']]['matches'] = ""; } {
$zwar_cal_wararray[$data['warday']]['matches'] .= "