/ Published in: PHP

This is used in daikon back-end Project spec to choose Yes or No for Active
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// 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'); 'name' => 'active', 'id' => 'activeyes', 'value' => '1', 'checked' => TRUE, ); echo form_radio($datayes); echo "</span>\n"; echo "<span>\n".$this->lang->line('general_no'); 'name' => 'active', 'id' => 'activeno', 'value' => '0', ); echo form_radio($datano); echo "</span>\n</div>\n</li>\n";
Comments
