-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
91 lines (87 loc) · 2.68 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Insert and Update Data</title>
<style>
body {
font-family: Arial, sans-serif;
background: linear-gradient(to right, #6a11cb, #2575fc);
color: #333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
padding: 30px;
max-width: 400px;
width: 100%;
}
h2 {
color: #333;
text-align: center;
margin-top: 0;
font-size: 24px;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-top: 15px;
font-weight: bold;
font-size: 14px;
}
input[type="text"],
input[type="date"] {
padding: 12px;
border-radius: 6px;
border: 1px solid #ccc;
margin-top: 8px;
font-size: 16px;
}
button {
margin-top: 20px;
padding: 12px;
border: none;
border-radius: 6px;
cursor: pointer;
background-color: #4CAF50;
color: white;
font-size: 16px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
.message {
margin-top: 20px;
text-align: center;
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<h2>Insert and Update Data</h2>
<form action="process.php" method="POST">
<label for="po_no">PO No:</label>
<input type="text" id="po_no" name="po_no" pattern="\d*" title="Only numbers are allowed" required>
<label for="po_date">PO Date:</label>
<input type="date" id="po_date" name="po_date" required>
<label for="emp_code">Employee Code:</label>
<input type="text" id="emp_code" name="emp_code" required>
<label for="supp_no">Supplier No:</label>
<input type="text" id="supp_no" name="supp_no" pattern="\d*" title="Only numbers are allowed" required>
<button type="submit" name="action" value="insert">Insert</button>
<button type="submit" name="action" value="update">Update</button>
</form>
</div>
</body>
</html>