Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/events/permanent.eventMonth.inc.php
<?php
	if(file_exists($lang_path.$lang_pf."/plugin/event.lang.php")) {
		include($lang_path.$lang_pf."/plugin/event.lang.php");
	} else {
		include($lang_path."en/plugin/event.lang.php");
	}
	
	/*if(!class_exists("Date")) {
		require_once("Date.php");
	}*/
	
	$tpl->readTemplatesFromFile($actualPermanentPlugin->getValue("templates")."permanent.eventMonth.template");

	$permanentCurrentDate  = new Date();
	$permanentCurrentDate->setDay("01");
	$permanentCurrentMonth = $permanentCurrentDate->getMonth();
	$permanentCurrentYear  = $permanentCurrentDate->getYear();
	
	/*
	* tage herausfinden, an denen im Zielmonat Events stattfinden.
	*/
	$eventQuery = mysql_query("SELECT * FROM ".TABLE."_events WHERE MONTH(eventDate) = '$permanentCurrentMonth' AND YEAR(eventDate) = '$permanentCurrentYear'");
	while($eventRow = mysql_fetch_object($eventQuery)) {
		$eventDate = new Date($eventRow->eventDate);
		$permanentEventDay[$eventDate->getDay()] = 1;
	}
	
	/*
	* Template Name für Woche definieren
	*/
	$calendarEvents = $permanentEventDay;
	$calendarDate  = &$permanentCurrentDate;
	$calendarMonth = $permanentCurrentMonth;
	$calendarYear  = $permanentCurrentYear;
	$templateDaysOfWeek = "permanent:event:month:days";
	include(dirname(__FILE__)."/calendar.inc.php");
	
	/* 
	* Ausgabe des Kalenders
	*/
	$tpl->addVars("permanent:event:month",
		array ( "TXT_CURRENT_MONTH" => $eventText['selectedMonth'])
	);
	
	$tpl->addVars("permanent:event:month:days", 
		array ( "WEEK_DAY_NR" => $weekDayNumber,
				"DAY_NUMBER"  => $dayNumber,
				"DAY_EVENT"   => $dayEvent,
				"DAY_SET"     => $daySet
		)
	);
	$tpl->displayParsedTemplate("permanent:event:month");
?>
Return current item: Content*Builder