当前位置: 首页>>代码示例>>PHP>>正文


PHP JParameter::render方法代码示例

本文整理汇总了PHP中JParameter::render方法的典型用法代码示例。如果您正苦于以下问题:PHP JParameter::render方法的具体用法?PHP JParameter::render怎么用?PHP JParameter::render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JParameter的用法示例。


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

示例1: 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

示例2: render

 function render($group = '_default')
 {
     $paramsdefs = JPATH_ADMINISTRATOR . "/components/" . $this->component_name . "/config.xml";
     $paramsdata = JComponentHelper::getParams($this->component_name);
     $params = new JParameter($paramsdata->toString(), $paramsdefs);
     echo $params->render('params', $group);
 }
开发者ID:naka211,项目名称:compac,代码行数:7,代码来源:config.php

示例3: _render

 /**
  * Render a parameter
  * 
  * @param  JParameter $parameter
  * @param  KConfig 	  $config
  * @return string
  */
 protected function _render($parameter, $config)
 {
     $params = $parameter->getParams($config->name, $config->group);
     foreach ($params as $key => $param) {
         $params[$key] = array($param[0] => $param[1]);
     }
     return $this->_template->renderHelper('ui.form', $params[0]);
     return $parameter->render($config->name, $config->group);
 }
开发者ID:walteraries,项目名称:anahita,代码行数:16,代码来源:form.php

示例4: params

 /**
  * Method to render a given parameters form.
  *
  * @param	string	$name	The name of the array for form elements.
  * @param	string	$ini	An INI formatted string.
  * @param	string	$file	The XML file to render.
  * @return	string	A HTML rendered parameters form.
  */
 public function params($name, $ini, $file)
 {
     jimport('joomla.html.parameter');
     // Load and render the parameters
     $path = JPATH_COMPONENT . DS . $file;
     $params = new JParameter($ini, $path);
     $output = $params->render($name);
     return $output;
 }
开发者ID:joebushi,项目名称:joomla,代码行数:17,代码来源:comments.php

示例5: renderForm

 /**
  * render paramters form
  *
  * @return string
  */
 function renderForm($params = array(), $fileName = 'form')
 {
     // look up configuration file which build-in this plugin or the tempate used.
     $path = $this->getCurrentPath() . $fileName . '.xml';
     if (file_exists($path)) {
         $params = new JParameter($params, $path);
         $content = $params->render('params');
         return $content;
     }
     return;
 }
开发者ID:optimosolution,项目名称:marhk,代码行数:16,代码来源:group_base.php

示例6: display

 function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $user = JFactory::getUser();
     JHTML::_('behavior.tooltip');
     //get vars
     $cid = JRequest::getVar('cid');
     $field_type = JRequest::getVar('field_type', 0);
     //Get data from the model
     $model = $this->getModel();
     if (FLEXI_J16GE) {
         $form = $this->get('Form');
     } else {
         $row =& $this->get('Field');
         //Import File system
         jimport('joomla.filesystem.file');
         // Create the form
         $pluginpath = JPATH_PLUGINS . DS . 'flexicontent_fields' . DS . $field_type . '.xml';
         if (JFile::exists($pluginpath)) {
             $form = new JParameter('', $pluginpath);
         } else {
             $form = new JParameter('', JPATH_PLUGINS . DS . 'flexicontent_fields' . DS . 'core.xml');
         }
         $form->loadINI($row->attribs);
     }
     $isnew = FLEXI_J16GE ? !$form->getValue('id') : !$row->id;
     // fail if checked out not by 'me'
     if (!$isnew) {
         if ($model->isCheckedOut($user->get('id'))) {
             JError::raiseWarning('SOME_ERROR_CODE', $row->name . ' ' . JText::_('FLEXI_EDITED_BY_ANOTHER_ADMIN'));
             $app->redirect('index.php?option=com_flexicontent&view=fields');
         }
     }
     if ($field_type) {
         if (!FLEXI_J16GE) {
             echo $form->render('params', 'group-' . $field_type);
         } else {
             foreach ($form->getFieldset('group-' . $field_type) as $field) {
                 echo '<fieldset class="panelform">' . $field->label . $field->input . '</fieldset>' . "\n";
             }
         }
     } else {
         echo "<br /><span style=\"padding-left:25px;\"'>" . JText::_('FLEXI_APPLY_TO_SEE_THE_PARAMETERS') . "</span><br /><br />";
     }
     //parent::display($tpl);
 }
开发者ID:jakesyl,项目名称:flexicontent,代码行数:46,代码来源:view.raw.php

示例7: getSystemParams

 function getSystemParams($path)
 {
     $params = null;
     $item = $this->getModulesData();
     if (isset($item->params)) {
         $params = new JParameter($item->params);
     } else {
         $params = new JParameter("");
     }
     if (file_exists($path)) {
         $xml =& JFactory::getXMLParser('Simple');
         if ($xml->loadFile($path)) {
             $document =& $xml->document;
             $params->setXML($document->getElementByPath('state/params'));
         }
     }
     return $params->render('params');
 }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:18,代码来源:S5FlexMenu.php

示例8: fetchElement

	function fetchElement($name, $value, &$node, $control_name)
	{
		$parent =& $this->_parent;

		$childParameter = new JParameter($parent->_raw);
		$paths = $parent->_elementPath;
		if (is_array($paths))
			foreach ($paths as $path)
				$childParameter->addElementPath($path);
		$childParameter->setXML($node);

		$visible = $node->attributes('visible');
		$prefix = $node->attributes('prefix');
		$id = 'group_' . $prefix . '_' . $node->attributes('group_id');

		return sprintf('<div id="%s" class="el-group" style="display: %s;"><div class="el-group-header"><h4>%s</h4></div><div>%s</div></div>',
			$id,
			$visible ? 'block' : 'none',
			JText::_($node->attributes('label')),
			$childParameter->render($control_name));
	}
开发者ID:rkern21,项目名称:videoeditor,代码行数:21,代码来源:group.php

示例9: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     jimport('joomla.html.pane');
     // TODO: allowAllClose should default true in J!1.6, so remove the array when it does.
     $panel =& JPane::getInstance('sliders');
     $return = '';
     if ($this->_parent->get('dynXMLStyle')) {
         $return .= '</td></tr></tbody></table>';
         $return .= $panel->endPanel();
     }
     $id = JRequest::getVar('id', 0, 'method', 'int');
     if (!$id) {
         $id = reset(JRequest::getVar('cid', array(0)));
     }
     $db =& JFactory::getDBO();
     $query = 'SELECT params' . ' FROM #__modules' . ' WHERE id =' . $id;
     $db->setQuery($query);
     $values = $db->loadResult();
     //Get the module name, in a slightly hacky way.
     $module = JRequest::getWord('module');
     $mod =& JTable::getInstance('Module', 'JTable');
     if ($id) {
         $mod->load($id);
         $modname = $mod->module;
     } elseif ($module) {
         $modname = $module;
     }
     $dynXML = new JParameter($values, JPATH_ROOT . DS . 'modules' . DS . $modname . DS . 'tmpl' . DS . $this->_parent->get('layout') . '.xml');
     if ($this->_parent->get('dynXMLStyle')) {
         $return .= $panel->startPanel(JText::sprintf('LAYOUTPARAMS', $this->_parent->get('layout'), $this->_parent->get('style')), "layout");
     }
     $return .= $dynXML->render('params');
     if ($this->_parent->get('dynXMLStyle')) {
         $return .= '<table class="paramlist admintable" width="100%" cellspacing="1"><tbody>';
     }
     return $return;
 }
开发者ID:ravenlife,项目名称:Ninja-Framework,代码行数:37,代码来源:dynXML.php

