english/libraries/joomla/html/html/menu.php
/**
	 * Build the select list for Menu Ordering
	 */
Build the select list for Menu Ordering
Build the select list for Menu Ordering
public static function ordering(&$row, $id)
	{
		$db = JFactory::getDbo();
		if ($id)
		{
			$query = 'SELECT ordering AS value, title AS text'
			. ' FROM #__menu'
			. ' WHERE menutype = '.$db->Quote($row->menutype)
			. ' AND parent_id = '.(int) $row->parent_id
			. ' AND published != -2'
			. ' ORDER BY ordering';
			$order = JHtml::_('list.genericordering',  $query);
			$ordering = JHtml::_(
				'select.genericlist',
				$order,
				'ordering',
				array('list.attr' => 'class="inputbox" size="1"', 'list.select' => intval($row->ordering))
			);
		}
		else
		{
			$ordering = '<input type="hidden" name="ordering" value="'. $row->ordering .'" />'. JText::_('JGLOBAL_NEWITEMSLAST_DESC');
		}
		return $ordering;
	}
public static function ordering ( & $ row , $ id ) { $ db = JFactory :: getDbo ( ) ; if ( $ id ) { $ query = 'SELECT ordering AS value, title AS text' . ' FROM #__menu' . ' WHERE menutype = ' . $ db -> Quote ( $ row -> menutype ) . ' AND parent_id = ' . ( int ) $ row -> parent_id . ' AND published != -2' . ' ORDER BY ordering' ; $ order = JHtml :: _ ( 'list.genericordering' , $ query ) ; $ ordering = JHtml :: _ ( 'select.genericlist' , $ order , 'ordering' , array ( 'list.attr' => 'class="inputbox" size="1"' , 'list.select' => intval ( $ row -> ordering ) ) ) ; } else { $ ordering = '<input type="hidden" name="ordering" value="' . $ row -> ordering . '" />' . JText :: _ ( 'JGLOBAL_NEWITEMSLAST_DESC' ) ; } return $ ordering ; }
Build the select list for Menu Ordering
Build the select list for Menu Ordering