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 : /AppServ/www/news/components/com_spidercalendar/views/ajaxbigcalendar/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' ); $componentParams = &JComponentHelper::getParams('com_spidercalendar'); $calendar = JRequest::getVar('calendar',$componentParams->get('calendar')); $theme_id = JRequest::getVar('theme',$componentParams->get('theme_id')); $defaultview=JRequest::getVar('def_view',$componentParams->get('defaultview')); $viewselect=JRequest::getVar('views',$componentParams->get('viewselect')); if($defaultview=="") $defaultview="month"; if($viewselect=="") $viewselect="month,list,day,week,"; $views=explode(',',$viewselect); array_pop($views); $theme =& JTable::getInstance('spidercalendar_theme', 'Table'); // load the row from the db table $theme->load( $theme_id); function add_0($month_num) { if($month_num<10) return '0'.$month_num; return $month_num; } $this_month = substr($this->date,5,2); $prev_month=add_0((int)$this_month-1); $next_month=add_0((int)$this_month+1); $border_radius=$theme->border_radius-$theme->border_width; $rand=JRequest::getVar('rand'); ?> <div id='bigcalendar<?php echo $rand ?>'></div> <script> function showbigcalendar(id,calendarlink,rand) { var xmlHttp; try{ xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari } catch (e){ try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer } catch (e){ try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ alert("No AJAX!?"); return false; } } } xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ document.getElementById(id).innerHTML=xmlHttp.responseText; } } xmlHttp.open("GET",calendarlink,false); xmlHttp.send(); //alert(document.getElementById('days').parentNode.lastChild.childNodes[6].innerHTML); if(document.getElementById('days')) { document.getElementById('days').parentNode.lastChild.childNodes[6].style.borderBottomRightRadius='<?php echo $border_radius ?>px'; document.getElementById('days').parentNode.lastChild.childNodes[0].style.borderBottomLeftRadius='<?php echo $border_radius ?>px'; } window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); }); window.addEvent('domready', function() { SqueezeBox.initialize({}); $$('a.modal'+rand).each(function(el) { el.addEvent('click', function(e) { new Event(e).stop(); SqueezeBox.fromElement(el); }); }); }); }; document.onkeydown = function(evt) { evt = evt || window.event; if (evt.keyCode == 27) { document.getElementById('sbox-window').close(); } }; SqueezeBox.presets.onClose=function (){window.parent.document.getElementById('sbox-content').innerHTML="";}; if('<?php echo $defaultview ?>'=='month') { showbigcalendar( 'bigcalendar<?php echo $rand ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$rand.'&theme_id='.$theme_id.'&calendar='.$calendar).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&date='.$this->date ;?>','<?php echo $rand ?>') } if('<?php echo $defaultview ?>'=='list') { showbigcalendar( 'bigcalendar<?php echo $rand ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarlist&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$rand.'&theme_id='.$theme_id.'&calendar='.$calendar).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&date='.$this->date ;?>','<?php echo $rand ?>') } if('<?php echo $defaultview ?>'=='week') { showbigcalendar( 'bigcalendar<?php echo $rand ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarweek&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$rand.'&theme_id='.$theme_id.'&calendar='.$calendar).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&months='.$prev_month.','.$this_month.','.$next_month.'&date='.$this->date.'-'.date('d') ;?>','<?php echo $rand ?>') } if('<?php echo $defaultview ?>'=='day') { showbigcalendar( 'bigcalendar<?php echo $rand ?>','<?php echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarday&def_view='.$defaultview.'&views='.$viewselect.'&rand='.$rand.'&theme_id='.$theme_id.'&calendar='.$calendar).'&format=row&tmpl=component&Itemid='.JRequest::getVar( "Itemid","").'&date='.$this->date.'-'.date('d') ;?>','<?php echo $rand ?>') } </script> <?php /*$document = JFactory::getDocument(); $document->addScriptDeclaration("$.noConflict();"); $document->addScriptDeclaration("jQuery.noConflict();");*/ JHTML::_('behavior.modal'); ?>