示例10: getSystemParams

 function getSystemParams($xmlstring)
 {
     // Initialize variables
     $params = null;
     $item = $this->getDatabaseValue();
     if (isset($item->params)) {
         $params = new JParameter($item->params);
         //update value to make it compatible with old parameter
         if (!$params->get('mega_subcontent_mod_modules', '') && $params->get('mega_subcontent-mod-modules')) {
             $params->set('mega_subcontent_mod_modules', $params->get('mega_subcontent-mod-modules'));
         }
         if (!$params->get('mega_subcontent_pos_positions', '') && $params->get('mega_subcontent-pos-positions')) {
             $params->set('mega_subcontent_pos_positions', $params->get('mega_subcontent-pos-positions'));
         }
     } else {
         $params = new JParameter("");
     }
     $xml =& JFactory::getXMLParser('Simple');
     if ($xml->loadString($xmlstring)) {
         $document =& $xml->document;
         $params->setXML($document->getElementByPath('state/params'));
     }
     return $params->render('params');
 }
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:24,代码来源:util.php

示例11: ajaxShowSettings

 /**
  *	Ajax method to display the application settings
  *
  *	@params	$id	Int	Application id.
  *	@params	$appName	String	Application element
  **/
 public function ajaxShowSettings($id, $appName)
 {
     // Check permissions
     $my =& JFactory::getUser();
     if ($my->id == 0) {
         return $this->ajaxBlockUnregister();
     }
     $objResponse = new JAXResponse();
     $appsModel = CFactory::getModel('apps');
     $lang =& JFactory::getLanguage();
     $lang->load('plg_' . JString::strtolower($appName), JPATH_ROOT . DS . 'administrator');
     $xmlPath = JPATH_PLUGINS . DS . 'community' . DS . $appName . DS . 'config.xml';
     jimport('joomla.filesystem.file');
     if (JFile::exists($xmlPath)) {
         $paramStr = $appsModel->getUserAppParams($id);
         $params = new JParameter($paramStr, $xmlPath);
         $paramData = isset($params->_xml['_default']->param) ? $params->_xml['_default']->param : array();
         $html = '<form method="POST" action="" name="appSetting" id="appSetting">';
         $html .= $params->render();
         $html .= '<input type="hidden" value="' . $id . '" name="appid"/>';
         $html .= '<input type="hidden" value="' . $appName . '" name="appname"/>';
         $html .= '</form>';
         $objResponse->addAssign('cWindowContent', 'innerHTML', $html);
         if (!empty($paramData)) {
             $objResponse->addScriptCall('cWindowActions', '<input onclick="joms.apps.saveSettings()" type="submit" value="' . JText::_('CC APPLICATION BTN SAVE') . '" class="button" name="Submit"/>');
         }
         $parser =& JFactory::getXMLParser('Simple');
         $parser->loadFile($xmlPath);
         $document =& $parser->document;
         $element =& $document->getElementByPath('height');
         $height = !empty($element) ? $element->data() : 0;
         if ($height) {
             $windowHeight = $height;
         } else {
             $windowHeight = 100 + $params->getNumParams() * 30;
             $windowHeight = $windowHeight >= 300 ? 300 : $windowHeight;
         }
     } else {
         $objResponse->addAssign('cWindowContent', 'innerHTML', '<div class-"ajax-notice-apps-configure">' . JText::_('CC APPLICATION AJAX NO CONFIG') . '</div>');
         $windowHeight = 100;
     }
     $objResponse->addScriptCall('cWindowResize', $windowHeight);
     $objResponse->addAssign('cwin_logo', 'innerHTML', JText::_('CC APPLICATION SETTINGS TITLE'));
     return $objResponse->sendResponse();
 }
开发者ID:bizanto,项目名称:Hooked,代码行数:51,代码来源:apps.php

示例12: _render

 /**
  * Render a parameter
  * 
  * @param  JParameter $parameter
  * @param  KConfig 	  $config
  * @return string
  */
 protected function _render($parameter, $config)
 {
     return $parameter->render($config->name, $config->group);
 }
开发者ID:walteraries,项目名称:anahita,代码行数:11,代码来源:form.php

