.
if (!defined('EG')) die('Direct access not allowed!');
//create the HTML of an select entry
class Form_Select extends Form_Entry
{
public function __construct($entryName = null)
{
$this->entryName = $entryName;
}
public function render($value = null)
{
$wrap = $this->getWrapElements($value);
$returnString = $wrap[0];
$returnString .= "
\n\t";
$returnString .= $wrap[1];
$returnString .= $this->getLabelTag();
$returnString .= $wrap[2];
$returnString .= Html_Form::select($this->entryName,$value,$this->options,$this->className, $this->idName, $this->reverse, $this->attributes);
$returnString .= $wrap[3];
$returnString .="
\n";
$returnString .= $wrap[4];
return $returnString;
}
}