<?php //$r = new request(); //$c = $r->get_allcity_list(TRUE); //var_dump($c); city_class::loadAll();
</div> </td> <td> <img src="<?php echo asset_url(); ?> images/img/arrow-blue.png"> <div class="date ta_currentdate"><?php echo $tatarikh; ?> </div> </td> <td class="gh-src-des"> <div class="place"><?php echo city_class::loadByIata($from_city); ?> </div> </td> <td class="next-day ta-next-day loked" style="display: block;"> <a href="#"> <img src="<?php echo asset_url(); ?> images/img/next-day.png" alt="روز بعد" onclick="change($('#global_az_currentday').html(), $('#global_ta_nextday').html());" > <span class="title">روز بعد</span> </a> </td> </tr> <?php }
</div> <div class="btn-container"> <input type="submit" value="جستجو"> </div> </div> </form> </div> <div class="tab-pane" id="hotel-tab"> <form action="http://test.safarbooking.ir/pst/index.php?controller=hotel&action=safaravial" method="post"> <div class="field-container hotel clearfix active"> <div class="select-container"> <label for="city">شهر :</label> <select id="city" name="city_id" required> <?php echo city_class::hloadAll(); ?> </select> </div> <div class="date-container"> <label for="date-in">تاریخ ورود :</label> <input type="text" id="date-in" name="date-in" class="datepicker" required> </div> <div class="date-container"> <label for="date-out">تاریخ خروج :</label> <input type="text" id="date-out" name="date-out" class="datepicker" required> </div> <div class="select-container rooms"> <label for="room-num">تعداد اتاق :</label> <select id="room-num" name="room-num" required> <option value="">0</option>
$flight_types = array(0 => "", 1 => "tell.gif", 2 => "tour.gif", 3 => "twoway.gif", 4 => "", 5 => "", 6 => "", 7 => "", 8 => ""); $tmppp = ''; $content_ok = '<div class="buy-link"><a onclick = "passengerCount(#flight_index#, this, true);" style="margin-top: 6px;" class="yourButton">انتخاب</a></div>'; $sairlines = isset($_REQUEST['airlines']) ? $_REQUEST['airlines'] : array('ALL'); $extra = 'extra'; $airlines_ul = array(); $results = array(); $jresults = array(); $flight_index = 0; $flight_resultss = ''; foreach ($results_tmp[0]["data"] as $flight_index0 => $flight) { if (pin_array($flight['airline'], $sairlines) || count($sairlines) == 1 && $sairlines[0] == 'ALL') { //&& (int) $flight['price'] > 10000) { $res = str_replace("#from_city#", city_class::loadByIata($flight['from_city']), $result_tmp); $res = str_replace("#asset_url#", asset_url(), $res); $res = str_replace("#to_city#", city_class::loadByIata($flight['to_city']), $res); $res = str_replace("#fdate#", jdate("Y-m-d", strtotime($flight['fdate'])), $res); $res = str_replace("#ftime#", $flight['ftime'], $res); $res = str_replace("#price#", $this->inc_model->monize($flight['price']), $res); $res = str_replace("#air_name#", $flight['airline'], $res); $res = str_replace("#flight_index#", $flight_index, $res); $res = str_replace("#flight_number#", $flight['flight_number'], $res); $res = str_replace("#air_aiata#", strtolower($flight['aiata']), $res); $res = str_replace("#class_ghimat#", $flight['class_ghimat'], $res); $res = str_replace("#capacity#", $flight['capacity'], $res); $res = str_replace("#source_id#", 'src_' . $flight['source_id'], $res); //var_dump($flight);exit; //check disable or not ?aiata if (checkEnabled($flight['source_id'], $flight['aiata'])) { $res = str_replace("#Disabled#", 'false', $res); } else {