當前位置: 首頁>>代碼示例>>PHP>>正文


PHP NNParameters::getParameters方法代碼示例

本文整理匯總了PHP中NNParameters::getParameters方法的典型用法代碼示例。如果您正苦於以下問題:PHP NNParameters::getParameters方法的具體用法?PHP NNParameters::getParameters怎麽用?PHP NNParameters::getParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在NNParameters的用法示例。


在下文中一共展示了NNParameters::getParameters方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onDisplay

 /**
  * Display the button
  *
  * @return array A two element array of ( imageName, textToInsert )
  */
 function onDisplay($name)
 {
     jimport('joomla.filesystem.file');
     // return if system plugin is not installed
     if (!JFile::exists(JPATH_PLUGINS . DS . 'system' . DS . $this->_name . DS . $this->_name . '.php')) {
         return;
     }
     // return if NoNumber! Elements plugin is not installed
     if (!JFile::exists(JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'nonumberelements.php')) {
         return;
     }
     // load the admin language file
     $lang =& JFactory::getLanguage();
     if ($lang->getTag() != 'en-GB') {
         // Loads English language file as fallback (for undefined stuff in other language file)
         $lang->load('plg_' . $this->_type . '_' . $this->_name, JPATH_ADMINISTRATOR, 'en-GB');
     }
     $lang->load('plg_' . $this->_type . '_' . $this->_name, JPATH_ADMINISTRATOR, null, 1);
     // Load system plugin parameters
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
     $parameters =& NNParameters::getParameters();
     $system_params = JPluginHelper::getPlugin('system', $this->_name);
     $params = $parameters->getParams($system_params->params, JPATH_PLUGINS . DS . 'system' . DS . $this->_name . DS . $this->_name . '.xml');
     // Include the Helper
     require_once JPATH_PLUGINS . DS . $this->_type . DS . $this->_name . DS . 'helper.php';
     $class = get_class($this) . 'Helper';
     $this->helper = new $class($params);
     return $this->helper->render($name);
 }
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:34,代碼來源:tabber.php

示例2: getPluginParamValues

 function getPluginParamValues($name, $type = 'system')
 {
     jimport('joomla.plugin.plugin');
     $plugin = JPluginHelper::getPlugin($type, $name);
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
     $parameters =& NNParameters::getParameters();
     return $parameters->getParams($plugin->params, JPATH_PLUGINS . DS . $type . DS . $name . DS . $name . '.xml');
 }
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:8,代碼來源:articlesanywhere.inc.php

示例3: getConfig

 /**
  * Function that gets the config settings
  *
  * @return	Object
  */
 protected function getConfig()
 {
     if (!isset($this->config)) {
         require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
         $parameters =& NNParameters::getParameters();
         $config = JComponentHelper::getParams('com_advancedmodules');
         $this->config = $parameters->getParams($config->toObject(), JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'config.xml');
     }
     return $this->config;
 }
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:15,代碼來源:view.html.php

示例4: onAfterRoute

 function onAfterRoute()
 {
     $this->_pass = 0;
     // return if disabled via url
     // return if current page is raw format
     // return if current page is a joomfishplus page
     if (JRequest::getCmd('disable_modalizer') || JRequest::getCmd('format') == 'raw' || JRequest::getCmd('option') == 'com_joomfishplus') {
         return;
     }
     // load the admin language file
     $lang =& JFactory::getLanguage();
     if ($lang->getTag() != 'en-GB') {
         // Loads English language file as fallback (for undefined stuff in other language file)
         $lang->load('plg_' . $this->_type . '_' . $this->_name, JPATH_ADMINISTRATOR, 'en-GB');
     }
     $lang->load('plg_' . $this->_type . '_' . $this->_name, JPATH_ADMINISTRATOR, null, 1);
     $mainframe =& JFactory::getApplication();
     // return if NoNumber! Elements plugin is not installed
     jimport('joomla.filesystem.file');
     if (!JFile::exists(JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'nonumberelements.php')) {
         if ($mainframe->isAdmin() && JRequest::getCmd('option') !== 'com_login') {
             $msg = JText::_('MDL_NONUMBER_ELEMENTS_PLUGIN_NOT_INSTALLED');
             $mq = $mainframe->getMessageQueue();
             foreach ($mq as $m) {
                 if ($m['message'] == $msg) {
                     $msg = '';
                     break;
                 }
             }
             if ($msg) {
                 $mainframe->enqueueMessage($msg, 'error');
             }
         }
         return;
     }
     // return if current page is an administrator page (and not acymailing)
     if ($mainframe->isAdmin() && JRequest::getCmd('option') != 'com_acymailing') {
         return;
     }
     $this->_pass = 1;
     // Load plugin parameters
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
     $parameters =& NNParameters::getParameters();
     $params = $parameters->getParams($this->params->_raw, JPATH_PLUGINS . DS . $this->_type . DS . $this->_name . '.xml');
     // Include the Helper
     require_once JPATH_PLUGINS . DS . $this->_type . DS . $this->_name . DS . 'helper.php';
     $class = get_class($this) . 'Helper';
     $this->helper = new $class($params);
 }
開發者ID:sangkasi,項目名稱:joomla,代碼行數:49,代碼來源:modalizer.php

