Source for file LC_Page_FrontParts_Bloc_Calendar.php
Documentation is available at LC_Page_FrontParts_Bloc_Calendar.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
define('CALENDAR_ROOT', DATA_PATH.
'module/Calendar'.
DIRECTORY_SEPARATOR);
require_once($current_dir .
"/../../../../module/Calendar/Month/Weekdays.php");
require_once(CLASS_PATH .
"pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php");
* @author LOCKON CO.,LTD.
$bloc_file =
'calendar.tpl';
if (defined("MOBILE_SITE") &&
MOBILE_SITE) {
$objView->assignobj($this);
.
BLOC_DIR .
'best5.tpl';
for ($j =
0; $j <=
$disp_month-
1; ++
$j) {
$year =
$year +
$month%
12;
$Month =
new Calendar_Month_Weekdays($year, $month, 0);
while ($Day =
$Month->fetch()) {
if ($month ==
$Day->month) {
$arrCalendar[$j][$i]['in_month'] =
true;
$arrCalendar[$j][$i]['in_month'] =
false;
$arrCalendar[$j][$i]['first'] =
$Day->first;
$arrCalendar[$j][$i]['last'] =
$Day->last;
$arrCalendar[$j][$i]['empty'] =
$Day->empty;
$arrCalendar[$j][$i]['year'] =
$year;
$arrCalendar[$j][$i]['month'] =
$month;
$arrCalendar[$j][$i]['day'] =
$Day->day;
#if ($this->lfCheckHoliday($month, $Day->day) || $Day->first || $Day->last) {
$arrCalendar[$j][$i]['holiday'] =
true;
$arrCalendar[$j][$i]['holiday'] =
false;
$objQuery->setorder("rank DESC");
$arrRet =
$objQuery->select("month, day", "dtb_holiday", $where);
foreach ($arrRet AS $key=>
$val) {
$arrHoliday[$val['month']][] =
$val['day'];
$arrRegularHoliday =
explode('|', $objSIteInfo->data['regular_holiday_ids']);
return $arrRegularHoliday;
if (!empty($this->arrHoliday[$month])) {
if (in_array($day, $this->arrHoliday[$month])) {
if (!empty($this->arrRegularHoliday)) {
$w =
date('w', mktime(0,0,0 ,$month, $day, $year));
if (in_array($w, $this->arrRegularHoliday)) {
Documentation generated on Tue, 28 Apr 2009 18:12:13 +0900 by phpDocumentor 1.4.2