I have added the code to my .htaccess file but i'm still have the same problem with 500 page as above picture.
AddType application/x-httpd-php53 .php
this code is only for monthly calender what about the weekly ???
please help if that going to work. thanks,
/**
* Get months select for quick navigator.
*
* @param string $name name of HTML select box
* @param int $selectedMonth selected month from user request
* @param int $selectedYear selected year from user request
* @param int $deep set calendar available deepth
* @param string $attribs custom HTML tag params
* @return string HTML
*/
function getMonthsSelect($name, $selectedMonth, $selectedYear, $deep, $attribs = '')
{
$arr = array();
$date = JFactory::getDate();
$m = $date->toFormat('%m');
$y = $date->toFormat('%Y');
for ($i = 0; $i <= $deep; $i ++) {
$date = JFactory::getDate("$y-$m-01 + $i month");
/* @var $date JDate */
$arr[] = JHTML::_('select.option', ((int) $date->toFormat('%m') . ',' . (int) $date->toFormat('%Y')), ($date->toFormat('%B') . '/' . $date->toFormat('%Y')));
}
return JHTML::_('select.genericlist', $arr, $name, $attribs, 'value', 'text', $selectedMonth . ',' . $selectedYear);
}