示例5: outputHTML

	function outputHTML( &$params, &$rows, &$client, &$page, &$lists )
	{
		$parameters =& NNParameters::getParameters();
		$system_params = $parameters->getPluginParamValues( 'modulesanywhere' );

		$tag = explode( ',', $system_params->module_tag );
		$tag = trim( $tag['0'] );
		$postag = explode( ',', $system_params->modulepos_tag );
		$postag = trim( $postag['0'] );

		JHTML::_( 'behavior.tooltip' );

		// Add scripts and styles
		$document =& JFactory::getDocument();
		$script = "
			function modulesanywhere_jInsertEditorText( id, modulepos ) {
				f = document.getElementById( 'adminForm' );
				if ( modulepos ) {
					str = '{".$postag." '+id+'}';
				} else {
					var style = f.style.options[f.style.selectedIndex].value.trim();
					var showtitle = f.showtitle.options[f.showtitle.selectedIndex].value.trim();

					str = '{".$tag." '+id;
					if ( style && style != '".$system_params->style."' ) {
						str += '|'+style;
					}
					if ( showtitle === '0' || showtitle === '1' ) {
						str += '|showtitle='+showtitle;
					}
					str += '}';
				}

				if ( f.div_enable.checked ) {
					var float = f.div_float.options[f.div_float.selectedIndex].value.trim();
					var params = new Array();
					if( f.div_width.value.trim() ) { params[params.length] = 'width:'+f.div_width.value.trim(); }
					if( f.div_height.value.trim() ) { params[params.length] = 'height:'+f.div_height.value.trim(); }
					if( float ) { params[params.length] = 'float:'+float; }
					if( f.div_class.value.trim() ) { params[params.length] = 'class:'+f.div_class.value.trim(); }
					str = ( '{div '+params.join('|') ).trim()+'}'+str.trim()+'{/div}';
				}

				window.parent.jInsertEditorText( str, '".JRequest::getVar( 'name' )."' );
				window.parent.SqueezeBox.close();
			}

			function toggleByCheckbox( id ) {
				el = document.getElementById( id );
				div = document.getElementById( id+'_div' );
				if ( el.checked ) {
					div.style.display = 'block';
				} else {
					div.style.display = 'none';
				}
			}
			window.addEvent('domready', function(){ toggleByCheckbox('div_enable'); });
		";
		$document->addScriptDeclaration( $script );
		$document->addStyleSheet( JURI::root( true ).'/plugins/system/nnframework/css/popup.css' );
		?>
	<div style="margin: 0;">
	<form action="" method="post" name="adminForm" id="adminForm">
	<fieldset>
		<div style="float: left">
			<h1><?php echo JText::_( 'MODULES_ANYWHERE' ); ?></h1>
		</div>
		<div style="float: right">
			<div class="button2-left">
				<div class="blank hasicon cancel">
					<a rel="" onclick="window.parent.SqueezeBox.close();" href="javascript://"
						title="<?php echo JText::_( 'JCANCEL' ) ?>"><?php echo JText::_( 'Cancel' ) ?></a>
				</div>
			</div>
		</div>
	</fieldset>

	<p><?php echo html_entity_decode( JText::_( 'MA_CLICK_ON_ONE_OF_THE_MODULES_LINKS' ), ENT_COMPAT, 'UTF-8' ); ?></p>

	<table class="adminform" cellspacing="2" style="width:auto;float:left;margin-right:10px;">
		<tr>
			<th>
				<?php echo JText::_( 'MA_MODULE_STYLE' ); ?>:
			</th>
			<td>
				<select name="style" class="inputbox">
					<?php
					$style = JRequest::getCmd( 'style' );
					if ( !$style ) {
						$style = $system_params->style;
					}
					?>
					<option <?php echo ( ( $style == 'none' ) ? 'selected="selected" value=""' : 'value="none"' ); ?>><?php echo JText::_( 'MA_NO_WRAPPING' ); ?></option>
					<option <?php echo ( ( $style == 'table' ) ? 'selected="selected" value=""' : 'value="table"' ); ?>><?php echo JText::_( 'MA_TABLE' ); ?></option>
					<option <?php echo ( ( $style == 'horz' ) ? 'selected="selected" value=""' : 'value="horz"' ); ?>><?php echo JText::_( 'MA_HORZ' ); ?></option>
					<option <?php echo ( ( $style == 'xhtml' ) ? 'selected="selected" value=""' : 'value="xhtml"' ); ?>><?php echo JText::_( 'MA_XHTML' ); ?></option>
					<option <?php echo ( ( $style == 'rounded' ) ? 'selected="selected" value=""' : 'value="rounded"' ); ?>><?php echo JText::_( 'MA_ROUNDED' ); ?></option>
				</select>
			</td>
		</tr>
//.........這裏部分代碼省略.........
開發者ID:srbsnkr,項目名稱:sellingonlinemadesimple,代碼行數:101,代碼來源:modulesanywhere.inc.php

示例6: getMenuItemParams

 function getMenuItemParams($id = 0)
 {
     $query = 'SELECT params' . ' FROM #__menu' . ' WHERE id = ' . (int) $id . ' LIMIT 1';
     $this->_db->setQuery($query);
     $params = $this->_db->loadResult();
     $parameters =& NNParameters::getParameters();
     return $parameters->getParams($params);
 }
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:8,代碼來源:assignments.php

示例7: render

 function render(&$params)
 {
     $option = JRequest::getCmd('option');
     $this->vars = array();
     jimport('joomla.filesystem.folder');
     jimport('joomla.filesystem.file');
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
     $parameters =& NNParameters::getParameters();
     $folder = dirname(__FILE__) . DS . 'components' . DS . $option;
     $comp_file = '';
     foreach (JFolder::files($folder, '.xml') as $filename) {
         $file = $folder . DS . $filename;
         $xml =& JFactory::getXMLParser('Simple');
         $xml->loadFile($file);
         if (isset($xml->document) && isset($xml->document->_children)) {
             $template = $parameters->getObjectFromXML($xml->document->_children);
             if (isset($template->params) && isset($template->params->required)) {
                 if (!is_object($template->params->required) || modAddToMenu::checkRequiredFields($template->params->required)) {
                     $template = $template->params;
                     $comp_file = JFile::stripExt($filename);
                     break;
                 }
             }
         }
     }
     if (!$comp_file) {
         return;
     }
     JHTML::_('behavior.modal');
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'functions.php';
     $this->functions =& NNFunctions::getFunctions();
     $mt_version = $this->functions->getJSVersion();
     $document =& JFactory::getDocument();
     $document->addScript(JURI::root(true) . '/administrator/modules/mod_addtomenu/addtomenu/js/script' . $mt_version . '.js');
     $document->addStyleSheet(JURI::root(true) . '/administrator/modules/mod_addtomenu/addtomenu/css/style.css');
     // set height for popup
     $popup_height = 320;
     if (isset($template->adjust_height)) {
         $popup_height += $template->adjust_height;
     }
     if (isset($template->extras) && is_object($template->extras) && isset($template->extras->extra)) {
         if (!is_array($template->extras->extra)) {
             $template->extras->extra = array($template->extras->extra);
         }
         $haselements = 0;
         // + heights of elements
         foreach ($template->extras->extra as $element) {
             if (isset($element->type)) {
                 $haselements = 1;
                 switch ($element->type) {
                     case 'radio':
                         // add height for every line
                         $popup_height += 8 + 16 * count($element['value']);
                         break;
                     case 'textarea':
                         $popup_height += 111;
                         break;
                     case 'hidden':
                     case 'toggler':
                         // no height
                         break;
                     default:
                         $popup_height += 24;
                         break;
                 }
             }
         }
         if ($haselements) {
             // + height of title
             $popup_height += 23;
         }
     }
     $link = 'index.php?nn_qp=1';
     $link .= '&folder=administrator.modules.mod_addtomenu.addtomenu';
     $link .= '&file=addtomenu.inc.php';
     $link .= '&comp=' . $comp_file;
     $uri =& JFactory::getURI();
     $url_query = $uri->getQuery(1);
     foreach ($url_query as $key => $val) {
         $this->vars[$key] = $val;
     }
     if (!isset($this->vars['option'])) {
         $this->vars['option'] = $option;
     }
     foreach ($this->vars as $key => $val) {
         if (is_array($val)) {
             $val = $val['0'];
         }
         $link .= '&vars[' . $key . ']=' . $val;
     }
     $text = JText::_($params->get('icon_text', 'ADD_TO_MENU'));
     $title = $text;
     $class = '';
     if ($params->get('display_link', 'both') == 'text') {
         $class = 'no_icon';
     } else {
         if ($params->get('display_link', 'both') == 'icon') {
             $text = '';
             $class = 'no_text';
         }
//.........這裏部分代碼省略.........
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:101,代碼來源:helper.php

示例8: edit

 /**
  * Compiles information to add or edit a module
  * @param string The current GET/POST option
  * @param integer The unique id of the record to edit
  */
 function edit()
 {
     // Initialize some variables
     $db =& JFactory::getDBO();
     $user =& JFactory::getUser();
     $client =& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));
     $module = JRequest::getVar('module', '', '', 'cmd');
     $id = JRequest::getVar('id', 0, 'method', 'int');
     $cid = JRequest::getVar('cid', array($id), 'method', 'array');
     JArrayHelper::toInteger($cid, array(0));
     $model =& $this->getModel('module');
     $model->setState('id', $cid['0']);
     $model->setState('clientId', $client->id);
     $lists = array();
     $row =& JTable::getInstance('module');
     // load the row from the db table
     $row->load((int) $cid['0']);
     // fail if checked out not by 'me'
     if ($row->isCheckedOut($user->get('id'))) {
         $this->setRedirect('index.php?option=com_advancedmodules&client=' . $client->id);
         return JError::raiseWarning(500, JText::sprintf('DESCBEINGEDITTED', JText::_('The module'), $row->title));
     }
     $row->content = htmlspecialchars($row->content, ENT_COMPAT, 'UTF-8');
     if ($cid['0']) {
         $row->checkout($user->get('id'));
     }
     // if a new record we must still prime the JTableModel object with a default
     // position and the order; also add an extra item to the order list to
     // place the 'new' record in last position if desired
     if ($cid['0'] == 0) {
         $row->position = 'left';
         $row->showtitle = true;
         $row->published = 1;
         //$row->ordering = $l;
         $row->module = $module;
     }
     if ($client->id == 1) {
         $where = 'client_id = 1';
         $lists['client_id'] = 1;
         $path = 'mod1_xml';
     } else {
         $where = 'client_id = 0';
         $lists['client_id'] = 0;
         $path = 'mod0_xml';
     }
     $query = 'SELECT position, ordering, showtitle, title' . ' FROM #__modules' . ' WHERE ' . $where . ' ORDER BY ordering';
     $db->setQuery($query);
     $orders = $db->loadObjectList();
     if ($db->getErrorNum()) {
         echo $db->stderr();
         return false;
     }
     $orders2 = array();
     $l = 0;
     $r = 0;
     for ($i = 0, $n = count($orders); $i < $n; $i++) {
         $ord = 0;
         if (array_key_exists($orders[$i]->position, $orders2)) {
             $ord = count(array_keys($orders2[$orders[$i]->position])) + 1;
         }
         $orders2[$orders[$i]->position][] = JHTML::_('select.option', $ord, $ord . '::' . htmlspecialchars($orders[$i]->title));
     }
     $color = 'FFFFFF';
     if ($client->id != 1) {
         $parameters =& NNParameters::getParameters();
         $config = JComponentHelper::getParams('com_advancedmodules');
         $config = $parameters->getParams($config->_raw, JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'config.xml');
         $advanced_params = new stdClass();
         $xmlfile = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'assignments.xml';
         if (!$cid['0']) {
             $lists['assignments'] = new JParameter('', $xmlfile);
             // hide if empty
             $lists['hideempty'] = JHTML::_('select.booleanlist', 'advancedparams[hideempty]', 'class="inputbox"', 0, 'yes', 'no', 'advancedparamshideempty');
             // tooltip
             $lists['tooltip'] = '<textarea class="text_area" rows="3" cols="40" name="advancedparams[tooltip]" id="advancedparamstooltip"></textarea>';
         } else {
             // advanced params
             $query = 'SELECT params' . ' FROM #__advancedmodules' . ' WHERE moduleid = ' . (int) $row->id;
             $db->setQuery($query);
             $advanced_params = $db->loadResult();
             if (!$advanced_params || strpos($advanced_params, 'assignto_') === false) {
                 $advanced_params = $this->updateParams($row->id, $advanced_params);
             }
             $lists['assignments'] = new JParameter($advanced_params, $xmlfile);
             $advanced_params = $parameters->getParams($advanced_params);
             // hide if empty
             $lists['hideempty'] = JHTML::_('select.booleanlist', 'advancedparams[hideempty]', 'class="inputbox"', isset($advanced_params->hideempty) ? $advanced_params->hideempty : 0, 'yes', 'no', 'advancedparamshideempty');
             // tooltip
             $lists['tooltip'] = '<textarea class="text_area" rows="3" cols="40" name="advancedparams[tooltip]" id="advancedparamstooltip">' . (isset($advanced_params->tooltip) ? $advanced_params->tooltip : '') . '</textarea>';
             if (isset($advanced_params->color)) {
                 $color = strtoupper(preg_replace('#[^a-z0-9]#si', '', $advanced_params->color));
             }
         }
         require_once JPATH_SITE . DS . 'plugins' . DS . 'system' . DS . 'nonumberelements' . DS . 'elements' . DS . 'colorpicker.php';
         $cp = new JElementColorPicker();
//.........這裏部分代碼省略.........
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:101,代碼來源:controller.php

示例9: outputHTML

    function outputHTML(&$params, &$rows, &$client, &$page, &$lists, $k2 = 0)
    {
        $mainframe =& JFactory::getApplication();
        $parameters =& NNParameters::getParameters();
        $system_params = $parameters->getPluginParamValues('articlesanywhere');
        JHTML::_('behavior.tooltip');
        $plugin_tag = explode(',', $system_params->article_tag);
        $plugin_tag = trim($plugin_tag['0']);
        $content_type = JRequest::getCmd('content_type', $params->content_type);
        if (!empty($_POST)) {
            foreach ($params as $key => $val) {
                if (array_key_exists($key, $_POST)) {
                    $params->{$key} = $_POST[$key];
                } else {
                    $params->{$key} = 0;
                }
            }
        }
        require_once JPATH_PLUGINS . '/system/nnframework/helpers/versions.php';
        $version = NoNumberVersions::getXMLVersion(null, null, null, 1);
        // Add scripts and styles
        $document =& JFactory::getDocument();
        $document->addStyleSheet(JURI::root(true) . '/plugins/system/nnframework/css/popup.css' . $version);
        $script = "\n\t\t\tfunction articlesanywhere_jInsertEditorText( id ) {\n\t\t\t\tvar f = document.getElementById( 'adminForm' );\n\t\t\t\tvar str = '';\n\n\t\t\t\tif ( f.data_title_enable.checked ) {\n\t\t\t\t\tstr += ' {title}';\n\t\t\t\t}\n\n\t\t\t\tif ( f.data_text_enable.checked ) {\n\t\t\t\t\tvar tag = f.data_text_type.options[f.data_text_type.selectedIndex].value.trim();\n\t\t\t\t\tvar text_length = parseInt( f.data_text_length.value.trim() );\n\t\t\t\t\tif ( text_length && text_length != 0 ) {\n\t\t\t\t\t\ttag += ':'+text_length;\n\t\t\t\t\t}\n\t\t\t\t\tif ( f.data_text_strip.checked ) {\n\t\t\t\t\t\ttag += ':strip';\n\t\t\t\t\t}\n\t\t\t\t\tstr += ' {'+tag+'}';\n\t\t\t\t}\n\n\t\t\t\tif ( f.data_readmore_enable.checked ) {\n\t\t\t\t\tvar tag = 'readmore';\n\t\t\t\t\tvar readmore_text = f.data_readmore_text.value.trim();\n\t\t\t\t\tvar readmore_class = f.data_readmore_class.value.trim();\n\t\t\t\t\tif ( readmore_text ) {\n\t\t\t\t\t\ttag += ':'+readmore_text;\n\t\t\t\t\t}\n\t\t\t\t\tif ( readmore_class && readmore_class != 'readon' ) {\n\t\t\t\t\t\tif ( !readmore_text ) {\n\t\t\t\t\t\t\ttag += ':';\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttag += '|'+readmore_class;\n\t\t\t\t\t}\n\t\t\t\t\tstr += ' {'+tag+'}';\n\t\t\t\t}\n\n\t\t\t\tif ( f.data_id_enable.checked ) {\n\t\t\t\t\tstr += ' {id}';\n\t\t\t\t}\n\n\t\t\t\tif ( f.div_enable.checked ) {\n\t\t\t\t\tvar float = f.div_float.options[f.div_float.selectedIndex].value.trim();\n\t\t\t\t\tvar params = new Array();\n\t\t\t\t\tif( f.div_width.value.trim() ) { params[params.length] = 'width:'+f.div_width.value.trim(); }\n\t\t\t\t\tif( f.div_height.value.trim() ) { params[params.length] = 'height:'+f.div_height.value.trim(); }\n\t\t\t\t\tif( float ) { params[params.length] = 'float:'+float; }\n\t\t\t\t\tif( f.div_class.value.trim() ) { params[params.length] = 'class:'+f.div_class.value.trim(); }\n\t\t\t\t\tstr = ( '{div '+params.join('|') ).trim()+'}'+str.trim()+'{/div}';\n\t\t\t\t}\n\n\t\t\t\tstr = '{" . $plugin_tag . " " . ($content_type == 'k2' ? 'k2:' : '') . "'+id+'}'+str.trim()+'{/" . $plugin_tag . "}';\n\n\t\t\t\twindow.parent.jInsertEditorText( str, '" . JRequest::getVar('name') . "' );\n\t\t\t\twindow.parent.SqueezeBox.close();\n\t\t\t}\n\n\t\t\tfunction toggleByCheckbox( id ) {\n\t\t\t\tel = document.getElementById( id );\n\t\t\t\tdiv = document.getElementById( id+'_div' );\n\t\t\t\tif ( el.checked ) {\n\t\t\t\t\tdiv.style.display = 'block';\n\t\t\t\t} else {\n\t\t\t\t\tdiv.style.display = 'none';\n\t\t\t\t}\n\t\t\t}\n\t\t\twindow.addEvent('domready', function(){ toggleByCheckbox('div_enable'); });\n\t\t";
        $document->addScriptDeclaration($script);
        ?>
	<div style="margin: 0;">
		<form action="" method="post" name="adminForm" id="adminForm">
			<fieldset>
				<div style="float: left">
					<h1><?php 
        echo JText::_('ARTICLES_ANYWHERE');
        ?>
</h1>
				</div>
				<div style="float: right">
					<div class="button2-left"><div class="blank hasicon cancel">
						<a rel="" onclick="window.parent.SqueezeBox.close();" href="javascript://" title="<?php 
        echo JText::_('Cancel');
        ?>
"><?php 
        echo JText::_('Cancel');
        ?>
</a>
					</div></div>
				</div>
			</fieldset>
			<p><?php 
        echo JText::_('AA_CLICK_ON_ONE_OF_THE_ARTICLE_LINKS');
        if ($mainframe->isAdmin()) {
            $link = JURI::base(true) . '/index.php?option=com_plugins&client=site&filter_type=system&search=articles%20anywhere';
            echo '<br />' . html_entity_decode(JText::sprintf('AA_MORE_SYNTAX_HELP', $link), ENT_COMPAT, 'UTF-8');
        }
        ?>
</p>
			<div style="clear:both;"></div>
			<table class="adminform" cellspacing="2" style="width:auto;float:left;margin-right:10px;">
				<tr>
					<th colspan="3">
						<label class="hasTip" title="<?php 
        echo JText::_('AA_TITLE_TAG') . '::' . JText::_('AA_TITLE_TAG_DESC');
        ?>
">
							<input type="checkbox" name="data_title_enable" id="data_title_enable" <?php 
        if ($params->data_title_enable) {
            echo 'checked="checked"';
        }
        ?>
 />
							<?php 
        echo JText::_('Title');
        ?>
						</label>
					</th>
				</tr>
				<tr>
					<th>
						<label class="hasTip" title="<?php 
        echo JText::_('AA_TEXT_TAG') . '::' . JText::_('AA_TEXT_TAG_DESC');
        ?>
">
							<input type="checkbox" name="data_text_enable" id="data_text_enable" <?php 
        if ($params->data_text_enable) {
            echo 'checked="checked"';
        }
        ?>
 />
						</label>
						<label class="hasTip" title="<?php 
        echo JText::_('AA_TEXT_TYPE') . '::' . JText::_('AA_TEXT_TYPE_DESC');
        ?>
">
							<select name="data_text_type" class="inputbox">
								<option value="text"<?php 
        if ($params->data_text_type == 'text') {
            echo 'selected="selected"';
        }
        ?>
>
									<?php 
//.........這裏部分代碼省略.........
開發者ID:andreassetiawanhartanto,項目名稱:PDKKI,代碼行數:101,代碼來源:articlesanywhere.inc.php

示例10: plgSystemAdvancedModulesPrepareModuleList

function plgSystemAdvancedModulesPrepareModuleList(&$modules)
{
    $mainframe =& JFactory::getApplication();
    $client = $mainframe->getClientId();
    if ($client == 0) {
        $db =& JFactory::getDBO();
        jimport('joomla.filesystem.file');
        require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
        $parameters =& NNParameters::getParameters();
        require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'assignments.php';
        $assignments = new NoNumberElementsAssignmentsHelper();
        $xmlfile_assignments = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'assignments.xml';
        $config = plgSystemAdvancedModulesConfig();
        // set params for all loaded modules first
        // and make it an associated array (array id = module id)
        $new_modules = array();
        foreach ($modules as $id => $module) {
            if (!isset($module->adv_params)) {
                $modarray = get_object_vars($module);
                if (!array_key_exists('adv_params', $modarray)) {
                    $modules[$id]->adv_params = 0;
                    continue;
                }
            }
            if (strpos($module->adv_params, 'assignto_menuitems=') === false) {
                $module->adv_params = plgSystemAdvancedModulesUpdateParams($module->id, $module->adv_params);
            }
            $module->adv_params = $parameters->getParams($module->adv_params, $xmlfile_assignments);
            $new_modules[$module->id] = $module;
        }
        $modules = $new_modules;
        unset($new_modules);
        foreach ($modules as $id => $module) {
            if ($module->adv_params === 0) {
                continue;
            }
            $extraparams = array();
            for ($i = 1; $i <= 5; $i++) {
                $var = 'extra' . $i;
                $extraparams[] = $var . '=' . (isset($module->adv_params->{$var}) ? $module->adv_params->{$var} : '');
            }
            if (!empty($extraparams)) {
                $module->params = implode("\n", $extraparams) . "\n" . $module->params;
            }
            $module->reverse = 0;
            // Check if module should mirror another modules assignment settings
            if ($module->published && $config->show_mirror_module) {
                $count = 0;
                while ($count++ < 10 && $module->adv_params->mirror_module) {
                    $mirror_moduleid = $module->adv_params->mirror_moduleid;
                    $module->reverse = $module->adv_params->mirror_module == 2;
                    $module->adv_params = null;
                    if ($mirror_moduleid && $mirror_moduleid != $id) {
                        if (isset($modules[$mirror_moduleid])) {
                            $module->adv_params = $modules[$mirror_moduleid]->adv_params;
                        } else {
                            $query = 'SELECT params' . ' FROM #__advancedmodules' . ' WHERE moduleid = ' . (int) $mirror_moduleid . ' LIMIT 1';
                            $db->setQuery($query);
                            $module->adv_params = $parameters->getParams($db->loadResult(), $xmlfile_assignments);
                        }
                    }
                }
            }
            if ($module->published) {
                $params = array();
                if ($module->adv_params->assignto_menuitems) {
                    $params['MenuItem'] = null;
                    $params['MenuItem']->assignment = $module->adv_params->assignto_menuitems;
                    $params['MenuItem']->selection = $module->adv_params->assignto_menuitems_selection;
                    $params['MenuItem']->params = null;
                    $params['MenuItem']->params->inc_children = $module->adv_params->assignto_menuitems_inc_children;
                    $params['MenuItem']->params->inc_noItemid = $module->adv_params->assignto_menuitems_inc_noitemid;
                }
                if ($config->show_assignto_secscats && $module->adv_params->assignto_secscats) {
                    $params['SecsCats'] = null;
                    $params['SecsCats']->assignment = $module->adv_params->assignto_secscats;
                    $params['SecsCats']->selection = $module->adv_params->assignto_secscats_selection;
                    $params['SecsCats']->params = null;
                    $incs = $module->adv_params->assignto_secscats_inc;
                    if (!(strpos($incs, '|') === false)) {
                        $incs = explode('|', $incs);
                    } else {
                        $incs = explode(',', $incs);
                    }
                    $params['SecsCats']->params->inc_sections = in_array('inc_secs', $incs);
                    $params['SecsCats']->params->inc_categories = in_array('inc_cats', $incs);
                    $params['SecsCats']->params->inc_articles = in_array('inc_arts', $incs);
                    $params['SecsCats']->params->inc_others = in_array('inc_others', $incs);
                }
                if ($config->show_assignto_articles && $module->adv_params->assignto_articles) {
                    $params['Articles'] = null;
                    $params['Articles']->assignment = $module->adv_params->assignto_articles;
                    $params['Articles']->selection = $module->adv_params->assignto_articles_selection;
                    $params['Articles']->params = null;
                    $params['Articles']->params->keywords = $module->adv_params->assignto_articles_keywords;
                }
                if ($config->show_assignto_k2cats && $module->adv_params->assignto_k2cats && JFile::exists(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_k2' . DS . 'admin.k2.php')) {
                    $params['Categories_K2'] = null;
                    $params['Categories_K2']->assignment = $module->adv_params->assignto_k2cats;
                    $params['Categories_K2']->selection = $module->adv_params->assignto_k2cats_selection;
//.........這裏部分代碼省略.........
開發者ID:bizanto,項目名稱:Hooked,代碼行數:101,代碼來源:advancedmodules.php

示例11: defined

defined('_JEXEC') or die('Restricted access');
$mainframe =& JFactory::getApplication();
$user =& JFactory::getUser();
if (!$mainframe->isSite() && $user->get('guest') || !$user->authorize('com_content', 'edit', 'content', 'all')) {
    JError::raiseError(403, JText::_("ALERTNOTAUTH"));
}
$vars = JRequest::getVar('vars');
$option = $vars['option'];
$comp_file = JRequest::getVar('comp');
$file = dirname(__FILE__) . DS . 'components' . DS . $option . DS . $comp_file . '.xml';
$template = '';
$xml =& JFactory::getXMLParser('Simple');
$xml->loadFile($file);
if (isset($xml->document) && isset($xml->document->_children)) {
    require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
    $parameters =& NNParameters::getParameters();
    $xml_template = $parameters->getObjectFromXML($xml->document->_children);
    if (isset($xml_template->params) && isset($xml_template->params->required)) {
        require_once dirname(__FILE__) . DS . 'helper.php';
        if (!is_object($xml_template->params->required) || modAddToMenu::checkRequiredFields($xml_template->params->required, $vars)) {
            $template = $xml_template->params;
        }
    }
}
if (!$template) {
    return;
}
$lang =& JFactory::getLanguage();
$lang->load('mod_addtomenu', JPATH_ADMINISTRATOR);
$lang->load('com_menus', JPATH_ADMINISTRATOR);
$lang->load($comp_file, JPATH_ADMINISTRATOR);
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:31,代碼來源:addtomenu.inc.php

示例12: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     $canDo = AdvancedModulesHelper::getActions($this->state->get('filter.category_id'), $this->item->id);
     $item = $this->get('Item');
     JToolBarHelper::title(JText::sprintf('AMM_MODULE_EDIT', JText::_($this->item->module)), 'module.png');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || $canDo->get('core.create'))) {
         JToolBarHelper::apply('module.apply');
         JToolBarHelper::save('module.save');
     }
     if (!$checkedOut && $canDo->get('core.create')) {
         if (version_compare(JVERSION, '1.7.0', 'l')) {
             JToolBarHelper::custom('module.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
         } else {
             JToolBarHelper::save2new('module.save2new');
         }
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         if (version_compare(JVERSION, '1.7.0', 'l')) {
             JToolBarHelper::custom('module.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
         } else {
             JToolBarHelper::save2copy('module.save2copy');
         }
     }
     if (empty($this->item->id)) {
         JToolBarHelper::cancel('module.cancel');
     } else {
         JToolBarHelper::cancel('module.cancel', 'JTOOLBAR_CLOSE');
     }
     if ($canDo->get('core.admin')) {
         require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
         $parameters =& NNParameters::getParameters();
         $config = JComponentHelper::getParams('com_advancedmodules');
         $config = $parameters->getParams($config->toObject(), JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'config.xml');
         if ($config->show_config_in_item) {
             JToolBarHelper::divider();
             JToolBarHelper::preferences('com_advancedmodules');
         }
     }
     // Get the help information for the menu item.
     $lang = JFactory::getLanguage();
     $help = $this->get('Help');
     if ($lang->hasKey($help->url)) {
         $debug = $lang->setDebug(false);
         $url = JText::_($help->url);
         $lang->setDebug($debug);
     } else {
         $url = null;
     }
     JToolBarHelper::divider();
     JToolBarHelper::help($help->key, false, $url);
 }
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:62,代碼來源:view.html.php

示例13: getAdvancedModules

 function getAdvancedModules($Itemid)
 {
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
     $parameters =& NNParameters::getParameters();
     $db =& JFactory::getDBO();
     $query = 'SELECT m.id, m.title, m.module, m.position, m.checked_out, m.access,' . ' am.params as adv_params,' . ' g.name AS groupname' . ' FROM #__modules AS m' . ' LEFT JOIN #__advancedmodules AS am ON am.moduleid = m.id' . ' LEFT JOIN #__groups AS g ON g.id = m.access' . ' WHERE m.published = 1' . ' AND m.client_id = 0' . ' GROUP BY m.id' . ' ORDER BY m.position, m.ordering, m.id';
     $db->setQuery($query);
     if (null === ($modules = $db->loadObjectList('id'))) {
         JError::raiseWarning('SOME_ERROR_CODE', JText::_('AMM_ERROR_LOADING_MODULES') . $db->getErrorMsg());
         return false;
     }
     require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'assignments.php';
     $assignments = new NoNumberElementsAssignmentsHelper();
     $assignments->_params->Itemid = $Itemid;
     $xmlfile = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'assignments.xml';
     $ordered = array();
     foreach ($modules as $id => $module) {
         $module->adv_params = $parameters->getParams($module->adv_params, $xmlfile);
         if ($module->adv_params->assignto_menuitems) {
             $params = null;
             $params->assignment = $module->adv_params->assignto_menuitems;
             $params->selection = $module->adv_params->assignto_menuitems_selection;
             $params->params = null;
             $params->params->inc_children = $module->adv_params->assignto_menuitems_inc_children;
             $params->params->inc_noItemid = $module->adv_params->assignto_menuitems_inc_noitemid;
             $assignments->initParams($params, 'MenuItem');
             $pass = $assignments->passMenuItem($params->params, $params->selection, $params->assignment);
             if (!$pass) {
                 continue;
             }
         }
         $ordered[] = $modules[$id];
     }
     unset($modules);
     return $ordered;
 }
開發者ID:bizanto,項目名稱:Hooked,代碼行數:36,代碼來源:helper.php

示例14: plgSystemAdvancedModulesPrepareModuleList

function plgSystemAdvancedModulesPrepareModuleList(&$modules)
{
    $mainframe =& JFactory::getApplication();
    $client = $mainframe->getClientId();
    if ($client == 0) {
        $db =& JFactory::getDBO();
        jimport('joomla.filesystem.file');
        require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'parameters.php';
        $parameters =& NNParameters::getParameters();
        require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'assignments.php';
        $assignments = new NoNumberElementsAssignmentsHelper();
        $xmlfile_assignments = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'assignments.xml';
        $config = plgSystemAdvancedModulesConfig();
        // set params for all loaded modules first
        // and make it an associated array (array id = module id)
        $new_modules = array();
        require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'models' . DS . 'module.php';
        $model = new AdvancedModulesModelModule();
        foreach ($modules as $id => $module) {
            if (!isset($module->adv_params)) {
                $module->adv_params = '';
            }
            $registry = new JRegistry();
            if (strpos($module->adv_params, '"assignto_menuitems"') === false) {
                $module->adv_params = $model->initAssignments($module->id, $module, $module->adv_params);
                $registry->loadArray($module->adv_params);
            } else {
                $registry->loadString($module->adv_params);
            }
            $module->adv_params = $registry->toObject();
            $module->adv_params = $parameters->getParams($module->adv_params, $xmlfile_assignments);
            $new_modules[$module->id] = $module;
        }
        $modules = $new_modules;
        unset($new_modules);
        foreach ($modules as $id => $module) {
            if ($module->adv_params === 0) {
                continue;
            }
            $extraparams = array();
            for ($i = 1; $i <= 5; $i++) {
                $var = 'extra' . $i;
                $extraparams[$var] = isset($module->adv_params->{$var}) ? $module->adv_params->{$var} : '';
            }
            if (!empty($extraparams)) {
                $registry = new JRegistry();
                $registry->loadString($module->params);
                $module->params = $registry->toArray();
                $module->params = array_merge($module->params, $extraparams);
                $registry = new JRegistry();
                $registry->loadArray($module->params);
                $module->params = $registry->toString();
            }
            $module->reverse = 0;
            // Check if module should mirror another modules assignment settings
            if ($module->published && $config->show_mirror_module) {
                $count = 0;
                while ($count++ < 10 && isset($module->adv_params->mirror_module) && $module->adv_params->mirror_module && isset($module->adv_params->mirror_moduleid) && $module->adv_params->mirror_moduleid) {
                    $mirror_moduleid = $module->adv_params->mirror_moduleid;
                    $module->reverse = $module->adv_params->mirror_module == 2;
                    if ($mirror_moduleid) {
                        if ($mirror_moduleid == $id) {
                            $empty = new stdClass();
                            $module->adv_params = $parameters->getParams($empty, $xmlfile_assignments);
                        } else {
                            if (isset($modules[$mirror_moduleid])) {
                                $module->adv_params = $modules[$mirror_moduleid]->adv_params;
                            } else {
                                $query = 'SELECT params' . ' FROM #__advancedmodules' . ' WHERE moduleid = ' . (int) $mirror_moduleid . ' LIMIT 1';
                                $db->setQuery($query);
                                $registry = new JRegistry();
                                $registry->loadString($db->loadResult());
                                $module->adv_params = $parameters->getParams($registry->toObject(), $xmlfile_assignments);
                            }
                        }
                    }
                }
            }
            if ($module->published) {
                $params = array();
                if ($module->adv_params->assignto_menuitems) {
                    $params['MenuItem'] = new stdClass();
                    $params['MenuItem']->assignment = $module->adv_params->assignto_menuitems;
                    $params['MenuItem']->selection = $module->adv_params->assignto_menuitems_selection;
                    $params['MenuItem']->params = new stdClass();
                    $params['MenuItem']->params->inc_children = $module->adv_params->assignto_menuitems_inc_children;
                    $params['MenuItem']->params->inc_noItemid = $module->adv_params->assignto_menuitems_inc_noitemid;
                }
                if ($config->show_assignto_homepage && $module->adv_params->assignto_homepage) {
                    $params['HomePage'] = new stdClass();
                    $params['HomePage']->assignment = $module->adv_params->assignto_homepage;
                }
                if ($config->show_assignto_content) {
                    if ($module->adv_params->assignto_cats) {
                        $params['Cats'] = new stdClass();
                        $params['Cats']->assignment = $module->adv_params->assignto_cats;
                        $params['Cats']->selection = $module->adv_params->assignto_cats_selection;
                        $params['Cats']->params = new stdClass();
                        $incs = $assignments->makeArray($module->adv_params->assignto_cats_inc);
                        $params['Cats']->params->inc_categories = in_array('inc_cats', $incs);
//.........這裏部分代碼省略.........
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:101,代碼來源:advancedmodules.php

示例15: edit

    /**
     * Writes the edit form for new and existing module
     *
     * A new record is defined when <var>$row</var> is passed with the <var>id</var>
     * property set to 0.
     * @param JTableCategory The category object
     * @param array <p>The modules of the left side.  The array elements are in the form
     * <var>$leftorder[<i>order</i>] = <i>label</i></var>
     * where <i>order</i> is the module order from the db table and <i>label</i> is a
     * text label associciated with the order.</p>
     * @param array See notes for leftorder
     * @param array An array of select lists
     * @param object Parameters
     */
    function edit(&$model, &$row, &$orders2, &$lists, &$params, $client)
    {
        JRequest::setVar('hidemainmenu', 1);
        // clean item data
        JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'content');
        if ($client->id != 1) {
            $parameters =& NNParameters::getParameters();
            $config = JComponentHelper::getParams('com_advancedmodules');
            $config = $parameters->getParams($config->_raw, JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_advancedmodules' . DS . 'config.xml');
        }
        $document =& JFactory::getDocument();
        $editor =& JFactory::getEditor();
        require_once JPATH_PLUGINS . DS . 'system' . DS . 'nonumberelements' . DS . 'helpers' . DS . 'versions.php';
        $version = NoNumberVersions::getXMLVersion(null, null, null, 1);
        $document->addScript(JURI::root(true) . '/plugins/system/nonumberelements/js/script.js' . $version);
        $document->addScript(JURI::root(true) . '/plugins/system/nonumberelements/elements/toggler.js' . $version);
        $script = "\n\t\t\tfunction submitbutton( pressbutton ) {\n\t\t\t\tif ( ( pressbutton == 'save' || pressbutton == 'apply' ) && ( document.adminForm.title.value == '' ) ) {\n\t\t\t\t\talert( '" . JText::_('Module must have a title', true) . "' );\n\t\t\t\t} else {\n\t\t\t\t\tif ( pressbutton == 'save' ) {\n\t\t\t\t\t\tdocument.adminForm.target = '_parent';\n\t\t\t\t\t}\n\t\t";
        if ($row->module == '' || $row->module == 'mod_custom') {
            $script .= $editor->save('content');
        }
        $script .= "\n\t\t\t\t\tsubmitform( pressbutton );\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar originalOrder \t= '" . $row->ordering . "';\n\t\t\tvar originalPos \t= '" . $row->position . "';\n\t\t\tvar orders \t\t\t= new Array();\t// array in the format [key,value,text]\n\t\t";
        $i = 0;
        foreach ($orders2 as $k => $items) {
            foreach ($items as $v) {
                $script .= "\n" . '	orders[' . $i++ . '] = new Array( "' . $k . '","' . $v->value . '","' . $v->text . '" );';
            }
        }
        $script .= "\n\t\t\twindow.addEvent( 'domready', function() {\n\t\t\t\tif ( !nnTogglerSet ) {\n\t\t\t\t\tnnTogglerSet = new nnToggler();\n\t\t\t\t}\n\t\t\t});\n\t\t";
        if ($client->id != 1) {
            if ($config->show_color) {
                $colors = explode(',', $config->main_colors);
                foreach ($colors as $i => $c) {
                    $colors[$i] = strtoupper('#' . preg_replace('#[^a-z0-9]#i', '', $c));
                }
                $script .= "\n\t\t\t\t\tmainColors = new Array( '" . implode("', '", $colors) . "' );";
            }
        }
        $document->addScriptDeclaration($script);
        $tmpl = JRequest::getCmd('tmpl');
        if ($tmpl == 'component') {
            HTML_modules::placeModalHeader('edit');
        }
        jimport('joomla.html.pane');
        // TODO: allowAllClose should default true in J!1.6, so remove the array when it does.
        $pane =& JPane::getInstance('sliders', array('allowAllClose' => true));
        JHTML::_('behavior.tooltip');
        ?>
		<form action="<?php 
        echo JRoute::_('index.php');
        ?>
" method="post" name="adminForm">
			<input type="hidden" name="option" value="com_advancedmodules" />
			<input type="hidden" name="tmpl" value="<?php 
        echo $tmpl;
        ?>
" />
			<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
			<input type="hidden" name="cid[]" value="<?php 
        echo $row->id;
        ?>
" />
			<input type="hidden" name="original" value="<?php 
        echo $row->ordering;
        ?>
" />
			<input type="hidden" name="module" value="<?php 
        echo $row->module;
        ?>
" />
			<input type="hidden" name="task" value="" />
			<input type="hidden" name="client" value="<?php 
        echo $client->id;
        ?>
" />
			<?php 
        echo JHTML::_('form.token');
        ?>

		<div class="col width-50">
			<fieldset class="adminform">
				<legend><?php 
        echo JText::_('Details');
        ?>
//.........這裏部分代碼省略.........
開發者ID:jtresca,項目名稱:nysurveyor,代碼行數:101,代碼來源:admin.advancedmodules.html.php


注:本文中的NNParameters::getParameters方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。