[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: users.class.php 4677 2006-08-23 16:55:24Z stingrey $ 4 * @package Joomla 5 * @subpackage Users 6 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 7 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // no direct access 16 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 17 18 /** 19 * @package Joomla 20 */ 21 class mosUserParameters extends mosParameters { 22 /** 23 * @param string The name of the form element 24 * @param string The value of the element 25 * @param object The xml element for the parameter 26 * @param string The control name 27 * @return string The html for the element 28 */ 29 function _form_editor_list( $name, $value, &$node, $control_name ) { 30 global $database; 31 32 // compile list of the editors 33 $query = "SELECT element AS value, name AS text" 34 . "\n FROM #__mambots" 35 . "\n WHERE folder = 'editors'" 36 . "\n AND published = 1" 37 . "\n ORDER BY ordering, name" 38 ; 39 $database->setQuery( $query ); 40 $editors = $database->loadObjectList(); 41 42 array_unshift( $editors, mosHTML::makeOption( '', '- Select Editor -' ) ); 43 44 return mosHTML::selectList( $editors, ''. $control_name .'['. $name .']', 'class="inputbox"', 'value', 'text', $value ); 45 } 46 } 47 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |