本文整理汇总了PHP中JPane::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP JPane::getInstance方法的具体用法?PHP JPane::getInstance怎么用?PHP JPane::getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JPane
的用法示例。
在下文中一共展示了JPane::getInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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();
}
示例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
}
示例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);
}
示例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);
}
示例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&view=files&tmpl=component&type=picture' ;
//$modal['image'] .= ($this->item->image) ? '&folder=/'.dirname($this->item->image).'&current='.$this->item->image : '&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);
}
示例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);
}
示例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);
}
示例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;
}