function _viewHiddenJumpto($this_date, $view, $Itemid) { $cfg = JEVConfig::getInstance(); $hiddencat = ""; if ($view->datamodel->catidsOut != 0) { $hiddencat = '<input type="hidden" name="catids" value="' . $view->datamodel->catidsOut . '"/>'; } $index = JRoute::_("index.php"); ?> <div id="jumpto" class="jev_none"> <form name="BarNav" action="<?php echo $index; ?> " method="get"> <input type="hidden" name="option" value="<?php echo JEV_COM_COMPONENT; ?> " /> <input type="hidden" name="task" value="month.calendar" /> <?php echo $hiddencat; /* Day Select */ // JEventsHTML::buildDaySelect( $this_date->getYear(1), $this_date->getMonth(1), $this_date->getDay(1), ' style="font-size:10px;"' ); /* Month Select */ JEventsHTML::buildMonthSelect($this_date->getMonth(1), ''); /* Year Select */ JEventsHTML::buildYearSelect($this_date->getYear(1), ''); ?> <button onclick="submit(this.form)"><?php echo JText::_('JEV_JUMPTO'); ?> </button> <input type="hidden" name="Itemid" value="<?php echo $Itemid; ?> " /> </form> </div> <?php }
function DefaultViewNavTableBar($view, $today_date, $view_date, $dates, $alts, $option, $task, $Itemid) { $cfg =& JEVConfig::getInstance(); $this->view = $view; $this->transparentGif = JURI::root() . "components/" . JEV_COM_COMPONENT . "/views/" . $this->view->getViewName() . "/assets/images/transp.gif"; $this->Itemid = JEVHelper::getItemid(); $this->cat = $this->view->datamodel->getCatidsOutLink(); $this->task = $task; if (JRequest::getInt('pop', 0)) { return; } list($year, $month, $day) = JEVHelper::getYMD(); $iconstoshow = $cfg->get('iconstoshow', array('byyear', 'bymonth', 'byweek', 'byday', 'search')); ?> <div class="ev_navigation" style="width:100%"> <table width="300" border="0" align="center" > <tr align="center" valign="top"> <td height="1" width="100" align="right" valign="top"> <a href="<?php echo JRoute::_('index.php?option=' . JEV_COM_COMPONENT . $this->cat . '&task=day.listevents&' . $today_date->toDateURL() . '&Itemid=' . $this->Itemid); ?> " title="<?php echo JText::_('JEV_VIEWTODAY'); ?> "><?php echo JText::_('JEV_VIEWTODAY'); ?> </a> </td> <td height="1" align="center" valign="bottom"> <form name="ViewSelect" action="<?php echo JURI::root() . "index.php"; ?> " method="get"> <input type="hidden" name="Itemid" value="<?php echo $Itemid; ?> " /> <input type="hidden" name="option" value="<?php echo JEV_COM_COMPONENT; ?> " /> <input type="hidden" name="year" value="<?php echo $year; ?> " /> <input type="hidden" name="month" value="<?php echo $month; ?> " /> <input type="hidden" name="day" value="<?php echo $day; ?> " /> <select name="task" id="task" onchange="submit(this.form);"> <?php if (in_array("byday", $iconstoshow)) { ?> <option value="day.listevents"><?php echo JText::_('JEV_VIEWBYDAY'); ?> </option> <?php } if (in_array("byweek", $iconstoshow)) { ?> <option value="week.listevents"><?php echo JText::_('JEV_VIEWBYWEEK'); ?> </option> <?php } if (in_array("bymonth", $iconstoshow)) { ?> <option value="month.calendar"><?php echo JText::_('JEV_VIEWBYMONTH'); ?> </option> <?php } if (in_array("byyear", $iconstoshow)) { ?> <option value="year.listevents"><?php echo JText::_('JEV_VIEWBYYEAR'); ?> </option> <?php } if (in_array("search", $iconstoshow)) { ?> <option value="search.form"><?php echo JText::_('JEV_SEARCH_TITLE'); ?> </option> <?php } if (in_array("bycat", $iconstoshow)) { ?> <option value="cat.listevents"><?php echo JText::_('JEV_VIEWBYCAT'); ?> </option> <?php } ?> </select> </form> </td> <td height="1" width="100" align="left" valign="top"> <a href="<?php echo JRoute::_('index.php?option=' . JEV_COM_COMPONENT . $this->cat . '&task=month.calendar&' . $today_date->toDateURL() . '&Itemid=' . $this->Itemid); ?> " title="<?php echo JText::_('JEV_VIEWTOCOME'); ?> "> <?php echo JText::_('JEV_VIEWTOCOME'); ?> </a> </td> </tr> </table> <table width="300" border="0" align="center"> <tr valign="top"> <?php if (in_array("byyear", $iconstoshow)) { echo $this->_lastYearIcon($dates, $alts); } if (in_array("bymonth", $iconstoshow)) { echo $this->_lastMonthIcon($dates, $alts); } ?> <td align="center" valign="top"> <form name="BarNav" action="index.php" method="get"> <input type="hidden" name="option" value="<?php echo JEV_COM_COMPONENT; ?> " /> <input type="hidden" name="task" value="<?php echo $this->task; ?> " /> <?php /* Day Select */ JEventsHTML::buildDaySelect($year, $month, $day, ' style="font-size:10px;" onchange="submit(this.form)"'); /* Month Select */ JEventsHTML::buildMonthSelect($month, 'style="font-size:10px;" onchange="submit(this.form)"'); /* Year Select */ JEventsHTML::buildYearSelect($year, 'style="font-size:10px;" onchange="submit(this.form)"'); ?> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?> " /> </form> </td> <?php if (in_array("bymonth", $iconstoshow)) { echo $this->_nextMonthIcon($dates, $alts); } if (in_array("byyear", $iconstoshow)) { echo $this->_nextYearIcon($dates, $alts); } ?> </tr> </table> </div> <?php }
function _viewHiddenJumpto($this_date) { $cfg =& JEVConfig::getInstance(); $hiddencat = ""; if ($this->view->datamodel->catidsOut != 0) { $hiddencat = '<input type="hidden" name="catids" value="' . $this->view->datamodel->catidsOut . '"/>'; } ?> <tr align="center" valign="top"> <?php if ($cfg->get('com_calUseIconic', 1) != 2) { ?> <td colspan="10" align="center" valign="top"> <?php } else { ?> <td colspan="6" align="center" valign="top"> <?php } $index = JRoute::_("index.php"); ?> <div id="jumpto" style="display:none"> <form name="BarNav" action="<?php echo $index; ?> " method="get"> <input type="hidden" name="option" value="<?php echo JEV_COM_COMPONENT; ?> " /> <input type="hidden" name="task" value="month.calendar" /> <?php echo $hiddencat; /*Day Select*/ // JEventsHTML::buildDaySelect( $this_date->getYear(1), $this_date->getMonth(1), $this_date->getDay(1), ' style="font-size:10px;"' ); /*Month Select*/ JEventsHTML::buildMonthSelect($this_date->getMonth(1), 'style="font-size:10px;"'); /*Year Select*/ JEventsHTML::buildYearSelect($this_date->getYear(1), 'style="font-size:10px;"'); ?> <button onclick="submit(this.form)"><?php echo JText::_('JEV_JUMPTO'); ?> </button> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?> " /> </form> </div> </td> </tr> <?php }