<?php

// session_start();
// ob_start();
// include 'include/db.php';
// include 'include/connect.php';
// $admin_id = $_SESSION['admin_id'];
// $licence = $_SESSION['admin_licence'];
// // $sq = $db->findByPK('tbbooking','book_status = 0 book_sale',$_SESSION['admin_nickname'])->execute();
// // $sq = $db->findByPK('tbbooking','book_status','0')->execute();
// // $sq = $db->findorder('tbbooking','book_status = 0 book_sale = '.$_SESSION['admin_nickname'].'','book_id desc,book_id')->execute();
//  $sq = $db->findByAttributes('tbbooking',array('book_status =' => '0', 'book_sale =' => $_SESSION['admin_nickname']))->execute();
//   if ($_SESSION['admin_id'] == '48' || $_SESSION['admin_id'] == '51') {
// $sq = $db->findByAttributes('tbbooking',array('book_status =' => '0'))->execute();
//  }else{
// $sq = $db->findByAttributes('tbbooking',array('book_status =' => '0', 'book_sale =' => $_SESSION['admin_nickname']))->execute();
//  }

// $ntq = $db->findorderdesc('tbbooking','book_status = 0 book_sale = '.$_SESSION['admin_nickname'].'','book_id desc,book_id')->execute(); 
// $output = '';
// $output .= '<li class="dropdown-menu-title"><span>Notifications OP</span></li>';
// $sssc = '1';
// //if(mysql_num_rows($ntq) > '0'){
// if($sssc > '0'){
// while($nt = mysql_fetch_assoc($ntq)){
// 		$ses = 'finance_list&id='.$nts['noti_trip'].'';
// 		$status_m = 'BT'.$nts['noti_book'].' <span style="color:red;font-weight:bold;">NO CFM!!!</span> '.$programe_b['programe_code'].'_'.$programe_b['airline_code'].' <span style="color:red;font-weight:bold;">NO CFM!!!</span> ';
// 	$output .= '';
// 	}
// 	$output .= '<li><a class="dropdown-menu-sub-footer" style="text-align:center;" href="http://www.bestindochina.com/backend/?url=notification2">ดูการแจ้งเตือนทั้งหมด</a></li>';
// } else {
// 	$output .= '<li><a class="dropdown-menu-sub-footer">ไม่มีการแจ้งเตือน</a></li>';
// }

// //$count = $sq['admin_noti'];

// $count = mysql_num_rows($sq);

// if($count == 0){
// 	$count = '0';
// }

// $ndata = array(
//    'notification' => $output,
//    'unseen_notification'  => $count
// );

// echo json_encode($ndata);

?>