From 1b80190b11dfa4b0e15c263b579271be4dc0a46c Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 18 Jun 2020 13:25:00 +0200 Subject: [PATCH] Add home page and navigation bar --- src/appointment.php | 15 +++++- src/forms/appointment_create_form.php | 37 ++++++++++++++ src/forms/header-footer.html | 27 ----------- src/forms/holiday_create_form.php | 13 +++++ src/forms/holiday_edit_form.php | 13 +++++ src/forms/patient_create_form.php | 13 +++++ src/forms/patient_edit_form.php | 12 +++++ src/forms/report_create_form.php | 70 +++++++++++++++++++++++++++ src/forms/report_edit_form.php | 69 ++++++++++++++++++++++++++ src/forms/user_create_form.html | 13 +++++ src/forms/user_edit_form.php | 14 ++++++ src/holiday.php | 15 +++++- src/index.php | 32 ++++++++++++ src/patient.php | 17 ++++++- src/report.php | 15 +++++- src/user.php | 23 +++++++-- static/style.css | 51 +++++++++++++++++++ 17 files changed, 412 insertions(+), 37 deletions(-) create mode 100644 src/forms/appointment_create_form.php delete mode 100644 src/forms/header-footer.html create mode 100644 src/forms/report_create_form.php create mode 100644 src/forms/report_edit_form.php create mode 100644 src/index.php diff --git a/src/appointment.php b/src/appointment.php index 74ad7ac..fe28847 100644 --- a/src/appointment.php +++ b/src/appointment.php @@ -14,6 +14,19 @@ -
+
+ +
+
diff --git a/src/forms/appointment_create_form.php b/src/forms/appointment_create_form.php new file mode 100644 index 0000000..ab7ff3a --- /dev/null +++ b/src/forms/appointment_create_form.php @@ -0,0 +1,37 @@ + + + + + + Gestión de citas + + + + + + + + + + +
+ +
+
+
+ + + +
+ +
+ diff --git a/src/forms/header-footer.html b/src/forms/header-footer.html deleted file mode 100644 index 9153b30..0000000 --- a/src/forms/header-footer.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - MDIS - - - - - -
- -
- - - diff --git a/src/forms/holiday_create_form.php b/src/forms/holiday_create_form.php index 207e89f..488a5b7 100644 --- a/src/forms/holiday_create_form.php +++ b/src/forms/holiday_create_form.php @@ -8,6 +8,19 @@ +
+ +
+
+ +
+
+ +
+
+ +
+ + + Gestión de usuarios + + + + + + +
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+ +
+ +
+ + diff --git a/src/forms/report_edit_form.php b/src/forms/report_edit_form.php new file mode 100644 index 0000000..48833de --- /dev/null +++ b/src/forms/report_edit_form.php @@ -0,0 +1,69 @@ + + + + Gestión de usuarios + + + + + +
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+ +
+ "> + +
+ + diff --git a/src/forms/user_create_form.html b/src/forms/user_create_form.html index e3f6210..1592100 100644 --- a/src/forms/user_create_form.html +++ b/src/forms/user_create_form.html @@ -8,6 +8,19 @@ +
+ +
diff --git a/src/forms/user_edit_form.php b/src/forms/user_edit_form.php index 8fd1acb..04c5f84 100644 --- a/src/forms/user_edit_form.php +++ b/src/forms/user_edit_form.php @@ -7,6 +7,20 @@ +
+ +
+ -
+
+ +
+
Crear
diff --git a/src/index.php b/src/index.php new file mode 100644 index 0000000..331cc65 --- /dev/null +++ b/src/index.php @@ -0,0 +1,32 @@ + + + + MDIS + + + + + +
+ +
+ +
+
+
+

MDIS

+

MDIS es un sistema de información que permite gestionar una consulta médica.

+
+
+
+ diff --git a/src/patient.php b/src/patient.php index d6ef947..76aada7 100644 --- a/src/patient.php +++ b/src/patient.php @@ -9,7 +9,20 @@ -
@@ -75,7 +88,7 @@ -
+ diff --git a/src/report.php b/src/report.php index 8b6a1a0..e48311c 100644 --- a/src/report.php +++ b/src/report.php @@ -9,7 +9,20 @@ -
diff --git a/src/user.php b/src/user.php index 703aa0a..e680c07 100644 --- a/src/user.php +++ b/src/user.php @@ -9,7 +9,20 @@ -
+
+ +
+
@@ -34,7 +47,7 @@ } foreach($list as $row) : - if(!$row[5]): + if(!$row[5]): ?> @@ -63,9 +76,9 @@ -
- Atrás -
+
+ Atrás +
diff --git a/static/style.css b/static/style.css index 3ecc511..80b88c9 100644 --- a/static/style.css +++ b/static/style.css @@ -94,3 +94,54 @@ form { border-radius: 3px; background: #800000; } + +header { + background: #5F9EA0; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 40px; + display: flex; + align-items: center; + box-shadow: 0 0 25px 0 black; +} + +header * { + display: inline; +} + +header li { + margin: 20px; +} + +header li a { + color: black; + text-decoration: none; +} + +main { + background: white; +} +.hero { + /* Sizing */ + width: 100vw; + height: 100vh; + + /* Flexbox stuff */ + display: flex; + justify-content: center; + align-items: center; + + /* Text styles */ + text-align: center; + color: white; + + /* Background styles */ + background-image: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)), url('https://www.pepperconstruction.com/sites/default/files/images/pmc1.jpg'); + background-size: cover; + background-position: center center; + background-repeat: no-repeat; + background-attachment: fixed; +} +