Beispiel #1
0
 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     JToolBarHelper::title('RSMembership!', 'rsmembership');
     JSubMenuHelper::addEntry(JText::_('RSM_TRANSACTIONS'), 'index.php?option=com_rsmembership&view=transactions');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIPS'), 'index.php?option=com_rsmembership&view=memberships');
     JSubMenuHelper::addEntry(JText::_('RSM_CATEGORIES'), 'index.php?option=com_rsmembership&view=categories');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_EXTRAS'), 'index.php?option=com_rsmembership&view=extras');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_UPGRADES'), 'index.php?option=com_rsmembership&view=upgrades');
     JSubMenuHelper::addEntry(JText::_('RSM_COUPONS'), 'index.php?option=com_rsmembership&view=coupons');
     JSubMenuHelper::addEntry(JText::_('RSM_PAYMENT_INTEGRATIONS'), 'index.php?option=com_rsmembership&view=payments');
     JSubMenuHelper::addEntry(JText::_('RSM_FILES'), 'index.php?option=com_rsmembership&view=files');
     JSubMenuHelper::addEntry(JText::_('RSM_FILE_TERMS'), 'index.php?option=com_rsmembership&view=terms');
     JSubMenuHelper::addEntry(JText::_('RSM_USERS'), 'index.php?option=com_rsmembership&view=users');
     JSubMenuHelper::addEntry(JText::_('RSM_FIELDS'), 'index.php?option=com_rsmembership&view=fields');
     JSubMenuHelper::addEntry(JText::_('RSM_REPORTS'), 'index.php?option=com_rsmembership&view=reports', true);
     JSubMenuHelper::addEntry(JText::_('RSM_CONFIGURATION'), 'index.php?option=com_rsmembership&view=configuration');
     JSubMenuHelper::addEntry(JText::_('RSM_UPDATES'), 'index.php?option=com_rsmembership&view=updates');
     $params = array();
     $params['allowAllClose'] = true;
     $pane =& JPane::getInstance('sliders', $params);
     $this->assignRef('pane', $pane);
     $date = RSMembershipHelper::getCurrentDate();
     if (RSMembershipHelper::isJ16()) {
         $date =& JFactory::getDate();
         $date = $date->toUnix();
     }
     $this->assignRef('from_calendar', JHTML::_('calendar', '', 'from_date', 'rsm_from_calendar'));
     $this->assignRef('to_calendar', JHTML::_('calendar', date('Y-m-d', $date), 'to_date', 'rsm_to_calendar'));
     $this->assign('user_id', $this->get('userId'));
     $this->assign('report', $this->get('report'));
     $this->assign('count_memberships', $this->get('countMemberships'));
     $color_pickers = !empty($this->report) && $this->report == 2 ? '4' : $this->count_memberships;
     $this->assign('color_pickers', $color_pickers);
     $lists['transaction_types'] = $this->get('transactiontypes');
     $lists['memberships'] = $this->get('memberships');
     $lists['memberships_transactions'] = $this->get('membershipstransactions');
     $units = array();
     $units[] = JHTML::_('select.option', 'day', JText::_('RSM_DAY'));
     $units[] = JHTML::_('select.option', 'month', JText::_('RSM_MONTH'));
     $units[] = JHTML::_('select.option', 'quarter', JText::_('RSM_QUARTER'));
     $units[] = JHTML::_('select.option', 'year', JText::_('RSM_YEAR'));
     $lists['unit'] = JHTML::_('select.genericlist', $units, 'unit');
     $reports = array();
     $reports[] = JHTML::_('select.option', 'report_1', JText::_('RSM_REPORT_1'));
     $reports[] = JHTML::_('select.option', 'report_2', JText::_('RSM_REPORT_2'));
     $lists['report'] = JHTML::_('select.genericlist', $reports, 'report', 'onchange="rsm_check_report(this.value);"');
     $gateways = $this->assign('gateways', $this->get('gateways'));
     $viewin = array();
     $viewin[] = JHTML::_('select.option', 60, JText::_('RSM_MINUTES'));
     $viewin[] = JHTML::_('select.option', 3600, JText::_('RSM_HOURS'));
     $viewin[] = JHTML::_('select.option', 86400, JText::_('RSM_DAYS'));
     $lists['viewin'] = JHTML::_('select.genericlist', $viewin, 'viewin', 'style="display: none;"');
     $this->assignRef('lists', $lists);
     $this->assign('customer', $this->get('customer'));
     if ($this->get('ie')) {
         JError::raiseWarning(500, JText::_('RSM_IE_WARNING'));
     }
     parent::display($tpl);
 }
Beispiel #2
0
 function start($name, $options = array())
 {
     $ret = '';
     if ($this->mode == 'pane') {
         jimport('joomla.html.pane');
         if (!empty($this->options)) {
             $options = array_merge($options, $this->options);
         }
         $this->tabs = JPane::getInstance('tabs', $options);
         $ret .= $this->tabs->startPane($name);
     } elseif ($this->mode == 'tabs') {
         if (!empty($this->options)) {
             $options = array_merge($options, $this->options);
         }
         $ret .= JHtml::_('tabs.start', $name, $options);
     } else {
         $this->name = $name;
         if ($this->options == null) {
             $this->options = $options;
         } else {
             $this->options = array_merge($this->options, $options);
         }
     }
     return $ret;
 }
 /**
  * display method of Insert view
  * @return void
  **/
 function display($tpl = null)
 {
     $plg =& JPluginHelper::getPlugin('content', 'avreloaded');
     $pp = new JParameter($plg->params);
     $app =& JFactory::getApplication();
     $doc =& JFactory::getDocument();
     $doc->addStyleSheet(JURI::root(true) . '/administrator/templates/khepri/css/general.css');
     $doc->addStyleSheet(JURI::root(true) . '/administrator/templates/khepri/css/component.css');
     $js_ins = 'popup-insert.js';
     $cfg =& JFactory::getConfig();
     $debug = $cfg->getValue('config.debug');
     $konqcheck = strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "konqueror");
     // If global debugging is enabled or the browser is konqueror,
     // we use uncompressed JavaScript
     if ($debug || $konqcheck) {
         $js_ins = 'popup-insert-uncompressed.js';
     }
     JHTML::script($js_ins, 'administrator/components/com_avreloaded/assets/');
     JHTML::_('behavior.tooltip');
     jimport('joomla.html.pane');
     $pane =& JPane::getInstance('Tabs', array('startOffset' => JRequest::getInt('local', 0)));
     $data =& $this->_getProvider($pp, $app);
     $data['mselector'] = $this->_getLocalMedia('mloc', $data['mloc']);
     $doc->addScriptDeclaration($data['js']);
     $this->assignRef('data', $data);
     $this->assignRef('pane', $pane);
     $this->assignRef('v', $this);
     parent::display($tpl);
 }
Beispiel #4
0
 function display($tpl = null)
 {
     //Load pane behavior
     jimport('joomla.html.pane');
     //initialise variables
     $document =& JFactory::getDocument();
     $pane =& JPane::getInstance('sliders');
     $user =& JFactory::getUser();
     //build toolbar
     JToolBarHelper::title(JText::_('COM_REDEVENT'), 'home');
     if ($user->authorise('core.admin', 'com_redevent')) {
         JToolBarHelper::preferences('com_redevent', '600', '800');
     }
     // Get data from the model
     $events =& $this->get('Eventsdata');
     $venue =& $this->get('Venuesdata');
     $category =& $this->get('Categoriesdata');
     $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_REDEVENT'));
     //add css and submenu to document
     $document->addStyleSheet('components/com_redevent/assets/css/redeventbackend.css');
     //Create Submenu
     ELAdmin::setMenu();
     //assign vars to the template
     $this->assignRef('pane', $pane);
     $this->assignRef('events', $events);
     $this->assignRef('venue', $venue);
     $this->assignRef('category', $category);
     $this->assignRef('user', $user);
     parent::display($tpl);
 }
Beispiel #5
0
 public static function renderForm($form, $defaults, $group = null, $separator = 0, $style = 1)
 {
     $fieldsets = $form->getFieldsets($group);
     $out = '';
     if ($separator == FORM_SEPARATOR_SLIDER) {
         $pane = JPane::getInstance('Sliders');
         $out .= JHtml::_('sliders.start', 'type-sliders', array('useCookie' => 1));
     }
     foreach ($fieldsets as $name => $fieldset) {
         switch ($separator) {
             case FORM_SEPARATOR_H2:
                 $out .= "<h2>" . JText::_($fieldset->label) . "</h2>";
                 break;
             case FORM_SEPARATOR_FIELDSET:
                 $out .= sprintf('<legend>%s</legend>', JText::_($fieldset->label));
                 break;
             case FORM_SEPARATOR_SLIDER:
                 $out .= JHtml::_('sliders.panel', JText::_($fieldset->label), $fieldset->name);
                 break;
         }
         $out .= self::renderFieldset($form, $name, $defaults, $group, $style, 0);
         switch ($separator) {
             case FORM_SEPARATOR_FIELDSET:
                 $out .= '';
                 break;
             case FORM_SEPARATOR_SLIDER:
                 //$out .= JHtml::_('sliders.end');
                 break;
         }
     }
     if ($separator == FORM_SEPARATOR_SLIDER) {
         $out .= JHtml::_('sliders.end');
     }
     return $out;
 }
Beispiel #6
0
 function display($tpl = null)
 {
     //Load pane behavior
     jimport('joomla.html.pane');
     //initialise variables
     $document =& JFactory::getDocument();
     $pane =& JPane::getInstance('sliders');
     $user =& JFactory::getUser();
     //build toolbar
     JToolBarHelper::title(JText::_('IMPORT'), 'home');
     JToolBarHelper::help('el.import', true);
     // Get data from the model
     $eventfields =& $this->get('EventFields');
     $catfields =& $this->get('CategoryFields');
     //add css and submenu to document
     $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css');
     //Create Submenu
     JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist', true);
     JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events');
     JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues');
     JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories');
     JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive');
     JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups');
     JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help');
     if ($user->get('gid') > 24) {
         JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit');
     }
     //assign vars to the template
     $this->assignRef('eventfields', $eventfields);
     $this->assignRef('catfields', $catfields);
     parent::display($tpl);
 }
Beispiel #7
0
 public function display($tpl = null)
 {
     // Request
     $month = KInput::get('month', 'get', 'digit', null, date('m'));
     $year = KInput::get('year', 'get', 'int', null, date('Y'));
     $graph = KInput::get('graph', 'get', 'cmd', null, 'translations');
     $table_name = KInput::get('table_name', 'get', KFactory::tmp('admin::com.nooku.filter.tablename'), null, '');
     $this->assign('graph', $graph);
     $this->assign('table_name', $table_name);
     $this->assign('month', $month);
     $this->assign('year', $year);
     // URI
     $uri =& JURI::getInstance(JURI::base() . 'index.php?option=com_nooku&format=openflashchart');
     $uri->setVar('table_name', $table_name);
     $uri->setVar('layout', 'bar');
     $uri->setVar('view', 'statistics.translations');
     $this->assign('translations', $uri->toString());
     $uri->setVar('year', date('Y'));
     $uri->setVar('month', date('n'));
     $uri->setVar('view', 'statistics.translators');
     $this->assign('translators', $uri->toString());
     // panes
     Koowa::import('lib.joomla.html.pane');
     $this->assignRef('panes', JPane::getInstance('tabs'));
     // Mixin a menubar object
     $this->mixin(new NookuMixinMenu($this));
     $this->displayMenubar();
     $this->displayMenutitle();
     $this->displayToolbar();
     // Display the layout
     parent::display($tpl);
 }
 /**
  *  view display method
  * @return void
  */
 function display($tpl = null)
 {
     // Get data from the model
     $items = $this->get('Items');
     $pagination = $this->get('Pagination');
     $model = $this->getModel();
     jimport('joomla.html.pane');
     $pane =& JPane::getInstance('sliders');
     $this->assignRef('pane', $pane);
     $this->assignRef('version', $model->getVersion());
     $this->assignRef('githubrequest', $model->getGithubRequests());
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Assign data to the view
     $this->items = $items;
     $this->pagination = $pagination;
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }
function Joom_ShowMenu_HTML()
{
    $database =& JFactory::getDBO();
    $document =& JFactory::getDocument();
    $config = Joom_GetConfig();
    jimport('joomla.html.pane');
    $document->addStyleDeclaration('
.joom_cpanel img {
  padding:21px 0px !important;
}');
    $database->setQuery("SELECT id\n      FROM #__components\n      WHERE link = 'option=" . _JOOM_OPTION . "' AND parent=''");
    $id = $database->loadResult();
    $database->setQuery("SELECT *\n      FROM #__components\n      WHERE parent='" . $id . "' ORDER BY id ASC");
    $rows = $database->loadObjectList();
    ?>
<table border="0" cellpadding="10" style="margin-right:auto; margin-left:auto;" class="adminform">
  <tbody>
    <tr>
      <td width="55%" valign="top">
        <div id="cpanel" class="joom_cpanel">
<?php 
    foreach ($rows as $row) {
        Joom_QuickIconButton($row->admin_menu_link, $row->admin_menu_img, $row->name);
    }
    ?>
        </div>
      </td>
      <td width="45%" valign="top">
<?php 
    $modules =& JModuleHelper::getModules('joom_cpanel');
    // TODO: allowAllClose should default true in J!1.6, so remove the array when it does.
    $pane =& JPane::getInstance('sliders', array('allowAllClose' => true));
    echo $pane->startPane("content-pane");
    if ($config->jg_checkupdate) {
        Joom_ShowDatedExtensions($pane);
    }
    foreach ($modules as $module) {
        echo $pane->startPanel($module->title, 'cpanel-panel-' . $module->name);
        echo JModuleHelper::renderModule($module);
        echo $pane->endPanel();
    }
    echo $pane->endPane();
    if ($config->jg_checkupdate) {
        if (!count(Joom_CheckUpdate())) {
            ?>
  <div style=" weight:100%; text-align:center; color:#008000; font-weight:bold;">
    <?php 
            echo JText::_('JGA_SYSTEM_UPTODATE');
            ?>
  </div>
<?php 
        }
    }
    ?>
      </td>
    </tr>
  </tbody>
</table>
<?php 
}
 function display($tpl = null)
 {
     global $mainframe, $option;
     //initialise variables
     $user =& JFactory::getUser();
     $db =& JFactory::getDBO();
     $document =& JFactory::getDocument();
     //Load pane behavior
     jimport('joomla.html.pane');
     $pane =& JPane::getInstance('tabs');
     $this->assignRef('pane', $pane);
     JHTML::_('behavior.tooltip');
     //get vars
     //create the toolbar
     JToolBarHelper::title(JText::_('Plugins'), 'jomtube-plugins');
     JToolBarHelper::spacer();
     JToolBarHelper::deleteList('', 'remove', 'Uninstall');
     //Get data from the model
     $model =& $this->getModel();
     $rows = $model->getData('thirdparty');
     $templates = $model->getData('template');
     $languages = $model->getData('language');
     $total =& $this->get('Total');
     $pageNav =& $this->get('Pagination');
     //assign data to template
     $this->assignRef('lists', $lists);
     $this->assignRef('rows', $rows);
     $this->assignRef('languages', $languages);
     $this->assignRef('templates', $templates);
     $this->assignRef('pageNav', $pageNav);
     $this->assignRef('user', $user);
     $tmplpath = dirname(__FILE__) . DS . 'tmpl';
     $this->assignRef('tmplpath', $tmplpath);
     parent::display($tpl);
 }
Beispiel #11
0
 function display($tpl = null)
 {
     jimport('joomla.html.pane');
     $pane = JPane::getInstance('Tabs');
     $this->assignRef('pane', $pane);
     $model = $this->getModel();
     $numOfK2Items = $model->countK2Items();
     $this->assignRef('numOfK2Items', $numOfK2Items);
     $numOfVmProducts = $model->countVmProducts();
     $this->assignRef('numOfVmProducts', $numOfVmProducts);
     $numOfK2martProducts = $model->countK2martProducts();
     $this->assignRef('numOfK2martProducts', $numOfK2martProducts);
     $module = JModuleHelper::getModule('mod_k2mart');
     $params = new JRegistry();
     $params->loadString($module->params);
     $params->set('modLogo', "0");
     $params->set('modCSSStyling', "1");
     $module->params = $params->toString();
     $charts = JModuleHelper::renderModule($module);
     $this->assignRef('charts', $charts);
     $document = JFactory::getDocument();
     $document->addCustomTag('<!--[if lte IE 7]><link href="' . JURI::base() . 'components/com_k2mart/css/style_ie7.css" rel="stylesheet" type="text/css" /><![endif]-->');
     $this->loadHelper('html');
     K2martHTMLHelper::title('K2MART_DASHBOARD');
     K2martHTMLHelper::toolbar();
     K2martHTMLHelper::subMenu();
     parent::display($tpl);
 }
Beispiel #12
0
 public function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARD_MANAGEMENT'), 'redshop_giftcard_48');
     $uri = JFactory::getURI();
     jimport('joomla.html.pane');
     $pane = JPane::getInstance('sliders');
     $this->pane = $pane;
     $this->setLayout('default');
     $lists = array();
     $detail = $this->get('data');
     $isNew = $detail->giftcard_id < 1;
     $text = $isNew ? JText::_('COM_REDSHOP_NEW') : JText::_('COM_REDSHOP_EDIT');
     JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARDS') . ': <small><small>[ ' . $text . ' ]</small></small>', 'redshop_giftcard_48');
     JToolBarHelper::apply();
     JToolBarHelper::save();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
     }
     $lists['customer_amount'] = JHTML::_('select.booleanlist', 'customer_amount', 'class="inputbox" ', $detail->customer_amount);
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $detail->published);
     if (ECONOMIC_INTEGRATION == 1) {
         $redhelper = new redhelper();
         $accountgroup = $redhelper->getEconomicAccountGroup();
         $op = array();
         $op[] = JHTML::_('select.option', '0', JText::_('COM_REDSHOP_SELECT'));
         $accountgroup = array_merge($op, $accountgroup);
         $lists["accountgroup_id"] = JHTML::_('select.genericlist', $accountgroup, 'accountgroup_id', 'class="inputbox" size="1" ', 'value', 'text', $detail->accountgroup_id);
     }
     $this->lists = $lists;
     $this->detail = $detail;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     global $mainframe;
     //Load pane behavior
     jimport('joomla.html.pane');
     $pane =& JPane::getInstance('tabs');
     //initialise variables
     $editor =& JFactory::getEditor();
     $document =& JFactory::getDocument();
     $user =& JFactory::getUser();
     //get vars
     $cid = JRequest::getVar('cid');
     //create the toolbar
     if ($cid) {
         JToolBarHelper::title(JText::_('EDIT VIDEO'), 'jomtube-videos');
     } else {
         JToolBarHelper::title(JText::_('ADD VIDEO'), 'jomtube-videos');
     }
     JToolBarHelper::apply();
     JToolBarHelper::spacer();
     JToolBarHelper::save();
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     $tmplpath = dirname(__FILE__) . DS . 'tmpl';
     $this->assignRef('tmplpath', $tmplpath);
     $this->assignRef('my', $my =& JFactory::getUser());
     $this->assignRef('pane', $pane);
     parent::display($tpl);
 }
Beispiel #14
0
 public function display($tpl = null)
 {
     // Automatically fetch the item and assign it to the layout
     $this->fetchItem();
     // Common lists
     $parent_id_params = array('nullvalue' => 1, 'nulltitle' => JText::_('No parent'), 'current' => $this->item->parent_id, 'self' => $this->item->id);
     $this->lists['parent_id'] = SimplelistsHTML::selectCategories('parent_id', $parent_id_params);
     // Construct the modal boxes
     $modal = array();
     //$modal['image'] = 'index.php?option=com_simplelists&amp;view=files&amp;tmpl=component&amp;type=picture' ;
     //$modal['image'] .= ($this->item->image) ? '&amp;folder=/'.dirname($this->item->image).'&amp;current='.$this->item->image : '&amp;current=';
     $this->assignRef('modal', $modal);
     // Construct the slider-panel
     jimport('joomla.html.pane');
     $pane =& JPane::getInstance('sliders');
     $this->assignRef('pane', $pane);
     // Add jQuery
     if (JFactory::getApplication()->get('jquery') == false) {
         $this->addJs('jquery.js');
         JFactory::getApplication()->set('jquery', true);
     }
     // Add extra JavaScript
     JHTML::_('behavior.formvalidation');
     $this->addJs('form-validation.js');
     parent::display($tpl);
 }
Beispiel #15
0
 function display($tpl = null)
 {
     $this->setToolBar();
     $requiredSetup = array();
     //get all files required for setup
     $setupRules = XiptSetupHelper::getOrderedRules();
     //for each file check that setup is required or not & get message a/c to this.
     foreach ($setupRules as $setup) {
         //get object of class
         $setupObject = XiptFactory::getSetupRule($setup['name']);
         if (!$setupObject->isApplicable()) {
             continue;
         }
         $helpMsg[$setup['name']] = $setupObject->getHelpMsg($setup['name']);
         $data = $setupObject->getMessage();
         $requiredSetup[$setup['name']]['done'] = $data['done'];
         $requiredSetup[$setup['name']]['message'] = $data['message'];
         $requiredSetup[$setup['name']]['type'] = $setup['type'];
     }
     // to check that setup screen is clean or not
     $mysess = JFactory::getSession();
     $mysess->set('requireSetupCleanUp', false);
     foreach ($requiredSetup as $req) {
         if ($req["done"] == false) {
             $mysess->set('requireSetupCleanUp', true);
             break;
         }
     }
     $pane =& JPane::getInstance('sliders');
     $this->assignRef('pane', $pane);
     $this->assign('requiredSetup', $requiredSetup);
     $this->assign('helpMsg', $helpMsg);
     $this->assign('setupRules', $setupRules);
     parent::display($tpl);
 }
Beispiel #16
0
 function display($tpl = null)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'configuration.php';
     JToolBarHelper::title(JText::_('Configurations'), 'config');
     JToolBarHelper::save();
     JToolBarHelper::apply();
     JToolBarHelper::cancel('cancel', 'Close');
     JHTML::_('behavior.tooltip');
     JHTML::_('behavior.switcher');
     jimport('joomla.html.pane');
     $helper =& JDefenderConfigurationHelper::getInstance();
     $options =& $this->get('Data');
     $pane =& JPane::getInstance('tabs');
     $validatorParams =& $helper->getValidatorParams(true);
     $validatorGroups =& $helper->getValidatorGroups();
     $alertsParams =& $helper->getAlertsParams();
     $slider =& JPane::getInstance('sliders');
     $this->assignRef('validatorParams', $validatorParams);
     $this->assignRef('alertsParams', $alertsParams);
     $this->assignRef('validatorGroups', $validatorGroups);
     $this->assignRef('parameters', $options);
     $this->assignRef('pane', $pane);
     $this->assignRef('slider', $slider);
     JD_Admin_Menu_Helper::decorate();
     parent::display($tpl);
 }
Beispiel #17
0
 function display($tpl = null)
 {
     $this->setToolbar();
     $pane = JPane::getInstance('sliders');
     $this->assignRef('pane', $pane);
     parent::display($tpl);
 }
 function start($name, $options = array())
 {
     $ret = '';
     if ($this->mode == 'pane') {
         jimport('joomla.html.pane');
         if (!empty($this->options)) {
             $options = array_merge($options, $this->options);
         }
         $this->tabs = JPane::getInstance('sliders', $options);
         $ret .= $this->tabs->startPane($name);
     } elseif ($this->mode == 'sliders') {
         if (!empty($this->options)) {
             $options = array_merge($options, $this->options);
         }
         $ret .= JHtml::_('sliders.start', $name, $options);
     } else {
         if ($this->options == null) {
             $this->options = $options;
         } else {
             $this->options = array_merge($this->options, $options);
         }
         $this->name = $name;
         $this->count = 0;
         $ret .= '<div class="accordion" id="' . $name . '">';
     }
     return $ret;
 }
Beispiel #19
0
 function display($tpl = null)
 {
     JToolBarHelper::title('RSForm! Pro', 'rsform');
     if (RSFormProHelper::isJ16()) {
         $lang =& JFactory::getLanguage();
         $lang->load('com_rsform.sys', JPATH_ADMINISTRATOR);
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_MANAGE_FORMS'), 'index.php?option=com_rsform&task=forms.manage');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_MANAGE_SUBMISSIONS'), 'index.php?option=com_rsform&task=submissions.manage');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_CONFIGURATION'), 'index.php?option=com_rsform&task=configuration.edit', true);
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_BACKUP_RESTORE'), 'index.php?option=com_rsform&task=backup.restore');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_UPDATES'), 'index.php?option=com_rsform&task=updates.manage');
         JSubMenuHelper::addEntry(JText::_('COM_RSFORM_PLUGINS'), 'index.php?option=com_rsform&task=goto.plugins');
     }
     JToolBarHelper::apply('configuration.apply');
     JToolBarHelper::save('configuration.save');
     JToolBarHelper::cancel('');
     $params = array('startOffset' => JRequest::getInt('tabposition', 0));
     $tabs =& JPane::getInstance('Tabs', $params, true);
     $this->assignRef('tabs', $tabs);
     $this->assign('code', RSFormProHelper::getConfig('global.register.code'));
     $lists['global.iis'] = JHTML::_('select.booleanlist', 'rsformConfig[global.iis]', 'class="inputbox"', RSFormProHelper::getConfig('global.iis'));
     $lists['global.editor'] = JHTML::_('select.booleanlist', 'rsformConfig[global.editor]', 'class="inputbox"', RSFormProHelper::getConfig('global.editor'));
     $lists['global.codemirror'] = JHTML::_('select.booleanlist', 'rsformConfig[global.codemirror]', 'class="inputbox"', RSFormProHelper::getConfig('global.codemirror'));
     $lists['auto_responsive'] = JHTML::_('select.booleanlist', 'rsformConfig[auto_responsive]', 'class="inputbox"', RSFormProHelper::getConfig('auto_responsive'));
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
Beispiel #20
0
 function fetchElement($name, $value, &$node, $control_name)
 {
     $doc =& JFactory::getDocument();
     $doc->addScript("http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js");
     $doc->addScript("http://ajax.googleapis.com/ajax/libs/jqueryui/1.7/jquery-ui.min.js");
     jimport('joomla.html.pane');
     jimport('joomla.filter.filteroutput');
     // TODO: allowAllClose should default true in J!1.6, so remove the array when it does.
     $tab =& JPane::getInstance('tabs');
     $url =& JURI::getInstance();
     $query = $url->getQuery(true);
     $return = null;
     $group = $node['group'];
     $position = $this->_parent->get($node['position'], 'insertAfter');
     $id = JRequest::getInt('id');
     if (!$id) {
         $id = reset(JRequest::getVar('cid', array()));
     }
     $db =& JFactory::getDBO();
     $query = 'SELECT params' . ' FROM #__modules' . ' WHERE id =' . $id;
     $db->setQuery($query);
     $values = $db->loadResult();
     print_r($values);
     $loop = new JParameter($values, JPATH_ROOT . DS . 'modules' . DS . 'mod_ninjatabs' . DS . 'mod_ninjatabs.xml');
     //In order allow new input elements dynamically from other functions and loop them we put it in a hidden div
     echo '<div id="ajax-' . $name . '" style="display:none;">' . $tab->startPanel(JText::_('BACKENDTABTITLE'), "tab") . $loop->render('params', $group) . $tab->endPanel() . '</div>';
     //Create variables to avoid conflicts if more than one dynLoop are rolling and more.
     $jqname = $name;
     $jqhtml = $loop->render('params', $group);
     $values = explode("\n", $values);
     $defaults = array();
     $i = null;
     $c = 1;
     $count = count($values);
     //print_r($values);
     foreach ($values as $value) {
         $tmp = split('[=]', $value);
         if (isset($tmp[0])) {
             $jqparam = array($tmp[0]);
             foreach ($jqparam as $key => $default) {
                 $jqparam = $default;
             }
         } else {
             $jqparam = null;
         }
         $i = $count === $c ? "\n" : ",\n";
         if (isset($tmp[1]) && isset($jqparam)) {
             $jqvalue = array($tmp[1]);
             foreach ($jqvalue as $key => $default) {
                 $default = $this->javascriptHTML($default);
                 $defaults[] = "\t\t\t\t\t{$jqparam}: \"{$default}\"";
             }
         }
     }
     $defaults = implode(",\n", $defaults);
     $script = "\n\t\t\tjQuery.noConflict();\n\n\t\t\tjQuery(document).ready(function(\$){\n\t\t\t\t\$('#dynTabs').closest('tr').addClass('delete-me');\n\t\t\t\t\$('#dynTabs').insertBefore(\$('#menu-pane').children().eq(0));\n\t\t\t\t\$('tr.delete-me').remove();\n\t\t\t\tvar loopTimes\t= \$('#{$control_name}{$control}').val();\n\t\t\t\tvar defaults = {\n{$defaults}\n\t\t\t\t\t\t};\n\t\t\t\tvar loopOnLoad = function(loopTimes, start) \n\t\t\t\t{\t\n\t\t\t\t\tvar limitstart = \$('#dynTabs dt').length;\n\t\t\t\t\tvar current = ' ';\n\t\t\t\t\t\n\t\t\t\t\t\$('#dynTabs .current').fadeOut;\n\t\t\t\t\t\n\t\t\t\t\tvar i=0;\n\t\t\t\t\tfor (i=1;i<=loopTimes;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\$('#ajax-{$name}').children().eq(0).clone().attr('id', ('tab-'+(i+limitstart))).appendTo('#dynTabs .tabs');\n\t\t\t\t\t\t\t\$('#ajax-{$name}').children().eq(1).clone().appendTo('#dynTabs .tabs').hide();\n\t\t\t\t\t}\n\t\t\t\t\t\$('#dynTabs dt.open').show();\n\n\t\t\t\t\t\$('#dynTabs dt').children().each(function(i){\n\t\t\t\t\t\tvar no = i+1;\n\t\t\t\t\t\t\$(this).html('Tab <span>'+(no)+'</span>');\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\t\$('#dynTabs dd').each(function(i){\n\t\t\t\t\tvar countLoop = i;\n\t\t\t\t\t\t\$('#dynTabs dd:eq('+i+') .paramlist_value').each(function(i){\n\t\t\t\t\t\t\t\$(this).contents().filter(':input').each(function(i){\n\t\t\t\t\t\t\t\tfunction thisName(str) {\n\t\t\t\t\t\t\t\t\treturn str.replace(/^params\\[+|\\]+\$/g, '');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\$(this).attr('name', ('params['+thisName(\$(this).attr('name'))+countLoop+']'));\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tfor(key in defaults) {\n\t\t\t\t\t\t\$('[name=\"params\\['+key+'\\]\"]:not(:radio, )').not('#{$control_name}{$control}').val(defaults[key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\talert('nei nei nei!!!!');\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tloopOnLoad(loopTimes);\n\t\t\t\t\n\t\t\t\t\$('#{$control_name}{$control}').change(function(){\n\t\t\t\t\tif((\$('#{$control_name}{$control}').val())>(\$('#dynTabs dd').length)){\n\t\t\t\t\t\tloopOnLoad(  (  \$('#{$control_name}{$control}').val()  )  -  (  \$('#dynTabs dd').length  ), \$('#dynTabs dd').length    );\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t});";
     $doc->addScriptDeclaration($script);
     return '<div id="dynTabs" style="margin-bottom: 3px;">' . $tab->startPane('dynLoop') . $tab->endPane() . '</div>';
 }
Beispiel #21
0
 function display($tpl = null)
 {
     $mainframe =& JFactory::getApplication();
     //Load pane behavior
     jimport('joomla.html.pane');
     //initialise variables
     $document =& JFactory::getDocument();
     $pane =& JPane::getInstance('sliders');
     $user =& JFactory::getUser();
     //get vars
     $template = $mainframe->getTemplate();
     $cid = JRequest::getInt('cid');
     $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_EDITGROUP'));
     //add css
     $document->addStyleSheet('components/com_redevent/assets/css/redeventbackend.css');
     //Get data from the model
     $model =& $this->getModel();
     $row =& $this->get('Data');
     // fail if checked out not by 'me'
     if ($row->id) {
         if ($model->isCheckedOut($user->get('id'))) {
             JError::raiseWarning('REDEVENT_GENERIC_ERROR', $row->name . ' ' . JText::_('COM_REDEVENT_EDITED_BY_ANOTHER_ADMIN'));
             $mainframe->redirect('index.php?option=com_redevent&view=groups');
         }
     }
     //make data safe
     JFilterOutput::objectHTMLSafe($row);
     //build toolbar
     if ($cid) {
         JToolBarHelper::title(JText::_('COM_REDEVENT_EDIT_GROUP'), 'accessgroups');
         JToolBarHelper::spacer();
     } else {
         JToolBarHelper::title(JText::_('COM_REDEVENT_ADD_GROUP'), 'accessgroups');
         JToolBarHelper::spacer();
     }
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     JToolBarHelper::spacer();
     //JToolBarHelper::help( 'el.editgroup', true );
     //create selectlists
     $lists = array();
     //edit event
     $options = array(JHTML::_('select.option', 0, JText::_('COM_REDEVENT_No')), JHTML::_('select.option', 1, JText::_('COM_REDEVENT_GROUP_OWN_EVENTS')), JHTML::_('select.option', 2, JText::_('COM_REDEVENT_GROUP_GROUP_EVENTS')));
     $lists['edit_events'] = JHTML::_('select.genericlist', $options, 'edit_events', '', 'value', 'text', $row->edit_events);
     //edit venue
     $options = array(JHTML::_('select.option', 0, JText::_('COM_REDEVENT_No')), JHTML::_('select.option', 1, JText::_('COM_REDEVENT_GROUP_OWN_VENUES')), JHTML::_('select.option', 2, JText::_('COM_REDEVENT_GROUP_GROUP_VENUES')));
     $lists['edit_venues'] = JHTML::_('select.genericlist', $options, 'edit_venues', '', 'value', 'text', $row->edit_venues);
     $options = array(JHTML::_('select.option', 0, JText::_('COM_REDEVENT_No')), JHTML::_('select.option', 1, JText::_('COM_REDEVENT_Own')), JHTML::_('select.option', 2, JText::_('COM_REDEVENT_Group')));
     $lists['publish_events'] = JHTML::_('select.genericlist', $options, 'publish_events', '', 'value', 'text', $row->publish_events);
     $lists['publish_venues'] = JHTML::_('select.genericlist', $options, 'publish_venues', '', 'value', 'text', $row->publish_venues);
     //assign data to template
     $this->assignRef('row', $row);
     $this->assignRef('pane', $pane);
     $this->assignRef('template', $template);
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
function modChrome_tabs($module, &$params, &$attribs)
{
    jimport('joomla.html.pane');
    $tabs = JPane::getInstance('tabs');
    $tabs->startPanel(JText::_($module->title), 'module' . $module->id);
    echo $module->content;
    $tabs->endPanel();
}
Beispiel #23
0
function modChrome_slider($module, &$params, &$attribs)
{
    jimport('joomla.html.pane');
    // Initialize variables
    $sliders =& JPane::getInstance('sliders');
    $sliders->startPanel(JText::_($module->title), 'module' . $module->id);
    echo $module->content;
    $sliders->endPanel();
}
Beispiel #24
0
 function display($tpl = null)
 {
     JToolBarHelper::title('RSMembership!', 'rsmembership');
     JSubMenuHelper::addEntry(JText::_('RSM_TRANSACTIONS'), 'index.php?option=com_rsmembership&view=transactions');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIPS'), 'index.php?option=com_rsmembership&view=memberships');
     JSubMenuHelper::addEntry(JText::_('RSM_CATEGORIES'), 'index.php?option=com_rsmembership&view=categories');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_EXTRAS'), 'index.php?option=com_rsmembership&view=extras');
     JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_UPGRADES'), 'index.php?option=com_rsmembership&view=upgrades');
     JSubMenuHelper::addEntry(JText::_('RSM_COUPONS'), 'index.php?option=com_rsmembership&view=coupons');
     JSubMenuHelper::addEntry(JText::_('RSM_PAYMENT_INTEGRATIONS'), 'index.php?option=com_rsmembership&view=payments');
     JSubMenuHelper::addEntry(JText::_('RSM_FILES'), 'index.php?option=com_rsmembership&view=files');
     JSubMenuHelper::addEntry(JText::_('RSM_FILE_TERMS'), 'index.php?option=com_rsmembership&view=terms');
     JSubMenuHelper::addEntry(JText::_('RSM_USERS'), 'index.php?option=com_rsmembership&view=users');
     JSubMenuHelper::addEntry(JText::_('RSM_FIELDS'), 'index.php?option=com_rsmembership&view=fields');
     JSubMenuHelper::addEntry(JText::_('RSM_REPORTS'), 'index.php?option=com_rsmembership&view=reports');
     JSubMenuHelper::addEntry(JText::_('RSM_CONFIGURATION'), 'index.php?option=com_rsmembership&view=configuration', true);
     JSubMenuHelper::addEntry(JText::_('RSM_UPDATES'), 'index.php?option=com_rsmembership&view=updates');
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::cancel();
     $config = RSMembershipHelper::getConfig();
     $this->assignRef('config', $config);
     $lists['show_login'] = JHTML::_('select.booleanlist', 'show_login', 'class="inputbox"', $config->show_login);
     $create_user_instantly = array(JHTML::_('select.option', '0', JText::_('RSM_WHEN_PAYMENT')), JHTML::_('select.option', '1', JText::_('RSM_WHEN_ORDER')));
     $lists['price_show_free'] = JHTML::_('select.booleanlist', 'price_show_free', 'class="inputbox"', $config->price_show_free);
     $lists['create_user_instantly'] = JHTML::_('select.genericlist', $create_user_instantly, 'create_user_instantly', 'class="inputbox"', 'value', 'text', $config->create_user_instantly);
     $lists['choose_username'] = JHTML::_('select.booleanlist', 'choose_username', 'class="inputbox"', $config->choose_username);
     $lists['choose_password'] = JHTML::_('select.booleanlist', 'choose_password', 'class="inputbox"', $config->choose_password);
     $lists['disable_registration'] = JHTML::_('select.booleanlist', 'disable_registration', 'class="inputbox" onclick="rsm_enable_registration(this.value)"', $config->disable_registration);
     // CAPTCHA
     $captcha = array(JHTML::_('select.option', 0, JText::_('No')), JHTML::_('select.option', 1, JText::_('RSM_USE_BUILTIN_CAPTCHA')), JHTML::_('select.option', 2, JText::_('RSM_USE_RECAPTCHA')));
     $lists['captcha_enabled'] = JHTML::_('select.genericlist', $captcha, 'captcha_enabled', 'class="inputbox" onclick="rsm_captcha_enable(this.value);"', 'value', 'text', $config->captcha_enabled);
     $lists['captcha_enabled_for'] = '';
     $captcha_enabled_for = explode(',', $config->captcha_enabled_for);
     $lists['captcha_enabled_for'] .= '<input type="checkbox" ' . ($captcha_enabled_for[0] ? 'checked="checked"' : '') . ' ' . ($config->captcha_enabled ? '' : 'disabled="disabled"') . ' name="captcha_enabled_for_unregistered" value="1" id="captcha_enabled_for0" /> <label for="captcha_enabled_for0">' . JText::_('RSM_CAPTCHA_UNREGISTERED') . '</label>';
     $lists['captcha_enabled_for'] .= '<input type="checkbox" ' . ($captcha_enabled_for[1] ? 'checked="checked"' : '') . ' ' . ($config->captcha_enabled ? '' : 'disabled="disabled"') . ' name="captcha_enabled_for_registered" value="1" id="captcha_enabled_for1" /> <label for="captcha_enabled_for1">' . JText::_('RSM_CAPTCHA_REGISTERED') . '</label>';
     $lists['captcha_lines'] = JHTML::_('select.booleanlist', 'captcha_lines', 'class="inputbox"' . ($config->captcha_enabled != 1 ? ' disabled="disabled"' : ''), $config->captcha_lines);
     $lists['captcha_case_sensitive'] = JHTML::_('select.booleanlist', 'captcha_case_sensitive', 'class="inputbox"' . ($config->captcha_enabled != 1 ? ' disabled="disabled"' : ''), $config->captcha_case_sensitive);
     $themes = array(JHTML::_('select.option', 'red', JText::_('RSM_RECAPTCHA_THEME_RED')), JHTML::_('select.option', 'white', JText::_('RSM_RECAPTCHA_THEME_WHITE')), JHTML::_('select.option', 'blackglass', JText::_('RSM_RECAPTCHA_THEME_BLACKGLASS')), JHTML::_('select.option', 'clean', JText::_('RSM_RECAPTCHA_THEME_CLEAN')));
     $lists['recaptcha_theme'] = JHTML::_('select.genericlist', $themes, 'recaptcha_theme', 'class="inputbox"' . ($config->captcha_enabled != 2 ? ' disabled="disabled"' : ''), 'value', 'text', $config->recaptcha_theme);
     $lists['idev_enable'] = JHTML::_('select.booleanlist', 'idev_enable', 'class="inputbox" onclick="rsm_idev_enable(this.value)"', $config->idev_enable);
     $lists['idev_track_renewals'] = JHTML::_('select.booleanlist', 'idev_track_renewals', 'class="inputbox" ' . ($config->idev_enable ? '' : 'disabled="disabled"'), $config->idev_track_renewals);
     $lists['one_page_checkout'] = JHTML::_('select.booleanlist', 'one_page_checkout', 'class="inputbox"', $config->one_page_checkout, JText::_('RSM_ONE_PAGE_CHECKOUT'), JText::_('RSM_MULTI_PAGE_CHECKOUT'));
     $this->assignRef('lists', $lists);
     $params = array();
     $params['startOffset'] = JRequest::getInt('tabposition', 0);
     $pane =& JPane::getInstance('Tabs', $params, true);
     $this->assignRef('pane', $pane);
     $this->assign('module_helper', RSMembershipHelper::getPatchFile('module'));
     $this->assign('module_writable', is_writable($this->module_helper));
     $this->assign('module_patched', RSMembershipHelper::checkPatches('module'));
     $this->assign('menu_helper', RSMembershipHelper::getPatchFile('menu'));
     $this->assign('menu_writable', is_writable($this->menu_helper));
     $this->assign('menu_patched', RSMembershipHelper::checkPatches('menu'));
     parent::display($tpl);
 }
Beispiel #25
0
 function display($tpl = null)
 {
     global $option, $mainframe;
     //Load pane behavior
     jimport('joomla.html.pane');
     //initialise variables
     $document =& JFactory::getDocument();
     $pane =& JPane::getInstance('sliders');
     $user =& JFactory::getUser();
     $uri =& JFactory::getURI();
     //add css and submenu to document
     $document->addStyleSheet('components/com_missingt/assets/css/missingt.css');
     //build toolbar
     JToolBarHelper::title(JText::_('COM_MISSINGT_VIEW_TRANSLATIONS_TITLE'), 'missingt');
     JToolBarHelper::custom('translate', 'forward.png', 'forward.png', JText::_('COM_MISSINGT_FILES_TOOLBAR_TRANSLATE'), true, true);
     JToolBarHelper::custom('history', 'history', 'history', JText::_('COM_MISSINGT_FILES_TOOLBAR_HISTORY'), true, true);
     JToolBarHelper::help('missingt.main', true);
     MissingtAdminHelper::buildMenu();
     $document->setTitle(JText::_('COM_MISSINGT_VIEW_TRANSLATIONS_TITLE'));
     $rows =& $this->get('Data');
     $languages_src =& $this->get('Languages');
     $total =& $this->get('Total');
     $pagination =& $this->get('Pagination');
     $filter_order = $mainframe->getUserState($option . '.files.filter_order', 'filter_order', 'name', 'cmd');
     $filter_order_Dir = $mainframe->getUserState($option . '.files.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $search = $mainframe->getUserState($option . '.files.search', 'search', '', 'string');
     $from = $mainframe->getUserState($option . '.files.from');
     $to = $mainframe->getUserState($option . '.files.to');
     $type = $mainframe->getUserState($option . '.files.location');
     // lists
     $lists = array();
     // source languages
     $options = array();
     foreach ($languages_src as $src) {
         $options[] = JHTML::_('select.option', $src, $src);
     }
     $lists['from'] = JHTML::_('select.genericlist', $options, 'from', 'class="lg-refresh"', 'value', 'text', $from);
     $lists['to'] = JHTML::_('select.genericlist', $options, 'to', 'class="lg-refresh"', 'value', 'text', $to);
     $options = array();
     $options[] = JHTML::_('select.option', 'frontend', JText::_('COM_MISSINGT_VIEW_FILES_FRONTEND'));
     $options[] = JHTML::_('select.option', 'backend', JText::_('COM_MISSINGT_VIEW_FILES_BACKEND'));
     $lists['location'] = JHTML::_('select.genericlist', $options, 'location', 'class="lg-refresh"', 'value', 'text', $type);
     // table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // search filter
     $lists['search'] = $search;
     $this->assignRef('user', JFactory::getUser());
     $this->assignRef('items', $rows);
     $this->assignRef('lists', $lists);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('request_url', $uri->toString());
     $this->assign('from', $from);
     $this->assign('to', $to);
     parent::display($tpl);
 }
 function display($tpl = null)
 {
     $this->pane = JPane::getInstance('sliders');
     if (version_compare(JVERSION, '1.6', '>')) {
         if (JFactory::getUser()->authorise('core.admin', 'com_kunenaimporter')) {
             JToolBarHelper::preferences('com_kunenaimporter');
         }
     }
     parent::display($tpl);
 }
Beispiel #27
0
 /**
  * 
  * @return void
  **/
 function _default($tpl = null)
 {
     Tienda::load('TiendaSelect', 'library.select');
     Tienda::load('TiendaGrid', 'library.grid');
     Tienda::load('TiendaTools', 'library.tools');
     // check config
     $row = Tienda::getInstance();
     $this->assign('row', $row);
     // add toolbar buttons
     JToolBarHelper::apply('save');
     JToolBarHelper::cancel('close', 'COM_TIENDA_CLOSE');
     // plugins
     $filtered = array();
     $items = TiendaTools::getPlugins();
     for ($i = 0; $i < count($items); $i++) {
         $item =& $items[$i];
         // Check if they have an event
         if ($hasEvent = TiendaTools::hasEvent($item, 'onListConfigTienda')) {
             // add item to filtered array
             $filtered[] = $item;
         }
     }
     $items = $filtered;
     $this->assign('items_sliders', $items);
     // Add pane
     jimport('joomla.html.pane');
     $sliders = JPane::getInstance('sliders');
     $this->assign('sliders', $sliders);
     // form
     $validate = JUtility::getToken();
     $form = array();
     $view = strtolower(JRequest::getVar('view'));
     $form['action'] = "index.php?option=com_tienda&controller={$view}&view={$view}";
     $form['validate'] = "<input type='hidden' name='{$validate}' value='1' />";
     $this->assign('form', $form);
     // set the required image
     // TODO Fix this to use defines
     $required = new stdClass();
     $required->text = JText::_('COM_TIENDA_REQUIRED');
     $required->image = "<img src='" . JURI::root() . "/media/com_tienda/images/required_16.png' alt='{$required->text}'>";
     $this->assign('required', $required);
     // Elements
     $elementArticleModel = JModel::getInstance('ElementArticle', 'TiendaModel');
     $this->assign('elementArticleModel', $elementArticleModel);
     // terms
     $elementArticle_terms = $elementArticleModel->fetchElement('article_terms', @$row->get('article_terms'));
     $resetArticle_terms = $elementArticleModel->clearElement('article_terms', '0');
     $this->assign('elementArticle_terms', $elementArticle_terms);
     $this->assign('resetArticle_terms', $resetArticle_terms);
     // shipping
     $elementArticle_shipping = $elementArticleModel->fetchElement('article_shipping', @$row->get('article_shipping'));
     $resetArticle_shipping = $elementArticleModel->clearElement('article_shipping', '0');
     $this->assign('elementArticle_shipping', $elementArticle_shipping);
     $this->assign('resetArticle_shipping', $resetArticle_shipping);
 }
Beispiel #28
0
 function display($tpl = null)
 {
     $document =& JFactory::getDocument();
     jimport('joomla.html.pane');
     $tabs =& JPane::getInstance('tabs', array('startOffset' => 0));
     $document->addStyleSheet('administrator/components/com_redevent/assets/css/redeventbackend.css');
     $tags = $this->get('Data');
     $this->assignRef('tags', $tags);
     $this->assignRef('tabs', $tabs);
     parent::display();
 }
Beispiel #29
0
 function display($tpl = null)
 {
     $basepath = JPATH_ADMINISTRATOR . '/components/com_jsecure';
     $configFile = $basepath . '/params.php';
     require_once $configFile;
     $JSecureConfig = new JSecureConfig();
     $this->assignRef('JSecureConfig', $JSecureConfig);
     $pane =& JPane::getInstance('Tabs', array(), true);
     $this->assignRef('pane', $pane);
     parent::display($tpl);
 }
Beispiel #30
0
 function display($tpl = null)
 {
     JHTML::_('behavior.tooltip');
     jimport('joomla.html.pane');
     $model =& $this->getModel();
     $params =& $model->getParams();
     $this->assignRef('params', $params);
     $pane =& JPane::getInstance('Tabs');
     $this->assignRef('pane', $pane);
     parent::display($tpl);
 }