if(isset($_SESSION['hotel_step_error']) && (strlen($_SESSION['hotel_step_error']) > 0)){ ?> <div><?php echo $_SESSION['hotel_step_error']; $_SESSION['hotel_step_error'] = ''; ?></div> <?php } ?> <form action="<?php echo HTTP; ?>dashboard/get_step_02.php" method="post"> <input type="hidden" value="83620581b63ecf30c23cd5f97cc84939" name="csrf"/> <fieldset> <legend>Hotel Registration/Property-details</legend> <h3 class="h3">Hotel facilities</h3> <div class="row"> <div class="col-xs-12"> <h4>Hotel Facilities<span class="text-danger">*</span></h4> <?php foreach($hFTypes as $kk => $hFType){ $hotelFeatureList = new HotelFeatureList(); $hFLists = $hotelFeatureList->where('hotel_feature_type_id', '=', $hFType->id)->get(); $checkboxes = ''; foreach($hFLists as $hFList){ $checkboxes .= '<div class="checkbox col-md-4 col-sm-4 col-xs-12"><label><input type="checkbox" name="hotel_feature[' . $hFType->id . '][]" value="' . $hFList->id . '"/>' . $hFList->feature . '</label></div>'; } ?> <div class="col-xs-12"> <h3><?php echo $hFType->type; ?></h3> <?php echo $checkboxes; ?> </div> <?php } ?> </div> </div> <hr/>
<?php define('_MEXEC', 'OK'); require_once($_SERVER['DOCUMENT_ROOT'] . "/config/app.php"); $filter = $_POST['filter']; $method = $_POST['method']; if($method == 'hotel_feature_types'){ $hotelFeatureList = new HotelFeatureList(); $hFLists = $hotelFeatureList->where('hotel_feature_type_id', '=', $filter)->get(); $options = ''; foreach($hFLists as $hFList){ $options .= '<option value="' . $hFList->id . '">' . $hFList->feature . '</option>'; } die($options); }else if($method == 'room_types'){ /* $roomFeatureList = new RoomFeature(); $rFLists = $roomFeatureList->where('hotel_feature_type_id', '=', $filter)->get(); $options = ''; foreach($hFLists as $hFList){ $options .= '<option value="' . $hFList->id . '">' . $hFList->feature . '</option>'; } die($options); */ } ?>