| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 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 : /AppServ/www/news/nhrc-bk1/components/com_spidercalendar/views/bigcalendar/tmpl/ |
Upload File : |
<?php
/**
* @package Spider Calendar
* @author Web-Dorado
* @copyright (C) 2011 Web-Dorado. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.module.helper' );
$Itemid=JRequest::getVar( "Itemid","");
$id=JRequest::getVar( "rand");
$db =& JFactory::getDBO();
$session =& JFactory::getSession();
$theme_id =3;
/*$theme =& JTable::getInstance('spidercalendar_theme', 'Table');
// load the row from the db table
$theme->load( $theme_id);*/
/*$module = &JModuleHelper::getModule('spidercalendar');
$moduleParams = new JParameter($module->params);
print_r($module);*/
$bgid=$session->get('calendar_style');
//$weekstart=$session->get('weekstart');
$titlescloud=$session->get('titlescloud');
$cal_width='700';
$bg_top = '#36A7E9';
$bg_bottom = '#FFFFFF';
$border_color = '#000000';
$text_color_year = '#';
$text_color_month = '#000000';
$color_week_days = '#000000';
$text_color_other_months = '#525252';
$text_color_this_month_unevented = '#000000';
$evented_color = '#FFFFFF';
$evented_color_bg = '#FFA142';
$color_arrow_year = '#';
$color_arrow_month = '#000000';
$sun_days = '#36A7E9';
$event_title_color = '#000000';
$current_day_border_color = '#36A7E9';
$cell_border_color = '#000000';
$cell_height = '80';
$popup_width = '800';
$popup_height = '600';
$number_of_shown_evetns = '1';
$sundays_font_size = '20';
$other_days_font_size= '20';
$weekdays_font_size= '14';
$border_width= '4';
$top_height='80';
$bg_color_other_months='#FFFFFF';
$sundays_bg_color='#FFFFFF';
$weekdays_bg_color='#FFFFFF';
$weekstart='su';
$weekday_sunday_bg_color='#FFFFFF';
$border_radius='0';
$border_radius2=$border_radius-$border_width;
$week_days_cell_height='40';
$year_font_size='';
$month_font_size='25';
$arrow_size='40';
$arrow_size_hover=$arrow_size+5;
$next_month_text_color = '#';
$prev_month_text_color = '#';
$next_month_arrow_color = '#';
$prev_month_arrow_color = '#';
$next_month_font_size ='';
$prev_month_font_size = '';
$month_type = '';
$ev_title_bg_color = '#FFA142';
$views_tabs_bg_color = '#ffffff';
$views_tabs_text_color = '#000000';
$views_tabs_font_size = '13';
$bg=$session->get( 'border_color');
$bgborder=$session->get( 'bg_border_color');
$bg_color_selected=$session->get( 'bg_color_selected');
$text_color_selected=$session->get( 'text_color_selected');
$border_day=$session->get( 'border_day');
$calendar_width=$session->get( 'calendar_width');
$calendar_bg=$session->get( 'calendar_bg');
$titlescloud_text_color=$session->get( 'titlescloud_text_color');
///////////////////////////////////////////////////
$calendar_id = JRequest::getVar('calendar');
if($cell_height=='')
$cell_height=70;
if($cal_width=='')
$cal_width=700;
$db =& JFactory::getDBO();
//$realtoday = getdate();
/*$uri = $_SERVER['HTTP_REFERER'];
$u =& JURI::getInstance( $uri );*/
$date_REFERER=JRequest::getVar( "date",date("Y-m"));
$year_REFERER=substr($date_REFERER,0,4);
$month_REFERER=Month_name(substr( $date_REFERER,5,2));
$day_REFERER=substr( $date_REFERER,8,2);
$date=JRequest::getVar( "date",date("Y-m"));
$year=substr($date,0,4);
$month=Month_name(substr( $date,5,2));
$day=substr( $date,8,2);
echo ' <style type="text/css">';
echo"
#bigcalendar".$id." table
{
border-collapse: initial;
border:0px;
max-width: none;
}
#bigcalendar".$id." table tr:hover td
{
background: none;
}
#bigcalendar".$id." table td
{
padding: 0px;
vertical-align: none;
border-top:none;
line-height: none;
text-align: none;
}
#bigcalendar".$id." p, ol, ul, dl, address
{
margin-bottom:0;
}
#bigcalendar".$id." td,#bigcalendar".$id." tr, #spiderCalendarTitlesList td, #spiderCalendarTitlesList tr
{
border:none;
}
#bigcalendar".$id." .general_table
{
border-radius: ".$border_radius."px;
}
#bigcalendar".$id." .top_table
{
border-top-left-radius: ".$border_radius2."px;
border-top-right-radius: ".$border_radius2."px;
}
#bigcalendar".$id." .cala_arrow a:link, #bigcalendar".$id." .cala_arrow a:visited {
text-decoration:none;
background:none;
font-size:".$arrow_size."px;
}
#bigcalendar".$id." .cala_arrow a:hover {
font-size:".$arrow_size."px;
text-decoration:none;
background:none;
}
#bigcalendar".$id." .cala_day a:link, #bigcalendar".$id." .cala_day a:visited {
text-decoration:none;
background:none;
font-size:12px;
color:red;
}
#bigcalendar".$id." .cala_day a:hover {
text-decoration:none;
background:none;
}
#bigcalendar".$id." .cala_day
{
border:1px solid ".$cell_border_color.";
vertical-align:top;
;
}
#bigcalendar".$id." .weekdays
{
border:1px solid ".$cell_border_color.";
;
}
#bigcalendar".$id." .week_days
{
font-size:".$weekdays_font_size."px;
}
#bigcalendar".$id." .calyear_table {
border-spacing:0;
width:100%;
}
#bigcalendar".$id." .calmonth_table {
border-spacing:0;
width:100%;
}
#bigcalendar".$id." .calbg, #bigcalendar".$id." .calbg td
{
background-color:".$bg.";
text-align:center;
width:14%;
}
#bigcalendar".$id." .caltext_color_other_months
{
color:".$text_color_other_months.";
border:1px solid ".$cell_border_color.";
vertical-align:top;
;
}
#bigcalendar".$id." .caltext_color_this_month_unevented {
color:".$text_color_this_month_unevented.";
}
#bigcalendar".$id." .calfont_year {
font-family:".$session->get( 'calendar_font_year'.$id).";
font-size:24px;
font-weight:bold;
color:".$text_color_year.";
}
#bigcalendar".$id." .calsun_days
{
color:".$sun_days.";
border:1px solid ".$cell_border_color.";
vertical-align:top;
text-align:left;
background-color:".$sundays_bg_color.";
;
}
#bigcalendar".$id." .calbottom_border
{
}
#bigcalendar".$id." .calborder_day
{
border: solid ".$border_day." 1px;
;
}
#spiderCalendarTitlesList
{
display:none; width:331px; margin:0px; padding:0px; border:none; z-index:99;position:fixed; color:#".$titlescloud_text_color.";
}
#spiderCalendarTitlesList #sc1
{
padding:0px; margin:0px; height:65px; background:url('".JURI::root(true)."/modules/mod_spidercalendar/images/TitleListBg1.png') no-repeat;
}
#spiderCalendarTitlesList #sc2
{
padding:0px; margin:0px; background:url('".JURI::root(true)."/modules/mod_spidercalendar/images/TitleListBg2.png') repeat-y;
}
#spiderCalendarTitlesList #sc3
{
padding:0px; margin:0px; height:32px; background:url('".JURI::root(true)."/modules/mod_spidercalendar/images/TitleListBg3.png') no-repeat;
}
#spiderCalendarTitlesList p
{
margin:20px;
margin-top:0px;
text-align:left;
}
#bigcalendar".$id." .views
{
float: right;
background-color: ".$views_tabs_bg_color.";
height: 25px;
width: 70px;
margin-right: 2px;
text-align: center;
cursor:pointer;
position: relative;
top: 5px;
}
";
echo '</style>';
$cell_width=$cal_width/7;
JHTML::_('behavior.modal');
$view=JRequest::getVar('view');
JHTML::_('behavior.modal');
$this_month = substr($year.'-'.add_0((Month_num($month))),5,2);
$prev_month=add_0((int)$this_month-1);
$next_month=add_0((int)$this_month+1);
$componentParams = &JComponentHelper::getParams('com_spidercalendar');
$defaultview=JRequest::getVar('def_view',$componentParams->get('defaultview'));
$viewselect=JRequest::getVar('views',$componentParams->get('viewselect'));
$views=explode(',',$viewselect);
array_pop($views);
$display='';
if(count($views)==0)
$display="display:none";
if(count($views)==1 and $views[0]==$defaultview)
$display="display:none";
?>
<div style="width:<?php echo $cal_width ?>px;">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<div id="views_tabs" style="<?php echo $display ?>">
<div class="views" style="<?php if(!in_array('day',$views) AND $defaultview!='day' ) echo 'display:none;' ;if($view=='bigcalendarday') echo 'background-color:'.$bg_top.';height:30px;top: 0' ?>" onclick="showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarday&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&date='.$year.'-'.add_0((Month_num($month))).'-'.date('d') ;?>','<?php echo $id ?>')" ><span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo JText::_('TAB_DAY') ?></span></div>
<div class="views" style="<?php if(!in_array('week',$views) AND $defaultview!='week' ) echo 'display:none;' ;if($view=='bigcalendarweek') echo 'background-color:'.$bg_top.';height:30px;top: 0' ?>" onclick="showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarweek&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&months='.$prev_month.','.$this_month.','.$next_month.'&date='.$year.'-'.add_0((Month_num($month))).'-'.date('d') ;?>','<?php echo $id ?>')" ><span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo JText::_('TAB_WEEK') ?></span></div>
<div class="views" style="<?php if(!in_array('list',$views) AND $defaultview!='list' ) echo 'display:none;' ; if($view=='bigcalendarlist') echo 'background-color:'.$bg_top.';height:30px;top: 0' ?>" onclick="showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarlist&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&date='.$year.'-'.add_0((Month_num($month))) ;?>','<?php echo $id ?>')" ><span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo JText::_('TAB_LIST') ?></span></div>
<div class="views" style="<?php if(!in_array('month',$views) AND $defaultview!='month' ) echo 'display:none;' ; if($view=='bigcalendar') echo 'background-color:'.$bg_top.';height:30px;top: 0' ?>" onclick="showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&date='.$year.'-'.add_0((Month_num($month))) ;?>','<?php echo $id ?>')" ><span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo JText::_('TAB_MONTH') ?></span></div>
</div>
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" class="general_table" style="border-spacing:0; width:<?php echo $cal_width ?>px;border:<?php echo $border_color ?> solid <?php echo $border_width ?>px; margin:0; padding:0;background-color:<?php echo $bg_bottom; ?>;">
<tr>
<td width="100%" style=" padding:0; margin:0">
<table cellpadding="0" cellspacing="0" border="0" style="border-spacing:0; font-size:12px; margin:0; padding:0; width="<?php echo $cal_width ?>;" >
<tr style="height:40px; width:<?php echo $cal_width ?>">
<td class="top_table" align="center" colspan="7" style="background-image:url('components/com_spidercalendar/views/bigcalendar/images/Stver.png');padding:0; margin:0; background-color:<?php echo $bg_top ?>;height:20px; background-repeat: no-repeat;background-size: 100% 100%;" >
<?php //YEAR TABLE ?>
<table cellpadding="0" cellspacing="0" border="0" align="center" class="calyear_table" style="margin:0; padding:0; text-align:center; width:100%; height:<?php echo $top_height ?>px;">
<tr>
<td width="15%">
<div onclick="javascript:showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&Itemid='.JRequest::getVar( "Itemid","").'&date='.($year-1).'-'.add_0(Month_num($month)) ?>','<?php echo $id ?>')" style="cursor:pointer;width:100%; height:35px; background-color: rgba(0,0,0,0.3);"><span style="top: 25%;position: relative;left: 25%;font-size: 26px;color:<?php echo $bg_top ?>"><?php echo $year-1 ?></span></div>
</td>
<td class="cala_arrow" width="15%" style="text-align:right;margin:0px;padding:0px">
<a style="text-shadow: 1px 1px 2px black;color:<?php echo $color_arrow_month ?>;"
href="javascript:showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php
if(Month_num($month)==1)
echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&Itemid='.JRequest::getVar( "Itemid","").'&date='.($year-1).'-12';
else echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&Itemid='.JRequest::getVar( "Itemid","").'&date='.$year.'-'.add_0((Month_num($month)-1));
?>','<?php echo $id ?>')">◄</a>
</td>
<td style="text-align:center; margin:0;" width="40%" >
<input type="hidden" name="month" readonly="" value="<?php echo $month?>"/>
<span style="font-family:arial; color:<?php echo $text_color_month;?>; font-size:<?php echo $month_font_size ?>px;text-shadow: 1px 1px black;"><?php echo $year.', '.JText::_($month)?></span>
</td>
<td style="margin:0; padding:0;text-align:left" width="15%" class="cala_arrow">
<a style="text-shadow: 1px 1px 2px black;color:<?php echo $color_arrow_month ?>" href="javascript:showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php
if(Month_num($month)==12)
echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&Itemid='.JRequest::getVar( "Itemid","").'&date='.($year+1).'-01';
else echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&Itemid='.JRequest::getVar( "Itemid","").'&date='.$year.'-'.add_0((Month_num($month)+1));
?>','<?php echo $id ?>')">►</a>
</td>
<td width="15%">
<div onclick="javascript:showbigcalendar( 'bigcalendar<?php echo $id ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$id.'&view=bigcalendar&theme_id='.$theme_id.'&calendar='.$calendar_id).'&format=row&Itemid='.JRequest::getVar( "Itemid","").'&date='.($year+1).'-'.add_0(Month_num($month)) ?>','<?php echo $id ?>')" style="cursor:pointer;width:100%; height:35px; background-color: rgba(0,0,0,0.3);"><span style="top: 25%;position: relative;left: 25%;font-size: 26px;color:<?php echo $bg_top ?>"><?php echo $year+1 ?></span></div>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" height="<?php echo $week_days_cell_height ?>" style="background-color:<?php echo $weekdays_bg_color ?>; ">
<?php if($weekstart=="su"){?>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0;background-color:<?php echo $weekday_sunday_bg_color ?>">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('SU') ?> </b></div></td>
<?php } ?>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"><?php echo JText::_('MO') ?> </b></div></td>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('TU') ?> </b></div></td>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('WE') ?> </b></div></td>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('TH') ?> </b></div></td>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('FR') ?> </b></div></td>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('SA') ?> </b></div></td>
<?php if($weekstart=="mo"){?>
<td class="weekdays" style="width:<?php echo $cell_width; ?>px; font-family:<?php echo $session->get( 'calendar_font_weekday'.$id);?>; color:<?php echo $color_week_days;?>; margin:0; padding:0;background-color:<?php echo $weekday_sunday_bg_color ?>">
<div class="calbottom_border" style="text-align:center; width:<?php echo $cell_width; ?>px; margin:0; padding:0;"><b class="week_days"> <?php echo JText::_('SU') ?> </b></div></td>
<?php } ?>
</tr>
<?php
//$today=$realtoday;
/*$document = &JFactory::getDocument();
$document->addScript("media/system/js/modal.js");
$document->addStyleSheet("media/system/css/modal.css");*/
function add_0($month_num)
{
if($month_num<10)
return '0'.$month_num;
return $month_num;
}
function Month_num($month_name)
{
for( $month_num=1; $month_num<=12; $month_num++ )
{
if (date( "F", mktime(0, 0, 0, $month_num, 1, 0 ) ) == $month_name)
{
return $month_num;
}
}
};
function Month_name($month_num)
{
$timestamp = mktime(0, 0, 0, $month_num, 1, 2005);
return date("F", $timestamp);
};
$month_first_weekday = date("N", mktime(0, 0, 0, Month_num($month), 1, $year));
if($weekstart=="su"){
$month_first_weekday++;
if($month_first_weekday==8)
$month_first_weekday=1;
}
$month_days = date("t", mktime(0, 0, 0, Month_num($month), 1, $year));
$last_month_days = date("t", mktime(0, 0, 0, Month_num($month)-1, 1, $year));
$weekday_i=$month_first_weekday;
$last_month_days=$last_month_days-$weekday_i+2;
$percent=1;
$sum=$month_days-8+$month_first_weekday;
if($sum % 7 <> 0)
$percent = $percent + 1;
$sum = $sum - ( $sum % 7 );
$percent = $percent + ( $sum / 7 );
$percent=107/$percent;
$array_days=$this->array_days;
$array_days1=$this->array_days1;
$title=$this->title;
$ev_ids=$this->ev_ids;
$session->set('ev_ids',$ev_ids);
//var_dump($title);
//var_dump($array_days);
echo '<tr id="days" height="'.$cell_height.'" style="font-family:'.$session->get( 'calendar_font_day'.$id).';line-height:15px;">';
for($i=1; $i<$weekday_i; $i++)
{
echo '<td class="caltext_color_other_months" style="background-color:'.$bg_color_other_months.'" ><span style="font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;">'.$last_month_days.'</span></td>';
$last_month_days=$last_month_days+1;
}
for($i=1; $i<=$month_days; $i++)
{
if(isset($title[$i]))
{
$ev_title=explode('</p>',$title[$i]);
array_pop($ev_title);
$k=count($ev_title);
////
$ev_id=explode('<br>',$ev_ids[$i]);
array_pop($ev_id);
$ev_ids_inline=implode(',' , $ev_id);
}
$dayevent='';
if(($weekday_i%7==0 and $weekstart=="mo") or ($weekday_i%7==1 and $weekstart=="su"))
{
if($i==$day_REFERER and $month==$month_REFERER and $year==$year_REFERER )
{
echo '<td bgcolor="'.$bg_color_selected.'" class="cala_day" style="padding:0; margin:0;line-height:15px;"><div class="calborder_day" style=" width:'.$cell_width.'px; margin:0; padding:0;"><p style="color:'.$evented_color.';line-height:1.3;font-family: tahoma;padding-left: 5px;text-shadow: 1px 1px white;">'.$i.'</p>';
$r=0;
echo '<div style="background-color:'.$ev_title_bg_color.';">';
for($j=0;$j<$k; $j++)
{
if($r<$number_of_shown_evetns)
echo '<a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="background:none;color:'.$event_title_color.'; " href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id='.$theme_id.'&calendar_id='.$calendar_id.'&ev_ids='.$ev_ids_inline.'&eventID='.$ev_id[$j].'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" ><b>'.$ev_title[$j].'</b></a>';
else
{
echo '<br><a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="font-size:11px;background:none;color:'.$event_title_color.';text-align:center;" href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig_seemore&theme_id='.$theme_id.'&ev_ids='.$ev_ids_inline.'&calendar_id='.$calendar_id.'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'"> <b>'.JText::_('SEE_MORE').'</b></a>';
break;
}
$r++;
}
echo '</div></td>';
}
else
if($i==date('j') and $month==date('F') and $year==date('Y'))
{
if( in_array ($i,$array_days)){
echo '<td class="cala_day" style="background-color:'.$ev_title_bg_color.';padding:0; margin:0;line-height:15px; border: px solid '.$border_day.'"><p style="background-color:'.$evented_color_bg.';color:'.$evented_color.';font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;text-shadow: 1px 1px white;">'.$i.'</p>';
$r=0;
echo '<div style="background-color:'.$ev_title_bg_color.'">';
for($j=0;$j<$k; $j++)
{
if($r<$number_of_shown_evetns)
echo '<a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="background:none;color:'.$event_title_color.'; " href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id='.$theme_id.'&calendar_id='.$calendar_id.'&ev_ids='.$ev_ids_inline.'&eventID='.$ev_id[$j].'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" ><b>'.$ev_title[$j].'</b></a>';
else
{
echo '<br><a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="font-size:11px;background:none;color:'.$event_title_color.';text-align:center;" href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig_seemore&theme_id='.$theme_id.'&ev_ids='.$ev_ids_inline.'&calendar_id='.$calendar_id.'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" '.$dayevent.'> <b>'.JText::_('SEE_MORE').'</b></a>';
break;
}
$r++;
}
echo '</div></td>';
}
else
echo '<td class="calsun_days" style="padding:0; font-size:'.$sundays_font_size.'px; margin:0;line-height:1.3;font-family: tahoma;padding-left: 5px; border: 1px solid '.$border_day.'"><p>'.$i.'</p></td>';
}
else
{
if( in_array ($i,$array_days)){
echo '<td class="cala_day" style="background-color:'.$ev_title_bg_color.';padding:0; margin:0;line-height:15px;"><p style="background-color:'.$evented_color_bg.';color:'.$evented_color.';font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;text-shadow: 1px 1px white;">'.$i.'</p>';
echo '<div style="background-color:'.$ev_title_bg_color.'">';
$r=0;
for($j=0;$j<$k; $j++)
{
if($r<$number_of_shown_evetns)
echo '<a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="background:none;color:'.$event_title_color.'; " href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id='.$theme_id.'&calendar_id='.$calendar_id.'&ev_ids='.$ev_ids_inline.'&eventID='.$ev_id[$j].'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" ><b>'.$ev_title[$j].'</b></a>';
else
{
echo '<br><a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="font-size:11px;background:none;color:'.$event_title_color.';text-align:center;" href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig_seemore&theme_id='.$theme_id.'&ev_ids='.$ev_ids_inline.'&calendar_id='.$calendar_id.'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" '.$dayevent.'> <b>'.JText::_('SEE_MORE').'</b></a>';
break;
}
$r++;
}
echo '</div></td>';
}
else
echo '<td class="calsun_days" style="padding:0; margin:0;line-height:1.3;font-family: tahoma;padding-left: 5px;font-size:'.$sundays_font_size.'px "><p>'.$i.'</p></td>';
}
}
/////////////////////////////////////////////////////////////////////////mec else
else
if($i==$day_REFERER and $month==$month_REFERER and $year==$year_REFERER )
{
echo '<td bgcolor="'.$bg_color_selected.'" class="cala_day" style="padding:0; margin:0;line-height:15px;"><div class="calborder_day" style=" width:'.$cell_width.'px; margin:0; padding:0;"><p style="background-color:'.$evented_color_bg.';color:'.$evented_color.';font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;text-shadow: 1px 1px white;">'.$i.'</p>';
echo '<div style="background-color:'.$ev_title_bg_color.'">';
$r=0;
for($j=0;$j<$k; $j++)
{
if($r<$number_of_shown_evetns)
echo '<a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="background:none;color:'.$event_title_color.'; " href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id='.$theme_id.'&calendar_id='.$calendar_id.'&ev_ids='.$ev_ids_inline.'&eventID='.$ev_id[$j].'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" ><b>'.$ev_title[$j].'</b></a>';
else
{
echo '<br><a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="font-size:11px;background:none;color:'.$event_title_color.';text-align:center;" href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig_seemore&theme_id='.$theme_id.'&ev_ids='.$ev_ids_inline.'&calendar_id='.$calendar_id.'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" '.$dayevent.'> <b>'.JText::_('SEE_MORE').'</b></a>';
break;
}
$r++;
}
echo '</div></td></div>';
}
else
{
if($i==date('j') and $month==date('F') and $year==date('Y'))
{
if( in_array ($i,$array_days)){
echo '<td class="cala_day" style="background-color:'.$ev_title_bg_color.';padding:0; margin:0;line-height:15px; border: 3px solid '.$current_day_border_color.'"><p style="background-color:'.$evented_color_bg.';color:'.$evented_color.';font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;text-shadow: 1px 1px white;">'.$i.'</p>';
echo '<div style="background-color:'.$ev_title_bg_color.'">';
$r=0;
for($j=0;$j<$k; $j++)
{
if($r<$number_of_shown_evetns)
echo '<a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="background:none;color:'.$event_title_color.'; " href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id='.$theme_id.'&calendar_id='.$calendar_id.'&ev_ids='.$ev_ids_inline.'&eventID='.$ev_id[$j].'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" ><b>'.$ev_title[$j].'</b></a>';
else{
echo '<br><a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="font-size:11px;background:none;color:'.$event_title_color.';text-align:center;" href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig_seemore&theme_id='.$theme_id.'&ev_ids='.$ev_ids_inline.'&calendar_id='.$calendar_id.'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" '.$dayevent.'> <b>'.JText::_('SEE_MORE').'</b></a>';
break;
}
$r++;
}
echo '</div></td>';
}
else
echo '<td style=" color:'.$text_color_this_month_unevented.';padding:0; margin:0; line-height:15px; border: 3px solid '.$current_day_border_color.'; vertical-align:top;"><p style="font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;">'.$i.'</p></td>';
}
else
if( in_array ($i,$array_days)){
echo '<td class="cala_day" style="background-color:'.$ev_title_bg_color.';padding:0; margin:0;line-height:15px;">
';
echo '<p style="background-color:'.$evented_color_bg.';background-color:'.$evented_color_bg.';color:'.$evented_color.';font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;text-shadow: 1px 1px white;">'.$i.'</p>';
$r=0;
echo '<div style="">';
for($j=0;$j<$k; $j++)
{
if($r<$number_of_shown_evetns)
echo '<a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="background:none;color:'.$event_title_color.'; " href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id='.$theme_id.'&calendar_id='.$calendar_id.'&ev_ids='.$ev_ids_inline.'&eventID='.$ev_id[$j].'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" ><b>'.$ev_title[$j].'</b></a>';
else{
echo '<p><a class="modal'.$id.'" rel="{handler: \'iframe\', size: {x: '.$popup_width.', y: '.$popup_height.'}}" style="font-size:11px;background:none;color:'.$event_title_color.';text-align:center;" href="'.JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig_seemore&theme_id='.$theme_id.'&ev_ids='.$ev_ids_inline.'&calendar_id='.$calendar_id.'&date='.$year.'-'.add_0(Month_num($month)).'-'.$i).'&tmpl=component&Itemid='.$Itemid.'" '.$dayevent.'> <b>'.JText::_('SEE_MORE').'</b></a></p>';
break;
}
$r++;
}
echo '</div></td>';
}
else
echo '<td style=" color:'.$text_color_this_month_unevented.';padding:0; margin:0; line-height:15px;border: 1px solid '.$cell_border_color.';vertical-align:top;; "><p style="font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;">'.$i.'</p></td>';
}
if($weekday_i%7==0 && $i<>$month_days)
{
echo '</tr><tr height="'.$cell_height.'" style="font-family:'.$session->get( 'calendar_font_day').';line-height:15px">';
$weekday_i=0;
}
$weekday_i=$weekday_i+1;
}
$weekday_i;
$next_i=1;
if($weekday_i!=1)
for($i=$weekday_i; $i<=7; $i++)
{
if($i!=7)
echo '<td class="caltext_color_other_months" style="font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;background-color:'.$bg_color_other_months.'" >'.$next_i.'</td>';
else
echo '<td class="caltext_color_other_months" style="font-size:'.$other_days_font_size.'px;line-height:1.3;font-family: tahoma;padding-left: 5px;background-color:'.$bg_color_other_months.';" >'.$next_i.'</td>';
$next_i=$next_i+1;
}
echo '</tr></table>';
?>
<input type="text" value="1" name="day" style="display:none" />
</td>
</tr>
</table>
<tfoot>
<tr>
<td colspan="11">
<?php
$calendar =& JTable::getInstance('spidercalendar_calendar', 'Table');
// load the row from the db table
$calendar->load( $calendar_id);
$user =& JFactory::getUser();
if ($user->gid >= $calendar->gid)
echo '<a href="index.php?option=com_spidercalendar&view=add_event&calendar='.$calendar_id.'">'.JText::_('ADD_EVENT').'</a>
<a style="float:right" href="index.php?option=com_spidercalendar&view=show_events&calendar='.$calendar_id.'">'.JText::_('MANAGE_EVENTS').'</a>';
?>
</td>
</tr>
</tfoot>
</td>
</tr>
</table>
</div>