-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreservation_search.php
75 lines (65 loc) · 1.8 KB
/
reservation_search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
include_once "php/connect.php";
$page="reservation";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<?php include_once("php/keywords.php");?>
<link rel="stylesheet" href="css/animate.min.css">
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/banner.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script>
if(!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
new WOW().init();
};
//搜索
$(function(){
$("#search").click(function(){
var cont1 = $("input").serialize();
$.ajax({
url:'php/reservation/search.php',
type:'post',
dataType:'text',
data:cont1,
success:function(result){
if (result=="进行搜索"){
var a = document.getElementById("name");
var b = document.getElementById("idnum");
window.location.href="reservation_search_result.php?"+"name="+a.value+"&idnum="+b.value;
}
else{
alert(result);
}
}
});
});
});
</script>
<style>
body{width:100%;height:100%;overflow: hidden;}
</style>
</head>
<body>
<!-- 头部 -->
<?php include_once("php/header.php");?>
<!--预约-->
<div class="yuyue">
<div class="yuyue3">
<p><input type="text" placeholder="请填写您的姓名" name="name" id="name"></p>
<p><input type="text" placeholder="请填写您的身份证号" name="idnum" id="idnum"></p>
<a href="javascript:void(0);" class="tj" id="search">查询预约</a>
</div>
<a href="reservation_search.php" class="cx">
<img src="images/chaxun.png">
<span>查询预约</span>
</a>
</div>
</body>
</html>
<?php
mysqli_close($link);
?>