-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfullfillrequest.php
More file actions
151 lines (128 loc) · 2.93 KB
/
fullfillrequest.php
File metadata and controls
151 lines (128 loc) · 2.93 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html>
<head>
<title>ADD Item </title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
/* Style the header */
header {
background-color: #666;
padding: 30px;
text-align: center;
font-size: 35px;
color: white;
}
/* Create two columns/boxes that floats next to each other */
nav {
float: left;
width: 30%;
height: 300px; /* only for demonstration, should be removed */
background: #ccc;
padding: 20px;
}
/* Style the list inside the menu */
nav ul {
list-style-type: none;
padding: 0;
}
article {
float: left;
padding: 20px;
width: 70%;
background-color: #f1f1f1;
height: 300px; /* only for demonstration, should be removed */
}
/* Clear floats after the columns */
section:after {
content: "";
display: table;
clear: both;
}
/* Style the footer */
footer {
background-color: #777;
padding: 10px;
text-align: center;
color: white;
}
/* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
@media (max-width: 600px) {
nav, article {
width: 100%;
height: auto;
}
}
<?php
session_start();
?>
</style>
</head>
<body
<div id="frm">
<header>
<h2>Notification Request For Items</h2>
</header>
<footer>
<form method="post" action="additem2.php">
<p>
<label><b>Product Name:</b></label>
<input type="text" name="Name" class="textInput"/>
</p>
<p>
<label><b>Quantity:</b></label>
<input type="text" name="quantity" class="textInput"/>
</p>
<p>
<label><b>Id:</b></label>
<input type="text" name="id" class="textInput"/>
</p>
<p>
<p>
<input type="Submit" name="register_btn" value="Register"/>
</p>
<input type="Submit" name="addproduct" value="Add Product">
</form>
</div>
</footer>
<nav>
</nav>
<article>
<?php
$db_username = 'root';
$db_password = '';
$db_name = 'users';
$db_host = 'localhost';
//connect to MySql
$mysqli = new mysqli($db_host, $db_username, $db_password,$db_name);
if ($mysqli->connect_error) {
die('Error : ('. $mysqli->connect_errno .') '. $mysqli->connect_error);
}
/*
$sql = "SELECT quantity,Name,modelnumber FROM request";
$result = $mysqli->query($sql);
if ($result->num_rows > 0) {
// output data of each row
$count=0;
while($row = $result->fetch_assoc()) {
$count=$count+1;
echo " <br><b>Request No :</b> ".$count."<br>"."<br> NAME: ". $row["Name"]. "<br> Model Number: ". $row["modelnumber"]."<br> Quantity: ". $row["quantity"]."<br>";
}
}
*/
echo $_SESSION["msg"];
echo $_SESSION["quantity"];
//echo $_SESSION["name"];
?>
<ul class="navbar-nav nav-dropdown" data-app-modern-menu="true"><li class="nav-item">
<a class="nav-link link text-white display-4" href="">
Remove Notification
</a>
</li></ul>
</article>
</body>
</html>