Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs427fa20team22
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
htmoss2
cs427fa20team22
Commits
18dfd3cd
Commit
18dfd3cd
authored
4 years ago
by
sbobo3
Browse files
Options
Downloads
Patches
Plain Diff
JSP for cause-of-death trends report and update to menu page
parent
c24ad373
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
Uc20
,
!2
UC20 Data Access Object Completed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iTrust/WebRoot/auth/hcp/causeOfDeathTrendsReport.jsp
+94
-0
94 additions, 0 deletions
iTrust/WebRoot/auth/hcp/causeOfDeathTrendsReport.jsp
iTrust/WebRoot/auth/hcp/menu.jsp
+2
-0
2 additions, 0 deletions
iTrust/WebRoot/auth/hcp/menu.jsp
with
96 additions
and
0 deletions
iTrust/WebRoot/auth/hcp/causeOfDeathTrendsReport.jsp
0 → 100644
+
94
−
0
View file @
18dfd3cd
<%@taglib
uri=
"/WEB-INF/tags.tld"
prefix=
"itrust"
%>
<%@page
errorPage=
"/auth/exceptionHandler.jsp"
%>
<%@page
import=
"edu.ncsu.csc.itrust.dao.mysql.CauseOfDeathTrendsReportDAO"
%>
<%@page
import=
"java.util.List"
%>
<%@page
import=
"java.sql.Date"
%>
<%@include
file=
"/global.jsp"
%>
<%
pageTitle
=
"iTrust - View Cause-Of-Death Trends Report"
;
String
view
=
request
.
getParameter
(
"viewSelect"
);
%>
<%@include
file=
"/header.jsp"
%>
<%
CauseOfDeathTrendsReportDAO
report
=
new
CauseOfDeathTrendsReportDAO
(
prodDAO
);
List
<
String
>
allDeaths
=
null
;
//get form data
//Date startDate = Date.valueOf(request.getParameter("startDate"));
//Date endDate = Date.valueOf(request.getParameter("endDate"));
Date
startDate
=
Date
.
valueOf
(
"2020-09-20"
);
Date
endDate
=
Date
.
valueOf
(
"2020-10-30"
);
//String gender = request.getParameter("gender");
allDeaths
=
report
.
getTopTwoDeathsForAll
(
"All"
,
startDate
,
endDate
);
%>
<br
/>
<form
action=
"causeOfDeathTrendsReport.jsp"
method=
"post"
id=
"formMain"
>
<input
type=
"hidden"
name=
"viewSelect"
value=
"trends"
/>
<table
class=
"fTable"
align=
"center"
id=
"causeOfDeathTrendsReportTable"
>
<tr>
<th
colspan=
"4"
>
Cause of Death Trends Report
</th>
</tr>
<tr
class=
"subHeader"
>
<td>
Patients:
</td>
<td>
<select
name=
"viewSelect"
style=
"font-size:10"
>
<option
value=
""
>
All Patients
</option>
<option
value=
""
>
My Patients
</option>
</select>
</td>
<td>
Gender:
</td>
<td>
<select
name=
"gender"
style=
"font-size:10"
>
<option
value=
"All"
>
All
</option>
<option
value=
"Male"
>
Male
</option>
<option
value=
"Female"
>
Female
</option>
</select>
</td>
</tr>
<tr
class=
"subHeader"
>
<td>
Start Date:
</td>
<td>
<input
name=
"startDate"
value=
"
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
startDate
))
%>
"
size=
"10"
>
<input
type=
button
value=
"Select Date"
onclick=
"displayDatePicker('startDate');"
>
</td>
<td>
End Date:
</td>
<td>
<input
name=
"endDate"
value=
"
<%=
StringEscapeUtils
.
escapeHtml
(
""
+
(
endDate
))
%>
"
size=
"10"
>
<input
type=
button
value=
"Select Date"
onclick=
"displayDatePicker('endDate');"
>
</td>
</tr>
<tr>
<td
colspan=
"4"
style=
"text-align: center;"
><input
type=
"submit"
id=
"view_report"
value=
"View Report"
></td>
</tr>
</table>
</form>
<br
/>
<%
if
(
allDeaths
!=
null
)
{
%>
<table
class=
"fTable"
align=
"center"
id=
"trendReport"
>
<tr>
<th>
Trends Report
</th>
</tr>
<tr
style=
"text-align:center;"
>
<td><%=
allDeaths
%></td>
</tr>
</table>
<%
}
%>
<br
/>
<%@include
file=
"/footer.jsp"
%>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
iTrust/WebRoot/auth/hcp/menu.jsp
+
2
−
0
View file @
18dfd3cd
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
<li><a
href=
"/iTrust/auth/hcp-nutritionist/macronutrients.jsp"
>
Patient Macronutrient Intake
</a>
<li><a
href=
"/iTrust/auth/hcp-nutritionist/macronutrients.jsp"
>
Patient Macronutrient Intake
</a>
<li><a
href=
"/iTrust/auth/hcp-fitness/viewExerciseDiaries.jsp"
>
Patient Exercise Diaries
</a>
<li><a
href=
"/iTrust/auth/hcp-fitness/viewExerciseDiaries.jsp"
>
Patient Exercise Diaries
</a>
<li><a
href=
"/iTrust/auth/hcp/viewSleepDiaries.jsp"
>
Patient Sleep Diaries
</a>
<li><a
href=
"/iTrust/auth/hcp/viewSleepDiaries.jsp"
>
Patient Sleep Diaries
</a>
<li><a
href=
"/iTrust/auth/hcp/causeOfDeathTrendsReport.jsp"
>
Cause-Of-Death Trends Report
</a>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment