• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP JPane类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中JPane的典型用法代码示例。如果您正苦于以下问题:PHP JPane类的具体用法?PHP JPane怎么用?PHP JPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了JPane类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: display

 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);
 }
开发者ID:atikahmed,项目名称:joomla-probid,代码行数:60,代码来源:view.html.php


示例2: start

 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;
 }
开发者ID:utopszkij,项目名称:lmp,代码行数:25,代码来源:acytabs.php


示例3: display

 /**
  * 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);
 }
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:33,代码来源:view.html.php


示例4: display

 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);
 }
开发者ID:jaanusnurmoja,项目名称:redjoomla,代码行数:30,代码来源:view.html.php


示例5: renderForm

 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;
 }
开发者ID:AxelFG,项目名称:ckbran-inf,代码行数:35,代码来源:formhelper.php


示例6: display

 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);
 }
开发者ID:julienV,项目名称:testrepo,代码行数:32,代码来源:view.html.php


示例7: display

 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);
 }
开发者ID:janssit,项目名称:www.reliancelaw.be,代码行数:32,代码来源:html.php


示例8: display

 /**
  *  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();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:30,代码来源:view.html.php


示例9: Joom_ShowMenu_HTML

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 
}
开发者ID:planetangel,项目名称:Planet-Angel-Website,代码行数:60,代码来源:admin.joomgallery.html.php


示例10: display

 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);
 }
开发者ID:plexicloud,项目名称:Plexicloud-Pleximedia,代码行数:35,代码来源:view.html.php


示例11: display

 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);
 }
开发者ID:Gskflute,项目名称:joomla25,代码行数:28,代码来源:view.html.php


示例12: display

 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);
 }
开发者ID:renekreijveld,项目名称:SimpleLists,代码行数:26,代码来源:view.html.php


示例13: display

 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);
 }
开发者ID:Simarpreet05,项目名称:joomla,代码行数:35,代码来源:view.html.php


示例14: display

 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);
 }
开发者ID:alphashuro,项目名称:audeprac,代码行数:26,代码来源:view.html.php


示例15: start

 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;
 }
开发者ID:sumithMadhushan,项目名称:joomla-project,代码行数:27,代码来源:acysliders.php


示例16: display

 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);
 }
开发者ID:jtresca,项目名称:nysurveyor,代码行数:27,代码来源:view.html.php


示例17: fetchElement

 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>';
 }
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:59,代码来源:dynLoop.php


示例18: modChrome_tabs

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();
}
开发者ID:JSWebdesign,项目名称:intranet-platform,代码行数:8,代码来源:modules.php


示例19: modChrome_slider

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();
}
开发者ID:Arturogcalleja,项目名称:herbolario,代码行数:9,代码来源:modules.php


示例20: display

 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);
 }
开发者ID:julienV,项目名称:the-missing-T,代码行数:56,代码来源:view.html.php



注:本文中的JPane类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP JParameter类代码示例发布时间:2022-05-23
下一篇:
PHP JPagination类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap