function view($tpl = null) { // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_RESTOREMIGRATE'), 'mijosef'); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/restore-migrate?tmpl=component', 650, 500); parent::display($tpl); }
function edit($tpl = null) { // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_CONFIGURATION'), 'mijosef'); JToolBarHelper::custom('save', 'save1.png', 'save1.png', JText::_('Save'), false); JToolBarHelper::custom('apply', 'apply1.png', 'apply1.png', JText::_('Apply'), false); JToolBarHelper::custom('cancel', 'cancel1.png', 'cancel1.png', JText::_('Cancel'), false); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'purgeupdate', JText::_('COM_MIJOSEF_COMMON_PURGEUPDATE'), 'index.php?option=com_mijosef&controller=purgeupdate&task=view&tmpl=component', 470, 320); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/configuration?tmpl=component', 650, 500); // Get behaviors JHTML::_('behavior.mootools'); JHTML::_('behavior.tooltip'); // Import Editor $editor = JFactory::getEditor(); if ($this->MijosefConfig->sm_auto_cron_last == "") { $this->MijosefConfig->sm_auto_cron_last = time(); } $permissions = JForm::getInstance('permissions', JPATH_MIJOSEF_ADMIN . '/permissions.xml', array(), true, 'config'); $permissions->bind(array('permissions' => json_decode($this->get('Permissions')))); // Get data from the model $this->editor = $editor; $this->lists = $this->get('Lists'); $this->permissions = $permissions; parent::display($tpl); }
function view($tpl = null) { // Get data from the model $this->assignRef('urls', $this->get('CountUrls')); $this->assignRef('meta', $this->get('CountMeta')); parent::display($tpl); }
function view($tpl = null) { $toolbar = $this->get('ToolbarSelections'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_EXTENSIONS'), 'mijosef'); $this->toolbar->appendButton('Confirm', JText::_('COM_MIJOSEF_EXTENSIONS_VIEW_BTN_REMOVE_WARN'), 'uninstall', JText::_('Uninstall'), 'uninstall', true, false); JToolBarHelper::custom('save', 'save1.png', 'save1.png', JText::_('Save'), false); JToolBarHelper::divider(); JToolBarHelper::spacer(); $this->toolbar->appendButton('Custom', $toolbar->action); $this->toolbar->appendButton('Custom', $toolbar->selection); $this->toolbar->appendButton('Custom', $toolbar->button); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/extensions?tmpl=component', 650, 500); // Get behaviors JHTML::_('behavior.tooltip'); JHTML::_('behavior.modal', 'a.modal', array('onClose' => '\\function(){location.reload(true);}')); // Get data from the model $this->assignRef('lists', $this->get('Lists')); $this->assignRef('info', $this->get('Info')); $this->assignRef('params', $this->get('Params')); $this->assignRef('items', $this->get('Items')); $this->assignRef('pagination', $this->get('Pagination')); parent::display($tpl); }
function edit($tpl = null) { // Get data from model $model =& $this->getModel(); $row = $model->getEditData('MijosefMovedUrls'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_URLS_MOVED') . ': ' . $row->url_old, 'mijosef'); JToolBarHelper::custom('editSave', 'save1.png', 'save1.png', JTEXT::_('Save'), false); JToolBarHelper::custom('editApply', 'apply1.png', 'apply1.png', JTEXT::_('Apply'), false); JToolBarHelper::custom('editCancel', 'cancel1.png', 'cancel1.png', JTEXT::_('Cancel'), false); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/urls?tmpl=component', 650, 500); // Options array $select = array(); $select[] = JHTML::_('select.option', '1', JTEXT::_('Yes')); $select[] = JHTML::_('select.option', '0', JTEXT::_('No')); // Published list $lists['published'] = JHTML::_('select.genericlist', $select, 'published', 'class="inputbox" size="1 "', 'value', 'text', $row->published); // Get behaviors JHTML::_('behavior.modal', 'a.modal', array('onClose' => '\\function(){location.reload(true);}')); // Get jQuery if ($this->MijosefConfig->jquery_mode == 1) { $this->document->addScript('components/com_mijosef/assets/js/jquery-1.4.2.min.js'); $this->document->addScript('components/com_mijosef/assets/js/jquery.bgiframe.min.js'); $this->document->addScript('components/com_mijosef/assets/js/jquery.autocomplete.js'); } // Assign values $this->assignRef('row', $row); $this->assignRef('lists', $lists); parent::display($tpl); }
function edit($tpl = NULL) { $row = $this->getModel()->getEditData('MijosefExtensions'); $ext_form = JForm::getInstance('extensionForm', JPATH_MIJOSEF_ADMIN . '/extensions/' . $row->extension . '.xml', array(), true, 'config'); $ext_values = array('params' => json_decode($row->params)); $ext_form->bind($ext_values); $default_form = JForm::getInstance('commonForm', JPATH_MIJOSEF_ADMIN . '/extensions/default_params.xml', array(), true, 'config'); $default_values = array('params' => json_decode($row->params)); $default_form->bind($default_values); $row->description = ''; $row->hasCats = 0; $xml_file = JPATH_MIJOSEF_ADMIN . '/extensions/' . $row->extension . '.xml'; if (file_exists($xml_file)) { $row->description = Mijosef::get('utility')->getXmlText($xml_file, 'description'); $row->hasCats = (int) Mijosef::get('utility')->getXmlText($xml_file, 'hasCats'); } // Get behaviors JHTML::_('behavior.combobox'); JHTML::_('behavior.tooltip'); // Assign data $this->assignRef('row', $row); $this->assignRef('ext_params', $ext_form); $this->assignRef('default_params', $default_form); parent::display($tpl); }
function display($tpl = null) { // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_SUPPORT'), 'mijosef'); JToolBarHelper::back(JText::_('Back'), 'index.php?option=com_mijosef'); if (JRequest::getCmd('task', '') == 'translators') { $this->document->setCharset('iso-8859-9'); } parent::display($tpl); }
function view($tpl = null) { // Get data from the model $this->assignRef('lists', $this->get('Lists')); $this->assignRef('items', $this->get('Items')); $this->assignRef('pagination', $this->get('Pagination')); $this->assignRef('toolbar', $this->get('ToolbarSelections')); $this->assignRef('sef', $this->get('SefUrl')); parent::display($tpl); }
function view($tpl = null) { // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_UPGRADE'), 'mijosef'); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/installation-upgrading/upgrade?tmpl=component', 650, 500); $versions = array(2); $version_info = Mijosef::get('utility')->getRemoteInfo(); $versions['latest'] = $version_info['mijosef']; $versions['installed'] = Mijosef::get('utility')->getXmlText(JPATH_MIJOSEF_ADMIN . '/a_mijosef.xml', 'version'); $this->assignRef('versions', $versions); parent::display($tpl); }
function display($tpl = null) { // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_CONTROLPANEL'), 'mijosef'); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/control-panel?tmpl=component', 650, 500); $this->MijosefConfig = Mijosef::getConfig(); // Assign vars to the template $this->assignRef('info', $this->get('Info')); $this->assignRef('extensions', $this->get('Extensions')); parent::display($tpl); }
function view($tpl = null) { $toolbar = $this->get('ToolbarSelections'); $this->type = JFactory::getApplication()->getUserStateFromRequest('com_mijosef.metadata.type', 'type', 'all'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_METADATA'), 'mijosef'); $this->toolbar->appendButton('Popup', 'new1', JText::_('New'), 'index.php?option=com_mijosef&controller=metadata&task=add&tmpl=component', 700, 490); JToolBarHelper::custom('edit', 'edit1.png', 'edit1.png', JText::_('Edit'), true, true); JToolBarHelper::divider(); JToolBarHelper::custom('apply', 'apply1.png', 'apply1.png', JText::_('Apply'), false); JToolBarHelper::custom('generateMetadata', 'generatemetadata.png', 'generatemetadata.png', JText::_('COM_MIJOSEF_TOOLBAR_GENERATE_METADATA'), false); JToolBarHelper::divider(); JToolBarHelper::spacer(); $this->toolbar->appendButton('Custom', $toolbar->action); $this->toolbar->appendButton('Custom', $toolbar->fields); $this->toolbar->appendButton('Custom', $toolbar->selection); $this->toolbar->appendButton('Custom', $toolbar->button); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/metadata?tmpl=component', 650, 500); // Get behaviors JHTML::_('behavior.modal', 'a.modal', array('onClose' => '\\function(){location.reload(true);}')); // Get Items $items = $this->get('Items'); // Footer colspan $colspan = 5; if ($this->MijosefConfig->ui_metadata_keys == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_metadata_published == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_metadata_cached == 1) { $colspan = $colspan + 1; $this->assignRef('cache', $this->get('Cache')); } if ($this->MijosefConfig->ui_metadata_id == 1) { $colspan = $colspan + 1; } // Get data from the model $this->assignRef('lists', $this->get('Lists')); $this->assignRef('urls', self::getNewURLs($items, $this->get('URLs'))); $this->assignRef('items', $items); $this->assignRef('pagination', $this->get('Pagination')); $this->assignRef('colspan', $colspan); parent::display($tpl); }
function view($tpl = null) { $toolbar = $this->get('ToolbarSelections'); $this->type = JFactory::getApplication()->getUserStateFromRequest('com_mijosef.urls.type', 'type', 'moved'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_URLS'), 'mijosef'); $this->toolbar->appendButton('Popup', 'new1', JText::_('New'), 'index.php?option=com_mijosef&controller=movedurls&task=add&tmpl=component', 600, 340); JToolBarHelper::custom('edit', 'edit1.png', 'edit1.png', JText::_('Edit'), true, true); JToolBarHelper::divider(); JToolBarHelper::spacer(); $this->toolbar->appendButton('Custom', $toolbar->action); $this->toolbar->appendButton('Custom', $toolbar->selection); $this->toolbar->appendButton('Custom', $toolbar->button); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/urls?tmpl=component', 650, 500); // Get behaviors JHTML::_('behavior.modal', 'a.modal', array('onClose' => '\\function(){location.reload(true);}')); // Footer colspan $colspan = 4; if ($this->MijosefConfig->ui_moved_published == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_moved_hits == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_moved_clicked == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_moved_cached == 1) { $colspan = $colspan + 1; $this->assignRef('cache', $this->get('Cache')); } if ($this->MijosefConfig->ui_moved_id == 1) { $colspan = $colspan + 1; } // Get data from the model $this->assignRef('lists', $this->get('Lists')); $this->assignRef('items', $this->get('Items')); $this->assignRef('pagination', $this->get('Pagination')); $this->assignRef('colspan', $colspan); parent::display($tpl); }
function edit($tpl = null) { // Get data from model $model =& $this->getModel(); $row = $model->getEditData('MijosefSefUrls'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_URL_EDIT_TITLE') . ' ' . $row->url_sef, 'mijosef'); JToolBarHelper::custom('editSave', 'save1.png', 'save1.png', JTEXT::_('Save'), false); JToolBarHelper::custom('editApply', 'apply1.png', 'apply1.png', JTEXT::_('Apply'), false); JToolBarHelper::custom('editCancel', 'cancel1.png', 'cancel1.png', JTEXT::_('Cancel'), false); JToolBarHelper::divider(); JToolBarHelper::custom('editSaveMoved', 'save1.png', 'save1.png', JTEXT::_('COM_MIJOSEF_TOOLBAR_SEF_SAVEMOVED'), false); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/urls?tmpl=component', 650, 500); // // Params // $params = new JRegistry($row->params); $url['custom'] = $params->get('custom', '0'); $url['published'] = $params->get('published', '0'); $url['locked'] = $params->get('locked', '0'); $url['blocked'] = $params->get('blocked', '0'); $url['trashed'] = $params->get('trashed', '0'); $url['notfound'] = $params->get('notfound', '0'); $url['tags'] = $params->get('tags', '0'); $url['ilinks'] = $params->get('ilinks', '0'); $url['bookmarks'] = $params->get('bookmarks', '0'); $url['notes'] = $params->get('notes', ''); $cache = $this->get('Cache'); $url['cached'] = '0'; if (isset($cache[$row->url_real])) { $url['cached'] = '1'; } // Get alias $url['alias'] = self::getAliases($row->url_sef); // Assign values $this->assignRef('row', $row); $this->assignRef('url', $url); $this->assignRef('metadata', self::getMetadata($row->url_sef)); $this->assignRef('sitemap', self::getSitemap($row->url_sef)); parent::display($tpl); }
function edit($tpl = null) { // Get data from model $model =& $this->getModel(); $row = $model->getEditData('MijosefMetadata'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_METADATA') . ': ' . $row->url_sef, 'mijosef'); JToolBarHelper::custom('editSave', 'save1.png', 'save1.png', JTEXT::_('Save'), false); JToolBarHelper::custom('editApply', 'apply1.png', 'apply1.png', JTEXT::_('Apply'), false); JToolBarHelper::custom('editCancel', 'cancel1.png', 'cancel1.png', JTEXT::_('Cancel'), false); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/metadata?tmpl=component', 650, 500); // Get jQuery if ($this->MijosefConfig->jquery_mode == 1) { $this->document->addScript('components/com_mijosef/assets/js/jquery-1.4.2.min.js'); $this->document->addScript('components/com_mijosef/assets/js/jquery.bgiframe.min.js'); $this->document->addScript('components/com_mijosef/assets/js/jquery.autocomplete.js'); } // Assign values $this->assignRef('row', $row); parent::display($tpl); }
function view($tpl = null) { parent::display($tpl); }
function view($tpl = null) { $toolbar = $this->get('ToolbarSelections'); $this->type = JFactory::getApplication()->getUserStateFromRequest('com_mijosef.urls.type', 'type', 'sef'); // Toolbar JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_URLS'), 'mijosef'); if ($this->type == 'notfound') { $this->toolbar->appendButton('Popup', 'new1', JText::_('Create 301'), 'index.php?option=com_mijosef&controller=movedurls&task=add&tmpl=component', 600, 340); JToolBarHelper::divider(); } elseif ($this->type != 'trashed') { $this->toolbar->appendButton('Popup', 'new1', JText::_('New'), 'index.php?option=com_mijosef&controller=sefurls&task=add&tmpl=component', 700, 500); JToolBarHelper::custom('edit', 'edit1.png', 'edit1.png', JText::_('Edit'), true, true); JToolBarHelper::divider(); } if ($this->type != 'trashed') { if ($this->type == "quickedit") { $tpl = "quickedit"; JToolBarHelper::custom('apply', 'apply1.png', 'apply1.png', JText::_('Apply'), false); } if ($this->type != 'notfound') { $this->toolbar->appendButton('Popup', 'generateurls', JText::_('COM_MIJOSEF_TOOLBAR_GENERATE_URLS'), 'index.php?option=com_mijosef&controller=sefurls&task=generate&tmpl=component', 400, 220); } JToolBarHelper::spacer(); } $this->toolbar->appendButton('Custom', $toolbar->action); $this->toolbar->appendButton('Custom', $toolbar->newtags . $toolbar->newilinks . $toolbar->newbookmarks . $toolbar->newtag); $this->toolbar->appendButton('Custom', $toolbar->selection); $this->toolbar->appendButton('Custom', $toolbar->button); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'cache', JText::_('COM_MIJOSEF_CACHE_CLEAN'), 'index.php?option=com_mijosef&controller=purgeupdate&task=cache&tmpl=component', 300, 380); JToolBarHelper::divider(); $this->toolbar->appendButton('Popup', 'help1', JText::_('Help'), 'http://www.mijosoft.com/support/docs/mijosef/user-manual/urls?tmpl=component', 650, 500); // Get behaviors JHTML::_('behavior.tooltip'); JHTML::_('behavior.modal', 'a.modal', array('onClose' => '\\function(){location.reload(true);}')); // Footer colspan $colspan = 5; if ($this->MijosefConfig->ui_sef_published == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_sef_used == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_sef_locked == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_sef_blocked == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_sef_cached == 1) { $colspan = $colspan + 1; $this->assignRef('cache', $this->get('Cache')); } if ($this->MijosefConfig->ui_sef_date == 1) { $colspan = $colspan + 2; } if ($this->MijosefConfig->ui_sef_hits == 1) { $colspan = $colspan + 1; } if ($this->MijosefConfig->ui_sef_id == 1) { $colspan = $colspan + 1; } // Get jQuery /*if ($this->MijosefConfig->jquery_mode == 1) { $this->document->addScript('components/com_mijosef/assets/js/jquery-1.4.2.min.js'); $this->document->addScript('components/com_mijosef/assets/js/jquery.bgiframe.min.js'); $this->document->addScript('components/com_mijosef/assets/js/jquery.autocomplete.js'); }*/ // Get data from the model $this->assignRef('lists', $this->get('Lists')); $this->assignRef('items', $this->get('Items')); $this->assignRef('duplicates', $this->get('Duplicates')); $this->assignRef('pagination', $this->get('Pagination')); $this->assignRef('colspan', $colspan); parent::display($tpl); }
function generate($tpl = null) { parent::display($tpl); }
function display($tpl = null) { // Get data from the model $this->assignRef('count', $this->get('CountCache')); parent::display($tpl); }
function view($tpl = null) { JToolBarHelper::title(JText::_('COM_MIJOSEF_COMMON_SITEMAP'), 'mijosef'); parent::display($tpl); }
function edit($tpl = null) { parent::display($tpl); }