Source for file radiolist.php
Documentation is available at radiolist.php
* a radio button list based on the ChoiceList class
* @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 radio button list based on the ChoiceList class
* @subpackage FormsLibrary
/** @var string html/css class name to use in the generated output */
* Create a new radiolist object
* @param string $name the name of the field (db name, and html field name
* @param string $description long name to be used in the label of the field in display
//$aclass = (isset($this->aclass) ? " class='$this->aclass'" : "");
#echo "<pre>".print_r($data,1)."</pre>";
$selected =
($data[$this->formatid] ==
$this->getValue() ?
' checked="1" ' :
'');
$t =
'<label><input type="radio" name="'.
$this->name.
'" '
.
'value="'.
$data[$this->formatid].
'" '.
$selected.
' /> ';
if (isset
($data['_field']) &&
$data['_field']) {
$t .=
$data['_field']->selectable();
foreach ($this->list->choicelist as $v) {
Documentation generated on Tue, 06 Mar 2007 10:01:55 +0000 by phpDocumentor 1.3.0