芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/ProZigzagbus Web Admin 1.2/getbook.php
fetchData($query); if(isset($_SESSION['stype'])) { if($_SESSION['stype'] == 'sowner') { $query = "SELECT * FROM `tbl_bus_operator` where email='".$_SESSION['busname']."'"; $sdata = $h->fetchData($query); } } if(isset($_POST['start_date']) && isset($_POST['end_date'])) { $start_date = $_POST['start_date']; $end_date = $_POST['end_date']; $user_type = $_POST['user_type']; if($_SESSION['stype'] == 'sowner') { $city = $h->queryfire("SELECT * FROM `tbl_book` where book_date between '".$start_date."' and '".$end_date."' and user_type='".$user_type."' and operator_id=".$sdata["id"]." order by id desc"); } else { $city = $h->queryfire("SELECT * FROM `tbl_book` where book_date between '".$start_date."' and '".$end_date."' and user_type='".$user_type."' order by id desc"); } $i=0; while($row = $city->fetch_assoc()) { $busdata = $h->queryfire("SELECT * from tbl_bus where id=".$row['bus_id']."")->fetch_assoc(); $totalseat = $h->queryfire("SELECT COUNT(*) AS total_count, GROUP_CONCAT(seat_no) AS total_seats FROM tbl_book_pessenger WHERE book_id=" . $row['id'])->fetch_assoc(); $i = $i + 1; ?>
format('jS M Y, g:i A'); ?>
format('jS M Y, g:i A'); ?>