function edit($tpl = null) { $document =& JFactory::getDocument(); include JEV_LIBS . "editStrings.php"; $document->addScriptDeclaration($editStrings); // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); JEVHelper::script('editical.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/'); $document->setTitle(JText::_('EDIT_ICAL_EVENT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('EDIT_ICAL_EVENT'), 'jevents'); $bar =& JToolBar::getInstance('toolbar'); if ($this->id > 0) { if ($this->editCopy) { $this->toolbarConfirmButton("icalevent.save", JText::_("save_copy_warning"), 'save', 'save', 'Save', false); $this->toolbarConfirmButton("icalevent.apply", JText::_("save_copy_warning"), 'apply', 'apply', 'Jev_Apply', false); } else { $this->toolbarConfirmButton("icalevent.save", JText::_("save_icalevent_warning"), 'save', 'save', 'Save', false); $this->toolbarConfirmButton("icalevent.apply", JText::_("save_icalevent_warning"), 'apply', 'apply', 'JEV_Apply', false); } } else { JToolBarHelper::save('icalevent.save'); if (JEVHelper::isEventEditor()) { JToolBarHelper::apply('icalevent.apply', "JEV_Apply"); } //$bar->appendButton( 'Apply', 'apply', "Apply",'icalevent.apply', false, false ); } JToolBarHelper::cancel('icalevent.list'); //JToolBarHelper::help( 'screen.icalevent.edit', true); $this->_hideSubmenu(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->getValue("section",0); JHTML::_('behavior.tooltip'); $this->setCreatorLookup(); }
function __construct($config = null) { parent::__construct($config); jimport('joomla.filesystem.file'); if (JevJoomlaVersion::isCompatible("3.0")) { JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadminjq.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } $this->_addPath('template', $this->_basePath . '/' . 'views' . '/' . 'abstract' . '/' . 'tmpl'); // note that the name config variable is ignored in the parent construct! if (JevJoomlaVersion::isCompatible("2.5")) { // Ok getTemplate doesn't seem to get the active menu item's template, so lets do it ourselves if it exists $app = JFactory::getApplication(); // Get current template style ID $page_template_id = $app->isAdmin() ? "0" : @$app->getMenu()->getActive()->template_style_id; // Check it's a valid style with simple check if (!($page_template_id == "" || $page_template_id == "0")) { // Load the valid style: $db = JFactory::getDbo(); $query = $db->getQuery(true)->select('template')->from('#__template_styles')->where('id =' . $db->quote($page_template_id) . ''); $db->setQuery($query); $template = $db->loadResult(); } else { $template = JFactory::getApplication()->getTemplate(); } $theme = JEV_CommonFunctions::getJEventsViewName(); $name = $this->getName(); $name = str_replace($theme . "/", "", $name); $this->addTemplatePath(JPATH_BASE . '/' . 'templates' . '/' . $template . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . $theme . '/' . $name); // or could have used //$this->addTemplatePath( JPATH_BASE.'/'.'templates'.'/'.JFactory::getApplication()->getTemplate().'/'.'html'.'/'.JEV_COM_COMPONENT.'/'.$config['name'] ); } }
function DefaultViewHelperFooter16($view) { if (JRequest::getInt('pop', 0)) { ?> <div class="ev_noprint"><p align="center"> <a href="#close" onclick="if (window.parent==window){self.close();} else {try {window.parent.jQuery('#myEditModal').modal('hide');}catch (e){}try {window.parent.SqueezeBox.close(); return false;} catch(e) {self.close();return false;}}" title="<?php echo JText::_('JEV_CLOSE'); ?> "><?php echo JText::_('JEV_CLOSE'); ?> </a> </p></div> <?php } $view->loadHelper("JevViewCopyright"); JevViewCopyright(); ?> </div> </div> <!-- close #jevents //--> <?php $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onJEventsFooter'); $task = JRequest::getString("jevtask"); $view->loadModules("jevpostjevents"); $view->loadModules("jevpostjevents_" . $task); JEVHelper::componentStylesheet($view, "extra.css"); jimport('joomla.filesystem.file'); // Lets check if we have editted before! if not... rename the custom file. if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { // It is definitely now created, lets load it! JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } }
function overview($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); $document =& JFactory::getDocument(); $document->setTitle(JText::_('CATEGORIES')); // Set toolbar items for the page JToolBarHelper::title(JText::_('CATEGORIES'), 'jevents'); JToolBarHelper::publishList('categories.publish'); JToolBarHelper::unpublishList('categories.unpublish'); JToolBarHelper::addNew('categories.add'); JToolBarHelper::editList('categories.edit'); JToolBarHelper::deleteList("delete category", 'categories.delete'); JToolBarHelper::spacer(); JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false); //JToolBarHelper::help( 'screen.categories', true); JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true); JHTML::_('behavior.tooltip'); // Preprocess the list of items to find ordering divisions. // RSH 9/28/10 Added check for empty list - if no items were created. if (count($this->items) > 0) { foreach ($this->items as &$item) { $this->ordering[$item->parent_id][] = $item->id; } } }
function edit() { JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); $document =& JFactory::getDocument(); $document->setTitle(JText::_('COM_JEVENTS_CONFIGURATION')); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_JEVENTS_CONFIGURATION'), 'jevents'); //APPLY BUTTON BY PRAKASH. JToolBarHelper::apply('params.apply'); //APPLY BUTTON JToolBarHelper::save('params.save'); JToolBarHelper::cancel('cpanel.cpanel'); $model = $this->getModel(); $this->params =& $model->getParams(); $component = JComponentHelper::getComponent(JEV_COM_COMPONENT); JHTML::_('behavior.tooltip'); if (JVersion::isCompatible("1.6.0")) { // Get the actions for the asset. $actions = JAccess::getActions(JEV_COM_COMPONENT, "component"); jimport('joomla.form.form'); // Add the search path for the admin component config.xml file. JForm::addFormPath(JPATH_ADMINISTRATOR . '/components/' . JEV_COM_COMPONENT); // Get the form. $modelForm = $model->getForm(); $this->assignRef("form", $modelForm); } }
function edit($tpl = null) { $document =& JFactory::getDocument(); include JEV_LIBS . "editStrings.php"; $document->addScriptDeclaration($editStrings); // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } JEVHelper::script('editical.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/'); JEVHelper::script('view_detail.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); $document->setTitle(JText::_('EDIT_ICAL_REPEAT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('EDIT_ICAL_REPEAT'), 'jevents'); $this->addSaveToolBarButton(); JToolBarHelper::apply('icalrepeat.apply', "Apply"); //$this->addCancelToolBarButton(); JToolBarHelper::cancel('icalrepeat.list'); //JToolBarHelper::help( 'screen.icalrepeat.edit', true); $this->_hideSubmenu(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->getValue("section",0); JHTML::_('behavior.tooltip'); }
function edit($tpl = null) { $document =& JFactory::getDocument(); // this already includes administrator $livesite = JURI::base(); if (JVersion::isCompatible("1.6.0")) { JEVHelper::stylesheet('eventsadmin16.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { $document->addStyleSheet($livesite . 'components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css'); } $document->setTitle(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('JEV_EDIT_USER'), 'jevents'); JToolBarHelper::save("user.save"); JToolBarHelper::cancel("user.overview"); //JToolBarHelper::help( 'edit.user', true); $option = JRequest::getCmd('option', JEV_COM_COMPONENT); $db =& JFactory::getDBO(); $params =& JComponentHelper::getParams(JEV_COM_COMPONENT); if (JVersion::isCompatible("1.6.0")) { $rules = JAccess::getAssetRules("com_jevents", true); $creatorgroups = $rules->getData(); $creatorgroups = array_merge($creatorgroups["core.admin"]->getData(), $creatorgroups["core.create"]->getData()); $users = array(0); foreach ($creatorgroups as $creatorgroup => $permission) { if ($permission == 1) { $users = array_merge(JAccess::getUsersByGroup($creatorgroup, true), $users); } } $sql = "SELECT * FROM #__users where id IN (" . implode(",", array_values($users)) . ") ORDER BY name asc"; $db->setQuery($sql); $users = $db->loadObjectList(); } else { $minaccess = $params->getValue("jevcreator_level", 19); // get users AUTHORS and above $sql = "SELECT * FROM #__users where gid>=" . $minaccess; $db->setQuery($sql); $users = $db->loadObjectList(); } $userOptions[] = JHTML::_('select.option', '-1', 'Select User'); foreach ($users as $user) { $userOptions[] = JHTML::_('select.option', $user->id, $user->name . " ({$user->username})"); } $jevuser =& $this->get('user'); $userlist = JHTML::_('select.genericlist', $userOptions, 'user_id', 'class="inputbox" size="1" ', 'value', 'text', $jevuser->user_id); JLoader::register('JEventsCategory', JEV_ADMINPATH . "/libraries/categoryClass.php"); $categories = JEventsCategory::categoriesTree(); $lists['categories'] = JHTML::_('select.genericlist', $categories, 'categories[]', 'multiple="multiple" size="15"', 'value', 'text', explode("|", $jevuser->categories)); // get calendars $sql = "SELECT label as text, ics_id as value FROM #__jevents_icsfile where icaltype=2"; $db->setQuery($sql); $calendars = $db->loadObjectList(); $lists['calendars'] = JHTML::_('select.genericlist', $calendars, 'calendars[]', 'multiple="multiple" size="15"', 'value', 'text', explode("|", $jevuser->calendars)); $this->assignRef('lists', $lists); $this->assignRef("users", $userlist); $this->assignRef('jevuser', $jevuser); JHTML::_('behavior.tooltip'); }
function edit($tpl = null) { $document =& JFactory::getDocument(); include JEV_ADMINLIBS . "/editStrings.php"; $document->addScriptDeclaration($editStrings); // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JEVHelper::stylesheet('eventsadmin16.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } JEVHelper::script('editical.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/'); //JEVHelper::script('toolbarfix.js','components/'.JEV_COM_COMPONENT.'/assets/js/'); $document->setTitle(JText::_('EDIT_ICAL_EVENT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('EDIT_ICAL_EVENT'), 'jevents'); $bar =& JToolBar::getInstance('toolbar'); if ($this->id > 0) { if ($this->editCopy) { $this->toolbarConfirmButton("icalevent.save", JText::_("save_copy_warning"), 'save', 'save', 'Save', false); if (JEVHelper::isEventEditor()) { $this->toolbarConfirmButton("icalevent.apply", JText::_("save_copy_warning"), 'apply', 'apply', 'Apply', false); } } else { $this->toolbarConfirmButton("icalevent.save", JText::_("save_icalevent_warning"), 'save', 'save', 'Save', false); if (JEVHelper::isEventEditor()) { $this->toolbarConfirmButton("icalevent.apply", JText::_("save_icalevent_warning"), 'apply', 'apply', 'Apply', false); } } } else { $this->toolbarButton("icalevent.save", 'save', 'save', 'Save', false); if (JEVHelper::isEventEditor()) { $this->toolbarButton("icalevent.apply", 'apply', 'apply', 'Apply', false); } } $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if ($params->get("editpopup", 0)) { $document->addStyleDeclaration("div#toolbar-box{margin:10px 10px 0px 10px;} div#jevents {margin:0px 10px 10px 10px;} "); $this->toolbarButton("icalevent.close", 'cancel', 'cancel', 'Cancel', false); JRequest::setVar('tmpl', 'component'); //force the component template } else { if ($this->id > 0) { $this->toolbarButton("icalevent.detail", 'cancel', 'cancel', 'Cancel', false); } else { $this->toolbarLinkButton("day.listevents", 'cancel', 'cancel', 'Cancel', false); } } JHTML::_('behavior.tooltip'); // I pass in the rp_id so that I can return to the repeat I was viewing before editing $this->assign("rp_id", JRequest::getInt("rp_id", 0)); $this->setCreatorLookup(); $this->_adminStart(); parent::displaytemplate($tpl); $this->_adminEnd(); }
protected function getInput() { JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php"); JEVHelper::ConditionalFields($this->element, $this->form->getName()); if (!defined("JEV_COM_COMPONENT")) { define("JEV_COM_COMPONENT", "com_jevents"); define("JEV_COMPONENT", str_replace("com_", "", JEV_COM_COMPONENT)); } JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); return parent::getInput(); }
function dbsetup($tpl = null) { if (JevJoomlaVersion::isCompatible("3.0")) { JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadminjq.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } $document = JFactory::getDocument(); $document->setTitle(JText::_('DB_SETUP')); // Set toolbar items for the page JToolBarHelper::title(JText::_('DB_SETUP'), 'jevents'); JToolBarHelper::cancel('cpanel.cpanel'); JEventsHelper::addSubmenu(); }
function edit($tpl = null) { $document = JFactory::getDocument(); include JEV_ADMINLIBS . "/editStrings.php"; $document->addScriptDeclaration($editStrings); JEVHelper::script('editical.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); JEVHelper::script('view_detail.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); JEVHelper::script('JevStdRequiredFields.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); $document->setTitle(JText::_('EDIT_ICAL_REPEAT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('EDIT_ICAL_REPEAT'), 'jevents'); $bar = JToolBar::getInstance('toolbar'); $this->toolbarConfirmButton("icalrepeat.save", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'save', 'save', 'Save', false); if (JEVHelper::isEventEditor()) { $this->toolbarConfirmButton("icalrepeat.apply", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'apply', 'apply', 'jev_Apply', false); } $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if ($params->get("editpopup", 0) && JEVHelper::isEventCreator()) { $document->addStyleDeclaration("div#toolbar-box{margin:10px 10px 0px 10px;} div#jevents {margin:0px 10px 10px 10px;} "); $this->toolbarButton("icalevent.close", 'cancel', 'cancel', 'Cancel', false); JRequest::setVar('tmpl', 'component'); //force the component template } else { $this->toolbarButton("icalevent.detail", 'cancel', 'cancel', 'Cancel', false); } //JToolBarHelper::help( 'screen.icalrepeat.edit', true); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); JHTML::_('behavior.tooltip'); $this->_adminStart(); if (JevJoomlaVersion::isCompatible("3.0")) { // load Joomla javascript classes JHTML::_('behavior.core'); $this->setLayout("edit"); } else { $this->setLayout("edit16"); } $this->setupEditForm(); JEVHelper::componentStylesheet($this, "editextra.css"); jimport('joomla.filesystem.file'); // Lets check if we have editted before! if not... rename the custom file. if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { // It is definitely now created, lets load it! JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } parent::displaytemplate($tpl); $this->_adminEnd(); }
function __construct($config = null) { parent::__construct($config); jimport('joomla.filesystem.file'); if (JevJoomlaVersion::isCompatible("3.0")) { JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadmin16.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } $this->_addPath('template', $this->_basePath . '/' . 'views' . '/' . 'abstract' . '/' . 'tmpl'); // note that the name config variable is ignored in the parent construct! if (JevJoomlaVersion::isCompatible("2.5")) { $theme = JEV_CommonFunctions::getJEventsViewName(); $this->addTemplatePath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . $theme . '/' . $this->getName()); // or could have used //$this->addTemplatePath( JPATH_BASE.'/'.'templates'.'/'.JFactory::getApplication()->getTemplate().'/'.'html'.'/'.JEV_COM_COMPONENT.'/'.$config['name'] ); } }
function edit($tpl = null) { $this->_hideSubmenu(); include_once JPATH_ADMINISTRATOR . DS . "includes" . DS . "toolbar.php"; // TODO find the active admin template if (!JVersion::isCompatible("1.6.0")) { JEVHelper::stylesheet("template.css", JURI::root() . "administrator/templates/khepri/css/"); } // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JEVHelper::stylesheet('eventsadmin16.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } JEVHelper::script('editdefaults.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/'); $document =& JFactory::getDocument(); $document->setTitle(JText::_('JEV_LAYOUT_DEFAULT_EDIT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('JEV_LAYOUT_DEFAULT_EDIT'), 'jevents'); JToolBarHelper::save("defaults.save"); JToolBarHelper::cancel("defaults.cancel"); JSubMenuHelper::addEntry(JText::_('DEFAULTS'), 'index.php?option=' . JEV_COM_COMPONENT, true); JHTML::_('behavior.tooltip'); $db =& JFactory::getDBO(); $uri =& JFactory::getURI(); // Get data from the model $model =& $this->getModel(); $item =& $this->get('Data'); if (strpos($item->name, "com_") === 0) { $parts = explode(".", $item->name); // special numbered case e.g. managed people if (count($parts) == 4) { $iname = str_replace(".{$parts['2']}.", ".", $item->name); } else { $iname = $item->name; } $this->_addPath('template', JPATH_ADMINISTRATOR . "/components/" . $parts[0] . "/views/defaults/tmpl"); if ($item->value == "" && file_exists(JPATH_ADMINISTRATOR . "/components/" . $parts[0] . "/views/defaults/tmpl/" . $iname . ".html")) { $item->value = file_get_contents(JPATH_ADMINISTRATOR . "/components/" . $parts[0] . "/views/defaults/tmpl/" . $iname . ".html"); } } $this->assignRef('item', $item); parent::displaytemplate($tpl); }
function edit($tpl = null) { $document =& JFactory::getDocument(); include JEV_ADMINLIBS . "/editStrings.php"; $document->addScriptDeclaration($editStrings); // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JEVHelper::stylesheet('eventsadmin16.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } JEVHelper::script('editical.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/'); JEVHelper::script('view_detail.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); $document->setTitle(JText::_('EDIT_ICAL_REPEAT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('EDIT_ICAL_REPEAT'), 'jevents'); //JToolBarHelper::save('icalrepeat.save'); //$this->addSaveToolBarButton(); $submitbutton = JVersion::isCompatible("1.6.0") ? "Joomla.submitbutton" : "submitbutton"; $toolbar =& JToolBar::getInstance('toolbar'); $html = '<a class="toolbar" onclick="javascript: ' . $submitbutton . '(\'icalrepeat.save\');return false;" href="#"><span class="icon-32-save" title="Save"> </span>' . JText::_('SAVE') . '</a>'; $toolbar->appendButton('Custom', $html, "customsave"); $html = '<a class="toolbar" onclick="javascript: ' . $submitbutton . '(\'icalrepeat.apply\');return false;" href="#"><span class="icon-32-apply" title="Save"> </span>' . JText::_('JEV_APPLY') . '</a>'; $toolbar->appendButton('Custom', $html, "customapply"); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if ($params->get("editpopup", 0)) { $document->addStyleDeclaration("div#toolbar-box{margin:10px 10px 0px 10px;} div#jevents {margin:0px 10px 10px 10px;} "); JToolBarHelper::custom("icalevent.close", 'cancel', 'cancel', 'Cancel', false); JRequest::setVar('tmpl', 'component'); //force the component template } else { $this->addCancelToolBarButton(); } //JToolBarHelper::help( 'screen.icalrepeat.edit', true); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); JHTML::_('behavior.tooltip'); $this->_adminStart(); parent::displaytemplate($tpl); $this->_adminEnd(); }
/** * Method to get the field input markup. * * @return string The field input markup. * @since 1.6 */ protected function getInput() { // Initialize variables. $html = array(); $attr = ''; // Initialize some field attributes. $attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : ''; $attr .= (string) $this->element['disabled'] == 'true' ? ' disabled="disabled"' : ''; $attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : ''; // Initialize JavaScript field attributes. $attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : ''; $html[] = '<input type="text" name="' . $this->name . '" value="' . $this->value . '" id="pick1064797275field"/><br/>'; $html[] = '<div class="clr"></div>'; $html[] = '<iframe id="fred" frameborder="" src="' . JURI::root() . "components/com_jevents/libraries/colours.html?id=fred&j16=1" . '" class="jev_colour_picker_i" ></iframe>'; $conditionparam = $this->form->getName() != "com_config.component" ? '_params' : ''; $html[] = '<div class="clr" id="jform' . $conditionparam . '_jevcolourpicker"></div>'; //$html[] = '<div class="clr"></div>'; // add script to auto open the basic options tab! $doc = JFactory::getDocument(); $script = <<<SCRIPT window.addEvent('load', function() { \tvar basicoptions = document.getElement('#basic-options') \tif (basicoptions && !basicoptions.hasClass('pane-toggler-down')) { \t basicoptions.fireEvent('click', basicoptions, 1000); \t}; }); SCRIPT; $doc->addScriptDeclaration($script); JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php"); JEVHelper::ConditionalFields($this->element, $this->form->getName()); if (JevJoomlaVersion::isCompatible("3.0")) { JEVHelper::stylesheet('eventsadmin.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } else { JEVHelper::stylesheet('eventsadmin16.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } return implode($html); }
<?php /** * JEvents Component for Joomla 1.5.x * * @version $Id: cpanel.php 3119 2011-12-20 14:34:33Z geraintedwards $ * @package JEvents * @copyright Copyright (C) 2008-2015 GWE Systems Ltd * @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html * @link http://www.jevents.net */ defined('_JEXEC') or die('Restricted access'); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); $version = JEventsVersion::getInstance(); JEVHelper::stylesheet('jev_cp.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); if (!empty($this->sidebar)) { ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> <?php //Version Checking etc ?> <div class="jev_version"> <?php echo JText::sprintf('JEV_CURRENT_VERSION', JString::substr($version->getShortVersion(), 1)); ?> </div>
function FlatViewHelperFooter16($view) { if (JRequest::getInt('pop', 0)) { ?> <div class="ev_noprint"><p align="center"> <a href="#close" onclick="if (window.parent == window) { self.close(); } else try { window.parent.SqueezeBox.close(); return false; } catch (e) { self.close(); return false; }" title="<?php echo JText::_('JEV_CLOSE'); ?> "><?php echo JText::_('JEV_CLOSE'); ?> </a> </p></div> <?php } $view->loadHelper("JevViewCopyright"); JevViewCopyright(); ?> </div> <?php $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onJEventsFooter'); $task = JRequest::getString("jevtask"); $view->loadModules("jevpostjevents"); $view->loadModules("jevpostjevents_" . $task); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if (($params->get('flatscalable', 0) == 1 || $params->get("flatwidth", 905) == "scalable") && ($task == "month.calendar" && !$params->get('flatlistmonth', 0) || $task == "week.listevents" && $params->get('flattabularweek', 0))) { $baseurl = JURI::root(); ?> <script type="text/javascript"> var myCSS = false; var processedClones = false; function setJEventsSize() { var jeventsBody = $("jevents_body"); var jeventsBodyParent = jeventsBody.getParent(); var size = jeventsBodyParent.getSize(); var narrow = false; if (!myCSS) { if (size.x < 485) { myCSS = Asset.css('<?php echo $baseurl; ?> components/com_jevents/views/flat/assets/css/narrowscalable.css', {id: 'myStyle', title: 'myStyle'}); narrow = true; } } else { if (size.x < 485) { myCSS.href = '<?php echo $baseurl; ?> components/com_jevents/views/flat/assets/css/narrowscalable.css'; narrow = true; } else { myCSS.href = '<?php echo $baseurl; ?> components/com_jevents/views/flat/assets/css/scalable.css'; narrow = false; } } if (narrow) { cloneEvents(); var listrowblock = document.getElement(".jev_listrowblock"); if (listrowblock) { listrowblock.style.display = "block"; } } else { var listrowblock = document.getElement(".jev_listrowblock"); if (listrowblock) { listrowblock.style.display = "none"; } setOutOfMonthSize.delay(1000); } } function setOutOfMonthSize() { $$(".jev_dayoutofmonth").each( function(el) { if (el.getParent().hasClass("slots1")) { el.style.minHeight = "81px"; } else { var psize = el.getParent().getSize(); el.style.minHeight = psize.y + "px"; } }, this); } function cloneEvents() { if (!processedClones) { processedClones = true; var myEvents = $$(".eventfull"); // sort these to be safe!! myEvents.sort(function(a, b) { if (!a.sortval) { var aparentclasses = a.getParent().className.split(" "); for (var i = 0; i < aparentclasses.length; i++) { if (aparentclasses[i].indexOf("jevstart_") >= 0) { a.sortval = aparentclasses[i].replace("jevstart_", ""); } } } if (!b.sortval) { var bparentclasses = b.getParent().className.split(" "); for (var i = 0; i < bparentclasses.length; i++) { if (bparentclasses[i].indexOf("jevstart_") >= 0) { b.sortval = bparentclasses[i].replace("jevstart_", ""); } } } if (a.sortval == b.sortval) { var asiblings = a.getParent().childNodes; for (var i = 0; i < asiblings.length; i++) { if (asiblings[i].className && asiblings[i].className.indexOf("hiddendayname") >= 0) { return -1; } } var bsiblings = b.getParent().childNodes; for (var i = 0; i < bsiblings.length; i++) { if (bsiblings[i].className && bsiblings[i].className.indexOf("hiddendayname") >= 0) { return 1; } } } return (a.sortval < b.sortval) ? -1 : (a.sortval > b.sortval) ? 1 : 0; //return a.sortval>b.sortval; }); if (myEvents.length == 0) { return; } var listrowblock = new Element('div', {'class': 'jev_listrowblock'}); var event_legend_container = document.getElement(".event_legend_container"); if (event_legend_container) { listrowblock.inject(event_legend_container, 'before'); } else { var toprow = $("jev_maincal").getElement(".jev_toprow"); listrowblock.inject(toprow, 'after'); var clearrow = new Element('div', {'class': 'jev_clear'}); clearrow.inject(listrowblock, 'after'); } var listrow = new Element('div', {'class': 'jev_listrow'}); var hasdaynames = false; myEvents.each(function(el) { if (!hasdaynames) { var dayname = el.getParent().getElement(".hiddendayname"); if (dayname) { hasdaynames = true; } } }); myEvents.each(function(el) { var dayname = el.getParent().getElement(".hiddendayname"); if (dayname) { dayname.style.display = "block"; dayname.inject(listrowblock, 'bottom'); } if (dayname || !hasdaynames) { // really should be for each separate date! listrow = new Element('div', {'class': 'jev_listrow'}); listrow.style.marginBottom = "10px"; listrow.style.marginTop = "5px"; listrow.inject(listrowblock, 'bottom'); } var hiddentime = el.getParent().getElement(".hiddentime"); hiddentime = hiddentime.getElement("a"); hiddentime.removeClass("hiddentime"); hiddentime.inject(listrow, 'bottom'); var myClone = el.getParent().clone(); myClone.addClass("jev_daywithevents"); myClone.removeClass("jev_dayoutofmonth"); myClone.removeClass("jevblocks0"); myClone.removeClass("jevblocks1"); myClone.removeClass("jevblocks2"); myClone.removeClass("jevblocks3"); myClone.removeClass("jevblocks4"); myClone.removeClass("jevblocks5"); myClone.removeClass("jevblocks6"); myClone.removeClass("jevblocks7"); myClone.style.height = "inherit"; myClone.inject(listrow, 'bottom'); var clearrow = new Element('div', {'class': 'jev_clear'}); clearrow.inject(listrow, 'bottom'); }); } } window.addEvent("domready", setJEventsSize); // set load event too incase template sets its own domready trigger window.addEvent("load", setJEventsSize); window.addEvent("resize", setJEventsSize); </script> <?php } JEVHelper::componentStylesheet($view, "extra.css"); jimport('joomla.filesystem.file'); // Lets check if we have editted before! if not... rename the custom file. if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { // It is definitely now created, lets load it! JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } }
public static function componentStylesheet($view, $filename = 'events_css.css') { if (!isset($view->jevlayout)) { if (method_exists($view, "getViewName")) { $view->jevlayout = $view->getViewName(); } else { if (method_exists($view, "getTheme")) { $view->jevlayout = $view->getTheme(); } } } if (file_exists(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . $view->jevlayout . '/' . "assets" . '/' . "css" . '/' . $filename)) { JEVHelper::stylesheet($filename, 'templates/' . JFactory::getApplication()->getTemplate() . '/html/' . JEV_COM_COMPONENT . '/' . $view->jevlayout . "/assets/css/"); } else { JEVHelper::stylesheet($filename, 'components/' . JEV_COM_COMPONENT . "/views/" . $view->jevlayout . "/assets/css/"); } }
function edit($tpl = null) { $document = JFactory::getDocument(); include JEV_ADMINLIBS . "/editStrings.php"; $document->addScriptDeclaration($editStrings); JEVHelper::script('editicalJQ.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); JEVHelper::script('JevStdRequiredFieldsJQ.js', 'components/' . JEV_COM_COMPONENT . '/assets/js/'); if ($this->row->title() <= "") { // Set toolbar items for the page JToolBarHelper::title(JText::_('CREATE_ICAL_EVENT'), 'jevents'); $document->setTitle(JText::_('CREATE_ICAL_EVENT')); } else { // Set toolbar items for the page JToolBarHelper::title(JText::_('EDIT_ICAL_EVENT'), 'jevents'); $document->setTitle(JText::_('EDIT_ICAL_EVENT')); } $bar = JToolBar::getInstance('toolbar'); if ($this->id > 0) { if ($this->editCopy) { if (JEVHelper::isEventEditor() || JEVHelper::canEditEvent($this->row)) { $this->toolbarConfirmButton("icalevent.apply", JText::_("JEV_SAVE_COPY_WARNING"), 'apply', 'apply', 'JEV_SAVE', false); } //$this->toolbarConfirmButton("icalevent.savenew", JText::_("JEV_SAVE_COPY_WARNING"), 'save', 'save', 'JEV_SAVE_NEW', false); $this->toolbarConfirmButton("icalevent.save", JText::_("JEV_SAVE_COPY_WARNING"), 'save', 'save', 'JEV_SAVE_CLOSE', false); } else { if (JEVHelper::isEventEditor() || JEVHelper::canEditEvent($this->row)) { $this->toolbarConfirmButton("icalevent.apply", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'apply', 'apply', 'JEV_SAVE', false); } //$this->toolbarConfirmButton("icalevent.savenew", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'save', 'save', 'JEV_SAVE_NEW', false); $this->toolbarConfirmButton("icalevent.save", JText::_("JEV_SAVE_ICALEVENT_WARNING"), 'save', 'save', 'JEV_SAVE_CLOSE', false); } } else { $canEditOwn = false; $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if (!$params->get("authorisedonly", 0)) { $juser = JFactory::getUser(); $canEditOwn = $juser->authorise('core.edit.own', 'com_jevents'); } if (JEVHelper::isEventEditor() || $canEditOwn) { $this->toolbarButton("icalevent.apply", 'apply', 'apply', 'JEV_SAVE', false); } //JToolBarHelper::save('icalevent.savenew', "JEV_Save_New"); $this->toolbarButton("icalevent.save", 'save', 'save', 'JEV_SAVE_CLOSE', false); } $params = JComponentHelper::getParams(JEV_COM_COMPONENT); $evedrd = $params->get("editreturnto", "day.listevents"); if ($params->get("editpopup", 0)) { $document->addStyleDeclaration("div#toolbar-box{margin:10px 10px 0px 10px;} div#jevents {margin:0px 10px 10px 10px;} "); $this->toolbarButton("icalevent.close", 'cancel', 'cancel', 'Cancel', false); JRequest::setVar('tmpl', 'component'); //force the component template } else { if ($this->id > 0) { $this->toolbarButton("icalrepeat.detail", 'cancel', 'cancel', 'Cancel', false); } else { $this->toolbarButton($evedrd, 'cancel', 'cancel', 'Cancel', false); } } // I pass in the rp_id so that I can return to the repeat I was viewing before editing $this->assign("rp_id", JRequest::getInt("rp_id", 0)); $this->_adminStart(); // load Joomla javascript classes JHTML::_('behavior.core'); $this->setLayout("edit"); JEVHelper::componentStylesheet($this, "editextra.css"); jimport('joomla.filesystem.file'); // Lets check if we have editted before! if not... rename the custom file. if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { // It is definitely now created, lets load it! JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } $this->setupEditForm(); parent::displaytemplate($tpl); $this->_adminEnd(); }
function __construct($params, $modid) { $this->_modid = $modid; $this->modparams =& $params; $jevents_config = JEVConfig::getInstance(); $this->datamodel = new JEventsDataModel(); // find appropriate Itemid and setup catids for datamodel $this->myItemid = $this->datamodel->setupModuleCatids($this->modparams); $this->catout = $this->datamodel->getCatidsOutLink(true); $user = JFactory::getUser(); // Can't use getCfg since this cannot be changed by Joomfish etc. $tmplang = JFactory::getLanguage(); $this->langtag = $tmplang->getTag(); // get params exclusive to module $this->inccss = $params->get('modlatest_inccss', 0); if ($this->inccss) { $modtheme = $params->get("com_calViewName", ""); if ($modtheme == "" || $modtheme == "global") { $modtheme = JEV_CommonFunctions::getJEventsViewName(); } $this->jevlayout = $modtheme; JEVHelper::componentStylesheet($this, "modstyle.css"); } // get params exclusive to component $this->com_starday = intval($jevents_config->get('com_starday', 0)); $this->com_calUseStdTime = intval($jevents_config->get('com_calUseStdTime', 1)); if ($this->com_calUseStdTime) { $this->defaultfFormatStr = IS_WIN ? $this->_defaultfFormatStr12winos : $this->_defaultfFormatStr12; } else { $this->defaultfFormatStr = $this->_defaultfFormatStr24; } // get params depending on switch if (intval($params->get('modlatest_useLocalParam', 0)) == 1) { $myparam =& $params; } else { $myparam =& $jevents_config; } $this->maxEvents = intval($myparam->get('modlatest_MaxEvents', 15)); $this->dispMode = intval($myparam->get('modlatest_Mode', 0)); $this->startNow = intval($myparam->get('startnow', 0)); $this->pastOnly = intval($myparam->get('pastonly', 0)); $this->rangeDays = intval($myparam->get('modlatest_Days', 30)); $this->norepeat = intval($myparam->get('modlatest_NoRepeat', 0)); $this->multiday = intval($myparam->get('modlatest_multiday', 0)); $this->displayLinks = intval($myparam->get('modlatest_DispLinks', 1)); $this->displayYear = intval($myparam->get('modlatest_DispYear', 0)); $this->disableDateStyle = intval($myparam->get('modlatest_DisDateStyle', 0)); $this->disableTitleStyle = intval($myparam->get('modlatest_DisTitleStyle', 0)); $this->linkCloaking = intval($myparam->get('modlatest_LinkCloaking', 0)); $this->linkToCal = intval($myparam->get('modlatest_LinkToCal', 0)); $this->customFormatStr = $myparam->get('modlatest_CustFmtStr', ''); $this->displayRSS = intval($myparam->get('modlatest_RSS', 0)); $this->sortReverse = intval($myparam->get('modlatest_SortReverse', 0)); if ($myparam->get("bootstrapcss", 1) == 1) { $cfg = JEVConfig::getInstance(); if ($cfg->get("bootstrapcss", 1) == 1) { // This version of bootstrap has maximum compatability with JEvents due to enhanced namespacing JHTML::stylesheet("com_jevents/bootstrap.css", array(), true); // Responsive version of bootstrap with maximum compatibility with JEvents due to enhanced namespacing JHTML::stylesheet("com_jevents/bootstrap-responsive.css", array(), true); } else { if ($cfg->get("bootstrapcss", 1) == 2) { JHtmlBootstrap::loadCss(); } } } else { if ($myparam->get("bootstrapcss", 1) == 2) { JHtmlBootstrap::loadCss(); } } if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { $document = JFactory::getDocument(); JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } if ($myparam->get("modlatest_customcss", false)) { JFactory::getDocument()->addStyleDeclaration($myparam->get("modlatest_customcss", false)); } if ($this->dispMode > 7) { $this->dispMode = 0; } // $maxEvents hardcoded to 105 for now to avoid bad mistakes in params if ($this->maxEvents > 150) { $this->maxEvents = 150; } if ($this->displayRSS) { if ($modid > 0) { // do not use JRoute since this creates .rss link which normal sef can't deal with $this->rsslink = JURI::root() . 'index.php?option=' . JEV_COM_COMPONENT . '&task=modlatest.rss&format=feed&type=rss&modid=' . $modid; } else { $this->displayRSS = false; } } }
public static function loadCustomCSS() { //Check for JEvents Custom CSS file if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } }
function DefaultModCalView($params, $modid) { if (JFile::exists(JPATH_SITE . "/components/com_jevents/assets/css/jevcustom.css")) { $document = JFactory::getDocument(); JEVHelper::stylesheet('jevcustom.css', 'components/' . JEV_COM_COMPONENT . '/assets/css/'); } $this->_modid = $modid; $user = JFactory::getUser(); $cfg = JEVConfig::getInstance(); $jev_component_name = JEV_COM_COMPONENT; $db = JFactory::getDBO(); $this->datamodel = new JEventsDataModel(); // component config object $jevents_config = JEVConfig::getInstance(); $this->modparams =& $params; $this->aid = isset($user->aid) ? $user->aid : 0; $tmplang = JFactory::getLanguage(); // get params exclusive to module $this->inc_ec_css = $this->modparams->get('inc_ec_css', 1); $this->minical_showlink = $this->modparams->get('minical_showlink', 1); $this->minical_prevyear = $this->modparams->get('minical_prevyear', 1); $this->minical_prevmonth = $this->modparams->get('minical_prevmonth', 1); $this->minical_actmonth = $this->modparams->get('minical_actmonth', 1); $this->minical_actmonth = $this->modparams->get('minical_actmonth', 1); $this->minical_actyear = $this->modparams->get('minical_actyear', 1); $this->minical_nextmonth = $this->modparams->get('minical_nextmonth', 1); $this->minical_nextyear = $this->modparams->get('minical_nextyear', 1); // get params exclusive to component $this->com_starday = intval($jevents_config->get('com_starday', 0)); // make config object (module or component) current if (intval($this->modparams->get('modcal_useLocalParam', 0)) == 1) { $myparam =& $this->modparams; } else { $myparam =& $jevents_config; } // get com_event config parameters for this module $this->displayLastMonth = $myparam->get('modcal_DispLastMonth', 'NO'); $this->disp_lastMonthDays = $myparam->get('modcal_DispLastMonthDays', 0); $this->linkCloaking = $myparam->get('modcal_LinkCloaking', 0); $t_datenow = JEVHelper::getNow(); $this->timeWithOffset = $t_datenow->toUnix(true); switch ($this->displayLastMonth) { case 'YES_stop': $this->disp_lastMonth = 1; break; case 'YES_stop_events': $this->disp_lastMonth = 2; break; case 'ALWAYS': $this->disp_lastMonthDays = 0; $this->disp_lastMonth = 1; break; case 'ALWAYS_events': $this->disp_lastMonthDays = 0; $this->disp_lastMonth = 2; break; case 'NO': default: $this->disp_lastMonthDays = 0; $this->disp_lastMonth = 0; break; } $this->displayNextMonth = $myparam->get('modcal_DispNextMonth', 'NO'); $this->disp_nextMonthDays = $myparam->get('modcal_DispNextMonthDays', 0); switch ($this->displayNextMonth) { case 'YES_stop': $this->disp_nextMonth = 1; break; case 'YES_stop_events': $this->disp_nextMonth = 2; break; case 'ALWAYS': $this->disp_nextMonthDays = 0; $this->disp_nextMonth = 1; break; case 'ALWAYS_events': $this->disp_nextMonthDays = 0; $this->disp_nextMonth = 2; break; case 'NO': default: $this->disp_nextMonthDays = 0; $this->disp_nextMonth = 0; break; } // find appropriate Itemid and setup catids for datamodel $this->myItemid = $this->datamodel->setupModuleCatids($this->modparams); $this->cat = $this->datamodel->getCatidsOutLink(true); $this->linkpref = 'index.php?option=' . $jev_component_name . '&Itemid=' . $this->myItemid . $this->cat . '&task='; }
function _createfilterHTML() { if (!$this->filterField) { return ""; } // only works on admin list events pages if (JRequest::getCmd("jevtask") != "admin.listevents") { $filterList = array(); $filterList["title"] = ""; $filterList["html"] = ""; return $filterList; } $filterList = array(); $filterList["title"] = JText::_('WITH_INSTANCES'); $filterList["html"] = ""; $options = array(); $options[] = JHTML::_('select.option', '0', JText::_('WHEN')); $options[] = JHTML::_('select.option', '1', JText::_('On_or_after')); $options[] = JHTML::_('select.option', '-1', JText::_('BEFORE')); $filterList["html"] .= JHTML::_('select.genericlist', $options, $this->filterType . '_fvs0', 'onchange="form.submit()" class="inputbox" size="1" ', 'value', 'text', $this->filter_values[0]); //$filterList["html"] .= JHTML::calendar($this->filter_values[1],$this->filterType.'_fvs1', $this->filterType.'_fvs1', '%Y-%m-%d',array('size'=>'12','maxlength'=>'10','onchange'=>'form.submit()')); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); $minyear = JEVHelper::getMinYear(); $maxyear = JEVHelper::getMaxYear(); $document = JFactory::getDocument(); $calendar = JevJoomlaVersion::isCompatible("3.0") ? 'calendar14.js' : 'calendar12.js'; JEVHelper::script($calendar, "components/" . JEV_COM_COMPONENT . "/assets/js/", true); JEVHelper::stylesheet("dashboard.css", "components/" . JEV_COM_COMPONENT . "/assets/css/", true); $document->addScriptDeclaration('window.addEvent(\'domready\', function() { new NewCalendar({ ' . $this->filterType . '_fvs1 : "Y-m-d"},{ direction:0, classes: ["dashboard"], draggable:true, navigation:2, tweak:{x:0,y:-75}, offset:1, range:{min:' . $minyear . ',max:' . $maxyear . '}, months:["' . JText::_("JEV_JANUARY") . '", "' . JText::_("JEV_FEBRUARY") . '", "' . JText::_("JEV_MARCH") . '", "' . JText::_("JEV_APRIL") . '", "' . JText::_("JEV_MAY") . '", "' . JText::_("JEV_JUNE") . '", "' . JText::_("JEV_JULY") . '", "' . JText::_("JEV_AUGUST") . '", "' . JText::_("JEV_SEPTEMBER") . '", "' . JText::_("JEV_OCTOBER") . '", "' . JText::_("JEV_NOVEMBER") . '", "' . JText::_("JEV_DECEMBER") . '" ], days :["' . JText::_("JEV_SUNDAY") . '", "' . JText::_("JEV_MONDAY") . '", "' . JText::_("JEV_TUESDAY") . '", "' . JText::_("JEV_WEDNESDAY") . '", "' . JText::_("JEV_THURSDAY") . '", "' . JText::_("JEV_FRIDAY") . '", "' . JText::_("JEV_SATURDAY") . '" ], onHideComplete : function () { $("' . $this->filterType . '_fvs1").form.submit()}, }); });'); $filterList["html"] .= '<input type="text" name="' . $this->filterType . '_fvs1" id="' . $this->filterType . '_fvs1" value="' . $this->filter_values[1] . '" maxlength="10" size="12" />'; $filterList["html"] .= "<input type='hidden' name='" . $this->filterType . "_fvs2' value='1'/>"; return $filterList; }