/** * Control Panel display function * * @param template $tpl */ function overview($tpl = null) { $document = JFactory::getDocument(); // this already includes administrator $livesite = JURI::base(); $document->setTitle(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('USERS'), 'jevents'); JToolBarHelper::addNew("user.edit"); JToolBarHelper::editList("user.edit"); //JToolBarHelper::publish("user.publish"); //JToolBarHelper::unpublish("user.unpublish"); JToolBarHelper::deleteList("ARE_YOU_SURE_YOU_WANT_TO_DELETE_THIS_USER", "user.remove"); //JToolBarHelper::preferences(JEV_COM_COMPONENT, '580', '750'); JToolBarHelper::spacer(); JEventsHelper::addSubmenu(); $search = JFactory::getApplication()->getUserStateFromRequest("usersearch{" . JEV_COM_COMPONENT . "}", 'search', ''); $db = JFactory::getDbo(); $search = $db->escape(trim(strtolower($search))); $option = JRequest::getCmd('option', JEV_COM_COMPONENT); $pagination = $this->get('Pagination'); $users = $this->get('users'); $this->assignRef('pagination', $pagination); $this->assignRef('users', $users); $this->assignRef('search', $search); JHTML::_('behavior.tooltip'); if (JevJoomlaVersion::isCompatible("3.0")) { $this->sidebar = JHtmlSidebar::render(); } }
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 overview($tpl = null) { $document = JFactory::getDocument(); $document->setTitle(JText::_('ICAL_EVENT_REPEATS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('ICAL_EVENT_REPEATS'), 'jevents'); JToolBarHelper::editList('icalrepeat.edit'); JToolBarHelper::deleteList('Delete this repeat?', 'icalrepeat.delete'); JToolBarHelper::cancel('icalevent.list'); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); JEventsHelper::addSubmenu(); JHTML::_('behavior.tooltip'); if (JevJoomlaVersion::isCompatible("3.0")) { $this->sidebar = JHtmlSidebar::render(); } }
function overview($tpl = null) { $document = JFactory::getDocument(); $document->setTitle(JText::_('ICALS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('ICALS'), 'jevents'); JToolBarHelper::publishList('icals.publish'); JToolBarHelper::unpublishList('icals.unpublish'); JToolBarHelper::addNew('icals.edit'); JToolBarHelper::editList('icals.edit'); JToolBarHelper::deleteList('Delete Ical and all associated events and repeats?', 'icals.delete'); JToolBarHelper::spacer(); JEventsHelper::addSubmenu(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->get("section",0); JHTML::_('behavior.tooltip'); if (JevJoomlaVersion::isCompatible("3.0")) { $this->sidebar = JHtmlSidebar::render(); } }
function edit($tpl = null) { include_once JPATH_ADMINISTRATOR . '/' . "includes" . '/' . "toolbar.php"; // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! JEVHelper::script('editdefaults.js', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/js/'); $document = JFactory::getDocument(); $document->setTitle(JText::_('JEV_LAYOUT_DEFAULT_EDIT')); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); $requiredfields = $params->get("com_jeveditionrequiredfields", ""); if (!empty($requiredfields)) { $requiredfields = "'" . implode("','", $requiredfields) . "'"; } // Set toolbar items for the page JToolBarHelper::title(JText::_('JEV_LAYOUT_DEFAULT_EDIT'), 'jevents'); JToolBarHelper::apply("defaults.apply"); JToolBarHelper::save("defaults.save"); JToolBarHelper::cancel("defaults.cancel"); JEventsHelper::addSubmenu(); 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); $this->assignRef('requiredfields', $requiredfields); parent::displaytemplate($tpl); }
function custom_css() { jimport('joomla.html.pane'); $document = JFactory::getDocument(); $document->setTitle(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS')); JToolBarHelper::title(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS'), 'jevents'); JToolBarHelper::apply('cpanel.custom_css'); JToolBarHelper::cancel('cpanel.cpanel'); // jimport('joomla.form.form'); JEventsHelper::addSubmenu(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if (JevJoomlaVersion::isCompatible("3.0")) { $this->sidebar = JHtmlSidebar::render(); } }
function csvimport($tpl = null) { $document = JFactory::getDocument(); $document->setTitle(JText::_('CSV_IMPORT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('CSV_IMPORT'), 'jevents'); JToolBarHelper::cancel('icalevent.list'); JEventsHelper::addSubmenu(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->get("section",0); JHTML::_('behavior.tooltip'); }