function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } $user = JFactory::getUser(); if (!oseMscPublic::isUserAdmin($user)) { $app = JFactory::getApplication('ADMIN'); $app->redirect('index.php', 'You do not has access to this page'); } $model = $this->getModel(); $model->checkViewExists(); $this->loadViewJs(); $this->loadGridJs(); $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('OSE Membership™ Configuration'); $this->assignRef('title', $title); parent::display($tpl); }
function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } if (JOOMLA16 == false) { require_once OSEMSC_B_PATH . DS . 'helpers' . DS . "extLanguage.php"; oseHTML::script(OSEMSC_F_URL . '/libraries/joomla.core.js', '1.5'); $strings = oseJson::encode(oseText::jsStrings()); $document = JFactory::getDocument(); $document->addScriptDeclaration('(function(){var strings=' . $strings . ';Joomla.JText.load(strings)})()'); } $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs'; oseHTML::initScript(); oseHTML::script($com . '/ose/app.msg.js', '1.5'); oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5'); require_once OSEMSC_B_PATH . DS . 'helpers' . DS . "extLanguage.php"; $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('OSE Membership™ Profile Management'); $this->assignRef('title', $title); parent::display($tpl); }
* @author Open Source Excellence (R) {@link http://www.opensource-excellence.com} * @author Created on 15-Nov-2010 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * @Copyright Copyright (C) 2010- Open Source Excellence (R) */ defined('_JEXEC') or die("Direct Access Not Allowed"); class oseMscViewMembers extends oseMscView { function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) {
function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } $list = $this->get('Items'); $this->assignRef('list', $list); oseHTML::initScript(); $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs'; oseHTML::script($com . '/grid/SearchField.js'); oseHTML::script($com . '/grid/expander.js'); oseHTML::script($com . '/ose/app.msg.js'); oseHTML::script($com . '/grid/limit.js'); require_once OSEMSC_B_PATH . DS . 'helpers' . DS . "extLanguage.php"; $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('OSE Membership™ Orders Management'); $this->assignRef('title', $title); parent::display($tpl); }
public function initCss() { $this->com_name = OSESoftHelper::getExtensionName(); oseHTML::stylesheet('components/com_ose_cpu/extjs/resources/css/ose-all.css'); oseHTML::stylesheet('administrator/components/com_ose_cpu/assets/css/old.css'); oseHTML::stylesheet('administrator/components/com_ose_cpu/assets/css/osesoft.css'); oseHTML::stylesheet('administrator/components/' . $this->com_name . '/assets/css/style.css'); }
function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } $this->loadViewJs(); $this->loadMultiSelect(); $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('OSE Membership™ Coupon Management'); $this->assignRef('title', $title); parent::display($tpl); }
function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } JToolBarHelper::title(JText::_('About Open Source Excellence') . ' ', 'logo'); $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs'; JHTML::stylesheet('style.css', 'administrator/components/com_ose_cpu/assets/css/'); $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('About OSE'); $this->assignRef('title', $title); parent::display($tpl); }
function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs'; $this->loadViewJs('jquery'); JHTML::stylesheet('style.css', 'administrator/components/com_ose_cpu/assets/css/'); $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('Software Activation'); $this->assignRef('title', $title); parent::display($tpl); }
function display($tpl = null) { $tmpl = JRequest::getVar('tmpl'); if (empty($tmpl)) { JRequest::setVar('tmpl', 'component'); } $list = $this->get('Items'); $this->assignRef('list', $list); $this->loadViewJs('jquery'); $this->loadGridJs(); $this->loadTinyMCE(); $objs = $this->getAddons(); $this->assignRef('objs', $objs); $OSESoftHelper = new OSESoftHelper(); $footer = $OSESoftHelper->renderOSETM(); $this->assignRef('footer', $footer); $preview_menus = $OSESoftHelper->getPreviewMenus(); $this->assignRef('preview_menus', $preview_menus); $this->assignRef('OSESoftHelper', $OSESoftHelper); $title = JText::_('OSE Membership™ Email and Templates Management'); $this->assignRef('title', $title); parent::display($tpl); }
public static function showmenu() { $db = JFactory::getDBO(); $query = "SELECT * FROM `#__menu` WHERE `alias` = 'OSE Membership™'"; $db->setQuery($query); $results = $db->loadResult(); if (empty($results)) { $query = "UPDATE `#__menu` SET `alias` = 'OSE Membership™', `path` = 'OSE Membership™', `published`=1, `img` = '\"components/com_osemsc/favicon.ico\"' WHERE `component_id` = ( SELECT extension_id FROM `#__extensions` WHERE `element` ='com_osemsc') AND `client_id` = 1 "; $db->setQuery($query); $db->query(); } self::$extension = self::getExtensionName(); $view = JRequest::getVar('view'); echo '<div class="menu-search">'; echo '<ul>'; echo '<li '; echo $view == 'memberships' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=memberships">' . JText::_('MEMBERSHIP_MANAGEMENT') . '</a></li>'; echo '<li '; echo $view == 'members' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=members">' . JText::_('MEMBER_MANAGEMENT') . '</a></li>'; echo '<li '; echo $view == 'orders' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=orders">' . JText::_('ORDER_MANAGEMENT') . '</a></li>'; echo '<li '; echo $view == 'coupons' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=coupons">' . JText::_('COUPON_MANAGEMENT') . '</a></li>'; echo '<li '; echo $view == 'emails' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=emails">' . JText::_('TEMPLATES') . '</a></li>'; echo '<li '; echo $view == 'config' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=config">' . JText::_('CONFIGURATION') . '</a></li>'; echo '<li '; echo $view == 'profile' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=profile">' . JText::_('CUSTOM_PROFILE') . '</a></li>'; echo '<li '; echo $view == 'addons' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=addons">' . JText::_('ADDONS') . '</a></li>'; echo '<li '; echo $view == 'aboutose' ? 'class="current"' : ''; echo '><a href="index.php?option=' . self::$extension . '&view=aboutose">' . JText::_('ABOUTOSE') . '</a></li>'; echo '</ul></div>'; }