-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransaction.html
96 lines (88 loc) · 2.94 KB
/
transaction.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transaction Form</title>
<link rel="stylesheet" href="../reports/report_header.css">
<header>
<nav>
<div class="logo">Warehouse Inventory System</div>
<ul class="nav-links">
<li><a href="transaction.html">Home</a></li>
<li><a href="../add_product.html">Product</a></li>
<li><a href="../view_product.html">Reports</a></li>
</ul>
</nav>
</header>
<style>
/* CSS styles */
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
padding: 0px;
margin: 0;
}
h2 {
text-align: center;
}
form {
width: 60%;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
form label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
form input[type="text"],
form input[type="number"],
form select {
width: calc(100% - 20px);
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
form input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
form input[type="submit"]:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<!-- Transaction Form -->
<form action="transaction.php" method="POST">
<h2>Transaction Form</h2>
<label for="productId">Product ID:</label>
<input type="text" id="productId" name="productId" required>
<label for="transactionType">Transaction Type:</label>
<select id="transactionType" name="transactionType" required>
<option value="sale">Sale</option>
<option value="purchase">Purchase</option>
</select>
<label for="quantity">Quantity:</label>
<input type="number" id="quantity" name="quantity" required>
<label for="costPerUnit">Cost Per Unit:</label>
<input type="number" id="costPerUnit" name="costPerUnit" step="0.01" required>
<label for="account_id">Account ID:</label>
<input type="text" id="account_id" name="account_id" required>
<input type="submit" value="Submit">
</form>
</body>
</html>