-
Notifications
You must be signed in to change notification settings - Fork 12
/
cust_search.php
executable file
·49 lines (44 loc) · 1.45 KB
/
cust_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
<!DOCTYPE HTML>
<?PHP
require 'functions.php';
checkLogin();
$db_link = connect();
?>
<html>
<!-- HTML HEAD -->
<?PHP includeHead('Customer Search',1); ?>
<body>
<!-- MENU -->
<?PHP includeMenu(2); ?>
<div id="menu_main">
<a href="cust_search.php" id="item_selected">Search</a>
<a href="cust_new.php">New Customer</a>
<a href="cust_act.php">Active Customers</a>
<a href="cust_inact.php">Inactive Customers</a>
</div>
<!-- CONTENT: Customer Search -->
<div class="content_center">
<?PHP
if ($_SESSION['set_csi'] == 1)
echo '
<form action="customer.php" method="get" style="margin-bottom:4.5em;">
<p class="heading">Quick Search by ID</p>
<input type="text" name="cust" placeholder="Customer ID" />
<input type="submit" value="Search" />
</form>';
?>
<form action="cust_result.php" method="post">
<p class="heading">Detailed Customer Search</p>
<input type="text" name="cust_search_no" placeholder="Number or number part" tabindex=1 />
<br/><br/>
<input type="text" name="cust_search_name" placeholder="Name or name part" tabindex=2 />
<br/><br/>
<input type="text" name="cust_search_occup" placeholder="Occupation or part" tabindex=3 />
<br/><br/>
<input type="text" name="cust_search_addr" placeholder="Address or address part" tabindex=4 />
<br/><br/><br/>
<input type="submit" name="cust_search" value="Search" tabindex=5 />
</form>
</div>
</body>
</html>