$smarty->assign('full_page', 1); $list = get_bookinglist(); $smarty->assign('booking_list', $list['item']); $smarty->assign('filter', $list['filter']); $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $sort_flag = sort_flag($list['filter']); $smarty->assign($sort_flag['tag'], $sort_flag['img']); assign_query_info(); $smarty->display('booking_list.htm'); } /*------------------------------------------------------ */ //-- 翻页、排序 /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'query') { $list = get_bookinglist(); $smarty->assign('booking_list', $list['item']); $smarty->assign('filter', $list['filter']); $smarty->assign('record_count', $list['record_count']); $smarty->assign('page_count', $list['page_count']); $sort_flag = sort_flag($list['filter']); $smarty->assign($sort_flag['tag'], $sort_flag['img']); make_json_result($smarty->fetch('booking_list.htm'), '', array('filter' => $list['filter'], 'page_count' => $list['page_count'])); } /*------------------------------------------------------ */ //-- 删除缺货登记 /*------------------------------------------------------ */ if ($_REQUEST['act'] == 'remove') { check_authz_json('booking'); $id = intval($_GET['id']); $db->query("DELETE FROM " . $ecs->table('booking_goods') . " WHERE rec_id='{$id}'");
$roomno = $_POST['search']; $roomid = get_roomid($roomno); //$status = ''; } if ($_POST['optFind'] == $_L['RGL_guest']) { $name = $_POST['search']; //$status = ''; } if (isset($_POST['active'])) { $status = $_POST['active']; } break; } } $bookings = array(); get_bookinglist($bookings, $status, $name, $roomid); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="css/new.css" rel="stylesheet" type="text/css" /> <link href="css/styles.css" rel="stylesheet" type="text/css" /> <link type="text/css" rel="stylesheet" href="js/dhtmlgoodies_calendar.css" media="screen"></link> <script type="text/javascript" src="js/dhtmlgoodies_calendar.js"></script> <script type="text/javascript" src="js/datefuncs.js"></script> <title><?php echo $_L['MAIN_Title']; ?> </title>