Return to Snippet

Revision: 36716
at November 25, 2010 08:09 by shinokada


Initial Code
// view code

echo "<li id=\"activeli\">\n<label for='active'>".form_label($this->lang->line('userlib_active'),'active')."</label>";
echo "<div>\n<span>\n".$this->lang->line('general_yes');
$datayes = array(
    'name'        => 'active',
    'id'          => 'activeyes',
    'value'       => '1',
    'checked'     => TRUE,

    );
echo form_radio($datayes);
echo "</span>\n";
echo "<span>\n".$this->lang->line('general_no');
$datano = array(
    'name'        => 'active',
    'id'          => 'activeno',
    'value'       => '0',
    );
echo form_radio($datano);
echo "</span>\n</div>\n</li>\n";

Initial URL

                                

Initial Description
This is used in daikon back-end Project spec to choose Yes or No for Active

Initial Title
Active radio view code

Initial Tags

                                

Initial Language
PHP