Source for file droplist.php
Documentation is available at droplist.php
* a dropdown selection list using a ChoiceList
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @subpackage FormsLibrary
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
require_once 'choicelist.php';
* a dropdown selection list using a ChoiceList
* @subpackage FormsLibrary
* Create a new dropdown list object
* @param string $name the name of the field (db name, and html field name
* @param string $description used in the html title or longdesc for the field
function DropList($name, $description=
'') {
//preDump($this->formatid);
$selected =
($data[$this->formatid] ==
$this->getValue() ?
" selected='1' " :
'');
$t =
"<select name='$this->namebase$this->name'>";
foreach ($this->list->choicelist as $v) {
foreach ($this->list->choicelist as $data) {
$t =
'<input type="hidden" '
Documentation generated on Tue, 06 Mar 2007 10:01:23 +0000 by phpDocumentor 1.3.0