-
Notifications
You must be signed in to change notification settings - Fork 0
/
addnewdetails.html
136 lines (127 loc) · 4.03 KB
/
addnewdetails.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Digital Health Passport - Home</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
color: #333;
}
header {
background-color: #0a1664;
color: #fff;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="number"],
textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
textarea {
height: 100px;
}
input[type="file"] {
margin-top: 5px;
margin-bottom: 10px;
}
input[type="submit"] {
background-color: #171481;
color: #fff;
cursor: pointer;
border: none;
padding: 10px 20px;
border-radius: 4px;
}
input[type="submit"]:hover {
background-color: #29138b;
}
.add-new-details {
text-align: center;
}
#addNewDetailsBtn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin-top: 10px;
cursor: pointer;
border-radius: 4px;
}
button a{
text-decoration: none;
color: white;
}
#addNewDetailsBtn:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<header>
<h1>Digital Health Passport</h1>
</header>
<div class="container">
<h2>Welcome, Patient!</h2>
<p>Add New details:</p>
<form action="save_details.php" method="post">
<label for="full_name">Full Name:</label>
<input type="text" id="full_name" name="full_name" required>
<label for="age">Age:</label>
<input type="number" id="age" name="age" required>
<label for="gender">Gender:</label>
<select id="gender" name="gender">
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
<label for="address">Address:</label>
<textarea id="address" name="address" required></textarea>
<label for="medical_history">Medical History:</label>
<textarea id="medical_history" name="medical_history"></textarea>
<label for="medical_history_file">Upload Medical History File:</label>
<input type="file" id="medical_history_file" name="medical_history_file">
<input type="submit" value="Save Details">
</form>
<div class="add-new-details">
<button id="addNewDetailsBtn"> <a href="#">+ Add New Details</a></button>
</div>
</div>
<script>
document.getElementById("addNewDetailsBtn").onclick = function() {
// Your code to handle adding new details goes here
// alert("Add new details functionality is not implemented yet.");
}
</script>
</body>
</html>