-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustomertype.php
More file actions
76 lines (62 loc) · 1.56 KB
/
Copy pathcustomertype.php
File metadata and controls
76 lines (62 loc) · 1.56 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
74
75
76
<?php
include ("adminheader.php");
include_once('Config.php');
$temp=$pro->find();
?>
<br>
<br>
<center>
<?php
if(isset($_POST["select_cus"]))
{
//echo "hello";
if(!$_POST['cus_type'])
{
echo "<script type='text/javascript'>alert('Please Select Item'); window.location.href='take_order.php';</script>";
}
if($_POST['cus_type']=="Daily")
{
echo "<h1>Take Order for ".$_POST['cus_type']." Customer</h1>";
?>
<br>
<form action="setcustomer.php" method="POST">
<label>Select Your unique User Name of Customer :
<select name="user_type" name="pro_type" >
<?php foreach ($temp as $res) {
if($res['Customer'])
{
if($res['Customer']['U_name']=="admin")
{
continue;
}
?>
<option ><?php echo $res['Customer']['U_name']?></option>
<?php
}
}?>
</select>
<input type="hidden" name="User_Type" value="Daily">
<input type="submit" name="select" value="Take Order">
</label>
</form>
<?php
}
if($_POST['cus_type']=="General")
{
echo "<h1>Take Order for ".$_POST['cus_type']." Customer</h1>";
?>
<br>
<form action="setcustomer.php" method="POST">
<label>Enter Customer Name :
<input type="text" name="user_type" value="">
<input type="hidden" name="User_Type" value="General">
<input type="submit" name="select" value="Take Order" >
</label>
</form>
</center>
<?php
}
?>
<?php
}
?>