2011-12-16 09:00:12 +00:00

22 lines
570 B
PHP

<?php
Class Zend_View_Helper_Radio extends Zend_View_Helper_Abstract
{
public function Radio($name, $libelle)
{
$champ = '<div>';
$champ .= '<div style="float:left;text-align:left;">
<label>'.$libelle.'</label>
</div>';
$champ .= '<div style="text-align:right;">
<input type="radio" name="'.$name.'" value="" />
<input type="radio" name="'.$name.'" value="0" />
<input type="radio" name="'.$name.'" value="1" />
</div>';
$champ .= '<div>
<hr />
</div>';
$champ .= '</div>';
return ($champ);
}
}