-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remade homepage Therapist and ViewPatient
Old file still kept, new files: -homepageTherapist, will replace homeTherapist -viewPatinetInfo, will replace viewPatient
- Loading branch information
ms@Nicro
authored and
ms@Nicro
committed
Jan 18, 2024
1 parent
e2646cb
commit 2aa338e
Showing
8 changed files
with
628 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
*{ | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body{ | ||
height: 100vh; | ||
width: 100%; | ||
background: #7edcd4; | ||
} | ||
|
||
#container{ | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
align-content: center; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
#navbar{ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
text-align: center; | ||
background: white; | ||
width: 10%; | ||
height: 70%; | ||
border-radius: 50000px; | ||
margin-left: 10%; | ||
} | ||
|
||
#navbar > div{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
width: 100%; | ||
} | ||
|
||
#navIcons{ | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
|
||
#navIcons > div{ | ||
margin-top: 10%; | ||
margin-bottom: 10%; | ||
width: 100%; | ||
} | ||
|
||
#navIcons > div > img{ | ||
width: 25%; | ||
} | ||
|
||
#logoIcon{ | ||
width: 70%; | ||
margin-top: 20%; | ||
} | ||
|
||
#docInfo{ | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: 40%; | ||
} | ||
|
||
#docIcon{ | ||
width: 40%; | ||
margin-bottom: 2%; | ||
} | ||
|
||
#rightHalf{ | ||
margin-left: 10%; | ||
margin-right: 10%; | ||
width: 70%; | ||
height: 90%; | ||
} | ||
|
||
#bottomHalf{ | ||
margin-top: 5%; | ||
background: white; | ||
width: 100%; | ||
height: 75%; | ||
border-radius: 24px; | ||
} | ||
|
||
#topHalf{ | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-evenly; | ||
} | ||
|
||
#topHalf div{ | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-evenly; | ||
} | ||
|
||
.roundedWhite{ | ||
background: white; | ||
border-radius: 99999px; | ||
padding: 2% 5% 2% 5%; | ||
|
||
} | ||
|
||
input{ | ||
border: none; | ||
} | ||
|
||
#textInput{ | ||
width: 100% | ||
} | ||
|
||
#searchInput{ | ||
width: 100%; | ||
} | ||
|
||
#tableContainer{ | ||
display: flex; | ||
align-content: center; | ||
justify-content: center; | ||
max-height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
#tableContainer table{ | ||
width: 80% | ||
} | ||
|
||
#tableContainer table td{ | ||
align-items: center; | ||
text-align: center; | ||
} | ||
|
||
#content{ | ||
height: 100%; | ||
} | ||
|
||
#searchDiv{ | ||
width: 50%; | ||
} | ||
|
||
|
||
.table-header th { | ||
background-color: #f2f2f2; | ||
} | ||
|
||
tr:nth-child(even) { | ||
background-color: #f9f9f9; | ||
} | ||
|
||
tr:nth-child(odd) { | ||
background-color: #ffffff; | ||
} | ||
|
||
|
||
tr.hoverable-row:hover { | ||
background-color: #e6f7ff; | ||
} | ||
|
||
.tdButton{ | ||
cursor: pointer; | ||
color: deepskyblue; | ||
} | ||
|
||
#scrollableDiv { | ||
display: flex; | ||
align-content: center; | ||
justify-content: center; | ||
width: 100%; | ||
max-height: 100%; | ||
overflow-y: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#patientInfo { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 20%; | ||
} | ||
|
||
#patientInfo > table { | ||
width: 90%; | ||
max-width: 100%; | ||
} | ||
|
||
#buttonDivs { | ||
margin-top: 5%; | ||
margin-bottom: 5%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-evenly; | ||
} | ||
|
||
#moreInfo{ | ||
height: 50%; | ||
} | ||
|
||
#buttonDivs div{ | ||
flex: 1; | ||
display: flex; | ||
align-items: center; | ||
text-align: center; | ||
align-content: center; | ||
justify-content: space-around; | ||
} | ||
|
||
#buttonDivs button{ | ||
background: #199a8e; | ||
border: none; | ||
border-radius: 25px; | ||
width: 50%; | ||
padding: 3% 4%; | ||
color: white; | ||
cursor: pointer; | ||
} | ||
|
||
#chartDiv{ | ||
position: relative; | ||
margin: auto; | ||
height: 90%; | ||
width: 90%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
$(document).ready(function () { | ||
$("#home").click(() => redirect("homepageTherapist.jsp")); | ||
$("#message").click(() => redirect("messageCenter.jsp")); | ||
$("#agenda").click(() => redirect("schedule.jsp")); | ||
$("#profile").click(() => redirect("userArea.jsp")); | ||
|
||
|
||
let tableContainer = $("#tableContainer"); | ||
|
||
// Aggiungi un gestore di eventi all'input di ricerca | ||
$('#searchInput').on('input', function () { | ||
let searchText = $(this).val().toLowerCase(); | ||
|
||
// Nascondi tutte le righe | ||
tableContainer.find('tbody').css('marginTop', '0'); // Using jQuery methods | ||
|
||
// Filtra e mostra solo le righe che corrispondono alla ricerca | ||
$('tbody tr').each(function () { | ||
let name = $(this).find('td:eq(1)').text().toLowerCase(); | ||
let lastName = $(this).find('td:eq(2)').text().toLowerCase(); | ||
|
||
if (name.includes(searchText) || lastName.includes(searchText)) { | ||
$(this).show(); | ||
} else { | ||
$(this).hide(); | ||
} | ||
}); | ||
}); | ||
}); | ||
|
||
|
||
|
||
function openInvitePopup() { | ||
$("#invitePopup").show(); | ||
} | ||
|
||
function viewPatient(i){ | ||
window.location.href = "viewPatientInfo.jsp?patientID="+i; | ||
} | ||
|
||
|
||
function redirect(where){ | ||
window.location.href = where; | ||
} |
Oops, something went wrong.