示例13: render

 /**
  * Render
  *
  * @access	public
  * @param	string	The name of the control, or the default text area if a setup file is not found
  * @param string group
  * @param bol write out or return
  * @param int if set and group is repeat only return int row from rendered params
  * used for form plugin admin pages.
  * @return	string	HTML
  *
  * NOTE when rendering admin settings I *think* the repeat group is set with $this->_counter_override
  * @since	1.5
  */
 function render($name = 'params', $group = '_default', $write = true, $repeatSingleVal = null)
 {
     $return = '';
     $this->_group = $group;
     //$$$rob experimental again
     //problem - when rendering plugin params - e.g. calendar vis - params like the table drop down
     // are repeated n times. I think the best way to deal with this is to get the data recorded for
     // the viz and udpate this objects _xml array duplicate the relavent JSimpleXMLElement Objects
     // for the required number of table drop downs
     //echo " $name : $group <br>";
     $repeat = false;
     $repeatControls = true;
     $repeatMin = 0;
     if (is_array($this->_xml)) {
         if (array_key_exists($group, $this->_xml)) {
             $repeat = $this->_xml[$group]->attributes('repeat');
             $repeatMin = (int) $this->_xml[$group]->attributes('repeatmin');
             $repeatControls = $this->_xml[$group]->attributes('repeatcontrols');
         }
     }
     if ($repeat) {
         //get the name of the first element in the group
         $children = $this->_xml[$group]->children();
         if (empty($children)) {
             $firstElName = '';
             $allParamData = '';
             $value = '';
         } else {
             $firstElName = str_replace("[]", "", $children[0]->attributes('name'));
             $allParamData = $this->_registry['_default']['data'];
             $value = $this->get($firstElName, array(), $group, 'array');
         }
         $c = 0;
         //limit the number of groups of repeated params written out
         if (!is_null($repeatSingleVal) && is_int($repeatSingleVal)) {
             $total = $repeatSingleVal + 1;
             $start = $repeatSingleVal;
         } else {
             $total = count($value);
             $start = 0;
         }
         $identifier = $this->_identifier . '-' . $group;
         $return .= '<div id="container' . $identifier . '">';
         //add in the 'add' button to duplicate the group
         //only show for first added group
         if ($repeatControls && $repeatSingleVal == 0) {
             $return .= "<a href='#' class='addButton'>" . JText::_('ADD') . "</a>";
         }
         for ($x = $start; $x < $total; $x++) {
             //call render for the number of time the group is repeated
             //echo parent::render($name, $group);
             $return .= '<div class="repeatGroup" id="' . $identifier . 'group-' . $x . '">';
             ////new
             //$this->_counter_override = $x;
             $params =& $this->getParams($name, $group, 'array', $x);
             $html = array();
             $html[] = '<table width="100%" class="paramlist admintable" cellspacing="1">';
             if ($description = $this->_xml[$group]->attributes('description')) {
                 // add the params description to the display
                 $desc = JText::_($description);
                 $html[] = '<tr><td class="paramlist_description" colspan="2">' . $desc . '</td></tr>';
             }
             foreach ($params as $param) {
                 $html[] = '<tr>';
                 if ($param[0]) {
                     $html[] = '<td width="40%" class="paramlist_key"><span class="editlinktip">' . $param[0] . '</span></td>';
                     $html[] = '<td class="paramlist_value">' . $param[1] . '</td>';
                 } else {
                     $html[] = '<td class="paramlist_value" colspan="2">' . $param[1] . '</td>';
                 }
                 $html[] = '</tr>';
             }
             if (count($params) < 1) {
                 $html[] = "<tr><td colspan=\"2\"><i>" . JText::_('THERE ARE NO PARAMETERS FOR THIS ITEM') . "</i></td></tr>";
             }
             $html[] = '</table>';
             if ($repeatControls) {
                 $html[] = "<a href='#' class=\"removeButton delete\">" . JText::_('DELETE') . "</a>";
             }
             $return .= implode("\n", $html);
             ///end new
             $c++;
             $return .= "</div>";
         }
         $return .= "</div>";
     } else {
//.........这里部分代码省略.........
开发者ID:nikshade,项目名称:fabrik21,代码行数:101,代码来源:params.php

示例14: showConfig

    function showConfig(&$row, &$lists)
    {
        global $mainframe;
        // Load tooltips behavior
        JHTML::_('behavior.tooltip');
        JHTML::_('behavior.switcher');
        // Load component specific configurations
        $table =& JTable::getInstance('component');
        $table->loadByOption('com_users');
        $userparams = new JParameter($table->params, JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_users' . DS . 'config.xml');
        $table->loadByOption('com_media');
        $mediaparams = new JParameter($table->params, JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_media' . DS . 'config.xml');
        // Build the component's submenu
        $contents = '';
        $tmplpath = dirname(__FILE__) . DS . 'tmpl';
        ob_start();
        require_once $tmplpath . DS . 'navigation.php';
        $contents = ob_get_contents();
        ob_end_clean();
        // Set document data
        $document =& JFactory::getDocument();
        $document->setBuffer($contents, 'modules', 'submenu');
        // Load settings for the FTP layer
        jimport('joomla.client.helper');
        $ftp =& JClientHelper::setCredentialsFromRequest('ftp');
        ?>
		<form action="index.php" method="post" name="adminForm" autocomplete="off">
		<?php 
        if ($ftp) {
            require_once $tmplpath . DS . 'ftp.php';
        }
        ?>
		<div id="config-document">
			<div id="page-site">
				<table class="noshow">
					<tr>
						<td width="65%">
							<?php 
        require_once $tmplpath . DS . 'config_site.php';
        ?>
							<?php 
        require_once $tmplpath . DS . 'config_metadata.php';
        ?>
						</td>
						<td width="35%">
							<?php 
        require_once $tmplpath . DS . 'config_seo.php';
        ?>
						</td>
					</tr>
				</table>
			</div>
			<div id="page-system">
				<table class="noshow">
					<tr>
						<td width="60%">
							<?php 
        require_once $tmplpath . DS . 'config_system.php';
        ?>
							<fieldset class="adminform">
								<legend><?php 
        echo JText::_('User Settings');
        ?>
</legend>
								<?php 
        echo $userparams->render('userparams');
        ?>
							</fieldset>
							<fieldset class="adminform">
								<legend><?php 
        echo JText::_('Media Settings');
        ?>
				<span class="error hasTip" title="<?php 
        echo JText::_('Warning');
        ?>
::<?php 
        echo JText::_('WARNPATHCHANGES');
        ?>
">
					<?php 
        echo ConfigApplicationView::WarningIcon();
        ?>
				</span>
								</legend>
								<?php 
        echo $mediaparams->render('mediaparams');
        ?>
							</fieldset>
						</td>
						<td width="40%">
							<?php 
        require_once $tmplpath . DS . 'config_debug.php';
        ?>
							<?php 
        require_once $tmplpath . DS . 'config_cache.php';
        ?>
							<?php 
        require_once $tmplpath . DS . 'config_session.php';
        ?>
						</td>
//.........这里部分代码省略.........
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:101,代码来源:view.php

示例15: JParameter

$module = JModuleHelper::getModule($prName);
$basePath = JPATH_ROOT . DS . 'modules' . DS . $this->selectedProject;
$xmlfile = $basePath . DS . $this->selectedProject . '.xml';
$parameter = new JParameter($module->params, $xmlfile);
?>
<table width="100%">
  <tr valign="top">
    <td>
    	<?php 
easyHTML::projectSelector();
?>
    </td>
    <td>
    	<div style="border: 1px solid red; padding: 5px;">
    	<?php 
echo JModuleHelper::renderModule($module);
?>
		</div>

		<h2><?php 
echo JText::_('Parameters');
?>
</h2>
		<?php 
echo $parameter->render();
?>

    </td>
  </tr>
</table>
开发者ID:akksi,项目名称:jcg,代码行数:30,代码来源:module.php


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