| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* @package Mambo Open Source |
* @package Mambo |
| 4 |
* @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
* @author Mambo Foundation Inc see README.php |
| 5 |
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
* @copyright Mambo Foundation Inc. |
| 6 |
* |
* See COPYRIGHT.php for copyright notices and details. |
| 7 |
* 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 http://www.gnu.org/copyleft/gpl.html GNU/GPL, see |
| 8 |
* that Mambo remained free Open Source software owned and managed by the community. |
* LICENSE.php |
| 9 |
* Mambo is Free Software |
* Mambo is free software; you can redistribute it and/or |
| 10 |
|
* modify it under the terms of the GNU General Public License |
| 11 |
|
* as published by the Free Software Foundation; version 2 of the |
| 12 |
|
* License. |
| 13 |
*/ |
*/ |
| 14 |
|
|
| 15 |
/** |
/** |
| 131 |
*/ |
*/ |
| 132 |
function yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes=false, $no=false ) { |
function yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes=false, $no=false ) { |
| 133 |
$arr = array( |
$arr = array( |
| 134 |
mosHTML::makeOption( '0', $no ? $no : T_('Yes') ), |
mosHTML::makeOption( '0', $no ? $no : T_('No') ), |
| 135 |
mosHTML::makeOption( '1', $yes ? $yes : T_('No') ), |
mosHTML::makeOption( '1', $yes ? $yes : T_('Yes') ), |
| 136 |
); |
); |
| 137 |
|
|
| 138 |
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected ); |
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected ); |