Skip to content

Commit

Permalink
minor fix schedule.jsp
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDrag0 committed Jan 16, 2024
1 parent 763b8bc commit 87d6a01
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/main/webapp/JSP/schedule.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
<title>TalkAId - Schedule Prenotazioni</title>
<link rel="stylesheet" type="text/css" href="../CSS/schedule.css">
</head>
<script>
var nuovaData
function formattaData(data) {
var partiData = data.split("-");
nuovaData = partiData[2] + "/" + partiData[1];
return nuovaData;
}
</script>
<body onload="controllaPopup();">
<div id="calendar">
<div class="header">
Expand Down Expand Up @@ -80,7 +89,7 @@
%>
<form action="<%=request.getContextPath()%>/ScheduleServlet" id="myprenotlog" method="post">
<tr>
<th><%=schedule.getDate()%></th>
<th><script>document.write(formattaData('<%=schedule.getDate()%>'));</script></th>
<th><%=schedule.getTimeSlot()%></th>
<%
if(schedule.getReserved()==0){
Expand Down Expand Up @@ -134,7 +143,7 @@
%>
<form action="<%=request.getContextPath()%>/ScheduleServlet" id="myschedlog" method="post">
<tr>
<th><%=schedule.getDate()%></th>
<th><script>document.write(formattaData('<%=schedule.getDate()%>'));</script></th>
<th><%=schedule.getTimeSlot()%></th>
<%
if(schedule.getReserved()==0){
Expand Down Expand Up @@ -197,7 +206,7 @@
<form action="<%=request.getContextPath()%>/ScheduleServlet" id="myprenotpaz" method="post">
<tr>
<th><%=data.getFirstname()%> <%=data.getLastname()%></th>
<th><%=schedule.getDate()%></th>
<th><script>document.write(formattaData('<%=schedule.getDate()%>'));</script></th>
<th><%=schedule.getTimeSlot()%></th>
<input type="hidden" name="idTherapist" value="<%=schedule.getIdTherapist()%>">
<input type="hidden" name="date" value="<%=schedule.getDate()%>">
Expand Down Expand Up @@ -243,7 +252,7 @@
<form action="<%=request.getContextPath()%>/ScheduleServlet" id="disprenotpaz" method="post">
<tr>
<th><%=data.getFirstname()%> <%=data.getLastname()%></th>
<th><%=schedule.getDate()%></th>
<th><script>document.write(formattaData('<%=schedule.getDate()%>'));</script></th>
<th><%=schedule.getTimeSlot()%></th>
<input type="hidden" name="idTherapist" value="<%=schedule.getIdTherapist()%>">
<input type="hidden" name="date" value="<%=schedule.getDate()%>">
Expand Down Expand Up @@ -292,6 +301,7 @@
function chiudiPopup() {
document.getElementById('popup').style.display = 'none';
}
</script>
<div id="navbarContainer">
<jsp:include page="navbar.jsp"></jsp:include>
Expand Down

0 comments on commit 87d6a01

Please sign in to comment.