Posted By

shinokada on 11/25/10


Tagged

radio active


Versions (?)

Active radio view code


 / Published in: PHP
 

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

  1. // view code
  2.  
  3. echo "<li id=\"activeli\">\n<label for='active'>".form_label($this->lang->line('userlib_active'),'active')."</label>";
  4. echo "<div>\n<span>\n".$this->lang->line('general_yes');
  5. $datayes = array(
  6. 'name' => 'active',
  7. 'id' => 'activeyes',
  8. 'value' => '1',
  9. 'checked' => TRUE,
  10.  
  11. );
  12. echo form_radio($datayes);
  13. echo "</span>\n";
  14. echo "<span>\n".$this->lang->line('general_no');
  15. $datano = array(
  16. 'name' => 'active',
  17. 'id' => 'activeno',
  18. 'value' => '0',
  19. );
  20. echo form_radio($datano);
  21. echo "</span>\n</div>\n</li>\n";

Report this snippet  

You need to login to post a comment.