echo '<td width="40%">' . $v . '</td>'; if ($i % 2 == 0) { echo '</tr><tr>'; } } ?> </tr> </tbody> </table> </div> </div> <div class="form-group"> <?php $included = explode(',', $room->included); $included = is_array($included) ? arr_val_to_key($included) : array(); ?> <label class="col-sm-3 control-label"><?php echo lang('included'); ?> </label> <div class="col-md-9"> <div class="row"> <?php if (count($included) > 1) { foreach ($included as $inc) { ?> <div class="col-md-3"> <div class="form-group"> <select name="room_included[]">
<div class="form-group"> <label class="col-sm-3 control-label"><?php echo lang('sports_entertainment'); ?> </label> <div class="col-sm-6"> <table> <tbody> <tr> <?php $i = 0; foreach (sport_specs() as $k => $v) { $i++; $sport_specs = explode(',', $hotel->sport_specs); $sport_specs = arr_val_to_key($sport_specs); $checked = isset($sport_specs[$k]) ? 'checked' : ''; echo '<td width="5%"><input type="checkbox" name="sport_specs[]" ' . $checked . ' value="' . $k . '"/></td>'; echo '<td width="40%">' . $v . '</td>'; if ($i % 2 == 0) { echo '</tr><tr>'; } } ?> </tr> </tbody> </table> </div> </div> </div> <!-- info end -->
<div class="form-group"> <label class="col-sm-3 control-label"><?php echo lang('available'); ?> </label> <div class="col-sm-6"> <table> <tbody> <tr> <?php $i = 0; foreach (days_checkbox() as $k => $v) { $i++; $available_days = explode(',', $extra->available_days); $available_days = arr_val_to_key($available_days); $checked = isset($available_days[$k]) ? 'checked' : ''; echo '<td width="5%"><input type="checkbox" name="available_days[]]" value="' . $k . '" ' . $checked . '/></td>'; echo '<td width="40%">' . $v . '</td>'; if ($i % 2 == 0) { echo '</tr><tr>'; } } ?> </tr> </tbody> </table> </div> </div> <div class="form-group">