-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdashboard.fxml
244 lines (242 loc) · 14 KB
/
dashboard.fxml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.chart.BarChart?>
<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.NumberAxis?>
<?import javafx.scene.control.Accordion?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1009.0" styleClass="gradient-background" stylesheets="@styles.css" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.hopeitworks.HelloController">
<top>
<HBox alignment="BOTTOM_LEFT" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="51.0" prefWidth="1002.0" BorderPane.alignment="CENTER">
<children>
<Label alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="53.0" prefWidth="214.0" styleClass="shadow" text="Admin Dashboard">
<font>
<Font name="Berlin Sans FB" size="20.0" />
</font>
</Label>
<Label alignment="BASELINE_LEFT" contentDisplay="BOTTOM" prefHeight="17.0" prefWidth="199.0" styleClass="container1" text=" Last Updated : 21:55 10/09/22" textFill="#037c7c">
<font>
<Font name="Berlin Sans FB" size="14.0" />
</font>
</Label>
<HBox prefHeight="51.0" prefWidth="555.0" />
<ImageView fitHeight="60.0" fitWidth="50.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../images/[email protected]" />
</image>
</ImageView>
</children>
</HBox>
</top>
<left>
<VBox prefHeight="549.0" prefWidth="206.0" styleClass="container" stylesheets="@styles.css" BorderPane.alignment="CENTER">
<children>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="212.0" styleClass="container" stylesheets="@styles.css">
<children>
<ImageView fitHeight="38.0" fitWidth="45.0" pickOnBounds="true" preserveRatio="true" styleClass="shadow">
<image>
<Image url="@../../../images/person.png" />
</image>
</ImageView>
<Label prefHeight="41.0" prefWidth="143.0" styleClass="shadow" stylesheets="@styles.css" text=" Kainaat Zaidi">
<font>
<Font name="Berlin Sans FB" size="18.0" />
</font>
</Label>
</children>
</HBox>
<Label prefHeight="17.0" prefWidth="218.0" styleClass="line-color" stylesheets="@styles.css" text=" --------------------------------------" />
<VBox prefHeight="419.0" prefWidth="207.0" styleClass="container" stylesheets="@styles.css">
<children>
<HBox alignment="CENTER" layoutX="10.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="80.0" prefWidth="206.0" styleClass="line-color" stylesheets="@styles.css">
<children>
<ImageView fitHeight="35.0" fitWidth="54.0" pickOnBounds="true" preserveRatio="true" styleClass="shadow">
<image>
<Image url="@../../../images/chart_bar.png" />
</image>
</ImageView>
<Button mnemonicParsing="false" prefHeight="35.0" prefWidth="145.0" styleClass="line-color" stylesheets="@styles.css" text="Dashboard" textFill="#037c7c">
<font>
<Font name="Book Antiqua" size="18.0" />
</font>
</Button>
</children>
</HBox>
<HBox alignment="CENTER" layoutX="10.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="80.0" prefWidth="206.0" styleClass="line-color" stylesheets="@styles.css">
<children>
<ImageView fitHeight="35.0" fitWidth="41.0" pickOnBounds="true" preserveRatio="true" styleClass="shadow">
<image>
<Image url="@../../../images/observation.png" />
</image>
</ImageView>
<Button mnemonicParsing="false" onAction="#onBedInfoButtonClick" prefHeight="35.0" prefWidth="145.0" styleClass="line-color" stylesheets="@styles.css" text="Bed Info" textFill="#037c7c">
<font>
<Font name="Book Antiqua" size="18.0" />
</font>
</Button>
</children>
</HBox>
<HBox alignment="CENTER" layoutX="10.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="80.0" prefWidth="206.0" styleClass="line-color" stylesheets="@styles.css">
<children>
<ImageView fitHeight="35.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true" styleClass="shadow">
<image>
<Image url="@../../../images/health_worker_form%20(1).png" />
</image>
</ImageView>
<Button mnemonicParsing="false" onAction="#onPatientInfoButtonClick" prefHeight="35.0" prefWidth="145.0" styleClass="line-color" stylesheets="@styles.css" text="Patient's Info" textFill="#037c7c">
<font>
<Font name="Book Antiqua" size="18.0" />
</font>
</Button>
</children>
</HBox>
<HBox alignment="CENTER" layoutX="10.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="80.0" prefWidth="206.0" styleClass="line-color" stylesheets="@styles.css">
<children>
<ImageView fitHeight="35.0" fitWidth="54.0" pickOnBounds="true" preserveRatio="true" styleClass="shadow">
<image>
<Image url="@../../../images/money_bag.png" />
</image>
</ImageView>
<Button mnemonicParsing="false" onAction="#onRevenueButtonClick" prefHeight="35.0" prefWidth="145.0" styleClass="line-color" stylesheets="@styles.css" text="Revenue" textFill="#037c7c">
<font>
<Font name="Book Antiqua" size="18.0" />
</font>
</Button>
</children>
</HBox>
</children>
</VBox>
</children>
</VBox>
</left>
<center>
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="552.0" prefWidth="527.0" spacing="10.0" BorderPane.alignment="CENTER">
<children>
<Accordion />
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="0.0" minWidth="0.0" prefHeight="123.0" prefWidth="520.0">
<children>
<HBox layoutX="-1.0" layoutY="-7.0" maxWidth="-Infinity" minWidth="-Infinity" prefHeight="65.0" prefWidth="501.0" spacing="20.0" styleClass="container" stylesheets="@styles.css">
<children>
<Label alignment="CENTER" layoutX="10.0" layoutY="10.0" prefHeight="66.0" prefWidth="256.0" styleClass="shadow" text=" Total Admitted Patients " textFill="TEAL">
<font>
<Font name="Book Antiqua" size="18.0" />
</font>
</Label>
<Label alignment="CENTER" layoutX="10.0" layoutY="10.0" prefHeight="70.0" prefWidth="214.0" styleClass="shadow" text="Total Nurses :" textFill="TEAL">
<font>
<Font name="Book Antiqua" size="18.0" />
</font>
</Label>
</children>
<opaqueInsets>
<Insets bottom="20.0" />
</opaqueInsets>
</HBox>
<HBox layoutX="-1.0" layoutY="57.0" prefHeight="61.0" prefWidth="501.0" styleClass="container" stylesheets="@styles.css">
<children>
<ImageView fitHeight="51.0" fitWidth="59.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../images/man.png" />
</image>
</ImageView>
<Label alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="61.0" prefWidth="89.0" styleClass="shadow" stylesheets="@styles.css" text=" : 784" textFill="TEAL">
<font>
<Font name="Book Antiqua Bold" size="18.0" />
</font>
</Label>
<Label alignment="CENTER" layoutX="176.0" layoutY="10.0" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="61.0" prefWidth="204.0" styleClass="shadow" stylesheets="@styles.css" text=" ">
<font>
<Font name="Book Antiqua Bold" size="18.0" />
</font>
</Label>
<ImageView fitHeight="51.0" fitWidth="59.0" layoutX="125.0" layoutY="10.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../../../images/nurse.png" />
</image>
</ImageView>
<Label alignment="CENTER" layoutX="176.0" layoutY="10.0" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="61.0" prefWidth="46.0" styleClass="shadow" stylesheets="@styles.css" text=" : 612" textFill="TEAL">
<font>
<Font name="Book Antiqua Bold" size="18.0" />
</font>
</Label>
</children>
</HBox>
</children>
<opaqueInsets>
<Insets bottom="50.0" />
</opaqueInsets>
</AnchorPane>
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="33.0" prefWidth="550.0">
<children>
<Label prefHeight="59.0" prefWidth="550.0" styleClass="container1" stylesheets="@styles.css" textFill="#66b2b2">
<font>
<Font name="Berlin Sans FB" size="18.0" />
</font>
</Label>
</children>
</HBox>
<BarChart maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="343.0" prefWidth="500.0" stylesheets="@styles.css" title="Bed Occupancy">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</BarChart>
</children>
<padding>
<Insets left="15.0" />
</padding>
</VBox>
</center>
<right>
<VBox alignment="TOP_RIGHT" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="551.0" prefWidth="260.0" spacing="10.0" styleClass="shadow" stylesheets="@styles.css" BorderPane.alignment="CENTER_LEFT">
<children>
<TextField prefHeight="31.0" prefWidth="260.0" text="Search Bar">
<font>
<Font name="Book Antiqua" size="12.0" />
</font>
</TextField>
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="503.0" prefWidth="260.0">
<children>
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="43.0" prefWidth="260.0">
<children>
<DatePicker prefHeight="25.0" prefWidth="262.0" />
</children>
</HBox>
<HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="104.0" prefWidth="260.0" />
<HBox layoutX="10.0" layoutY="252.0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="389.0" prefWidth="260.0">
<children>
<LineChart maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="324.0" prefWidth="260.0" title="Current Bed Occupancy Rate">
<xAxis>
<CategoryAxis prefHeight="0.0" prefWidth="203.0" side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
</children>
</HBox>
</children>
</VBox>
</children>
<opaqueInsets>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</opaqueInsets>
<padding>
<Insets bottom="10.0" />
</padding>
</VBox>
</right>
</BorderPane>