-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearch.html
More file actions
73 lines (65 loc) · 2.6 KB
/
Search.html
File metadata and controls
73 lines (65 loc) · 2.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search </title>
<link rel="icon" href="img/logo.(1).PNG" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<title>Search Page</title>
<script>
function getParameterByName(name, url = window.location.href) {
name = name.replace(/[\[\]]/g, '\\$&');
const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
window.onload = function() {
const telephoneNum = getParameterByName('telephoneNum');
if (telephoneNum) {
document.getElementById("SearchFeild").value = telephoneNum;
}
}
</script>
</head>
<body id="seacrhbody">
<div class="heading-container">
<img src="img/logo.(1).PNG" alt="Logo" class="heading-image">
<h1 id="HeadingPlaceOrder">Search Order</h1>
</div>
<div class="input-container">
<input type="text" id="SearchFeild" >
<input type="button" value="Search" id="SearchBtn" onclick="getDetailsCustomer()">
</div>
<div class="input-container">
<label id="NameSearch" for="Itemcd">Name:</label>
<input type="text" id="NameSearchField" readonly>
</div>
<h1 id="OrderDetailSearch">Order Details</h1>
<table id="CustomerDetails" border="2">
<tr>
<th>Order ID</th>
<th>Order Qty</th>
<th>Total</th>
<th> Date</th>
</tr>
</table>
<div>
<label id="SubTot" for="SubTotTxt">Sub Tot:</label>
<input id="SubTotTxt" type="text" >
</div>
<div>
<input id="GetBillBtn" type="button" value="Bill" onclick="SetBill()">
<input id="BackBtnSerach" type="button" value="Back" onclick="location.href='page2.html'" >
</div>
<div id="toastBoxSearch">
</div>
<script src="https://unpkg.com/jspdf-invoice-template@1.4.0/dist/index.js"></script>
<script src="https://unpkg.com/jspdf-invoice-template@1.4.0/dist/index.js"></script>
<script src="app.js"></script>
<script src="Bill.js"></script>
</body>
</html>