forked from anirban0328/Restaurant-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewbill.php
46 lines (45 loc) · 820 Bytes
/
newbill.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
<?php
session_start();
if(!isset($_SESSION[username]))
{
header("Location:index.php");
exit;
}
?>
<html>
<head>
<link href="stylesheets/main.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
include("header.php");
include("javascript/validate.php");
?>
<?php
$i=1;
echo '
<div align="center">
<form id="d" action="addbill.php" method="post" onsubmit="return validate()" >
<table border="1">
<tr>
<th>ITEM ID</th>
<th>QUANTITY</th>
</tr>';
while($i<=10)
{
$item_id="itemid".$i;
$qty="qty".$i;
echo '<tr>
<td> <input type="text" name="'.$item_id.'" value="" id="'.$item_id.'" />
<td> <input type="text" name="'.$qty.'" value="" id="'.$qty.'"/>
</tr>';
$i++;
}
echo '
</table>
<input type="submit" value="SUBMIT"/>
</form>
</div>';
?>
</body>
</html>