Advertisement
jamboljack

Facility View

Feb 1st, 2017
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. foreach($listFacility as $f) {
  3.     $facility_id = $f->facility_id;
  4. ?>
  5. <div class="checkbox checkbox-primary">
  6.     <input type="hidden" name="id[]" value="<?php echo $facility_id; ?>"/>
  7.     <input type="checkbox" value="1" name="check[<?=$facility_id;?>]" <?php if ($f->facility_check == 1) { echo 'checked'; } ?>>
  8.         <label ><?php echo $f->facility_name; ?></label>
  9.     </div>                                            
  10. <?php
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement