| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo |
| 4 |
* @subpackage Menus |
* @subpackage Menus |
| 5 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @author Mambo Foundation Inc see README.php |
| 6 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @copyright Mambo Foundation Inc. |
| 7 |
* |
* See COPYRIGHT.php for copyright notices and details. |
| 8 |
* Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure |
* @license GNU/GPL Version 2, see LICENSE.php |
| 9 |
* that Mambo remained free Open Source software owned and managed by the community. |
* Mambo is free software; you can redistribute it and/or |
| 10 |
* Mambo is Free Software |
* modify it under the terms of the GNU General Public License |
| 11 |
|
* as published by the Free Software Foundation; version 2 of the License. |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
/** ensure this file is being included by a parent file */ |
/** ensure this file is being included by a parent file */ |
| 39 |
$params =& new mosParameters( $menu->params ); |
$params =& new mosParameters( $menu->params ); |
| 40 |
$secids = $params->def( 'sectionid', '' ); |
$secids = $params->def( 'sectionid', '' ); |
| 41 |
if ( $secids ) { |
if ( $secids ) { |
| 42 |
|
// @RawSQLUse, trivial_implementation, SELECT, CONCEPT |
| 43 |
$query = "SELECT s.id AS `value`, s.id AS `id`, s.title AS `text`" |
$query = "SELECT s.id AS `value`, s.id AS `id`, s.title AS `text`" |
| 44 |
. "\n FROM #__sections AS s" |
. "\n FROM #__sections AS s" |
| 45 |
. "\n WHERE s.scope = 'content'" |
. "\n WHERE s.scope = 'content'" |
| 62 |
|
|
| 63 |
// build the html select list for section |
// build the html select list for section |
| 64 |
$rows[] = mosHTML::makeOption( '', T_('All Sections') ); |
$rows[] = mosHTML::makeOption( '', T_('All Sections') ); |
| 65 |
|
// @RawSQLUse, trivial_implementation, SELECT, CONCEPT |
| 66 |
$query = "SELECT s.id AS `value`, s.id AS `id`, s.title AS `text`" |
$query = "SELECT s.id AS `value`, s.id AS `id`, s.title AS `text`" |
| 67 |
. "\n FROM #__sections AS s" |
. "\n FROM #__sections AS s" |
| 68 |
. "\n WHERE s.scope = 'content'" |
. "\n WHERE s.scope = 'content'" |