Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/components/com_jevents/views/default/month/tmpl/ |
Upload File : |
<?php defined('_JEXEC') or die('Restricted access'); $cfg = & JEVConfig::getInstance(); JEVHelper::loadOverlib(); $view = $this->getViewName(); echo $this->loadTemplate('cell' ); $eventCellClass = "EventCalendarCell_".$view; echo "<div id='cal_title'>".$this->data['fieldsetText']."</div>\n"; ?> <table width="100%" align="center" border="0" cellspacing="1" cellpadding="0" class="cal_table"> <tr valign="top"> <td width='2%' class="cal_td_daysnames"/> <?php foreach ($this->data["daynames"] as $dayname) { ?> <td width="14%" align="center" class="cal_td_daysnames"> <?php echo $dayname;?> </td> <?php } ?> </tr> <?php $datacount = count($this->data["dates"]); $dn=0; for ($w=0;$w<6 && $dn<$datacount;$w++){ ?> <tr valign="top" style="height:80px;"> <?php echo "<td width='2%' class='cal_td_weeklink'>"; list($week,$link) = each($this->data['weeks']); echo "<a href='".$link."'>$week</a></td>\n"; for ($d=0;$d<7 && $dn<$datacount;$d++){ $currentDay = $this->data["dates"][$dn]; switch ($currentDay["monthType"]){ case "prior": case "following": ?> <td width="14%" class="cal_td_daysoutofmonth" valign="top"> <?php echo $currentDay["d"]; ?> </td> <?php break; case "current": //$cellclass = $currentDay["today"]?'class="cal_td_today"':(count($currentDay["events"])>0?'class="cal_td_dayshasevents"':'class="cal_td_daysnoevents"'); $cellclass = $currentDay["today"]?'class="cal_td_today"':'class="cal_td_daysnoevents"'; ?> <td <?php echo $cellclass;?> width="14%" valign="top" style="height:80px;"> <?php $this->_datecellAddEvent($this->year, $this->month, $currentDay["d"]);?> <a class="cal_daylink" href="<?php echo $currentDay["link"]; ?>" title="<?php echo JText::_('JEV_CLICK_TOSWITCH_DAY'); ?>"><?php echo $currentDay['d']; ?></a> <?php if (count($currentDay["events"])>0){ foreach ($currentDay["events"] as $key=>$val){ if( $currentDay['countDisplay'] < $cfg->get('com_calMaxDisplay',5)) { echo '<div style="border:0;width:100%;">'; } else { // float small icons left echo '<div style="border:0;float:left;">'; } echo "\n"; $ecc = new $eventCellClass($val,$this->datamodel); echo $ecc->calendarCell($currentDay,$this->year,$this->month,$key); echo '</div>' . "\n"; $currentDay['countDisplay']++; } } echo "</td>\n"; break; } $dn++; } echo "</tr>\n"; } echo "</table>\n"; $this->eventsLegend();