-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadminReports.php
executable file
·63 lines (59 loc) · 2.5 KB
/
adminReports.php
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
<?php
// Start the session
include('control/connectionVars.php');
include('classes/User.php');
require_once('control/startSession.php');
// Insert the page header
$page_title = 'IL Summary Reports';
include('includes/header.php');
$jsOutput .= '
function formFunction() {
semester = $("#semester").val();
year = $("#year").val();
$("#linklist").html(\' \
<li><a href="outcomesTaughtMap.php?semester=\'+semester+\'&year=\'+year+\'">Outcomes Map - Taught</a></li> \
<li><a href="outcomesAssessedMap.php?semester=\'+semester+\'&year=\'+year+\'">Outcomes Map - Assessed</a></li> \
<li><a href="allSessionsByLibrarian.php?semester=\'+semester+\'&year=\'+year+\'">All Sessions By Librarian</a></li> \
<li><a href="allSessionsByCoursePrefix.php?semester=\'+semester+\'&year=\'+year+\'">All Sessions By Course Prefix</a></li> \
<li><a href="assessmentSummary.php?semester=\'+semester+\'&year=\'+year+\'">Assessment Summary</a></li> \
<li><a href="aySessionSummary.php?semester=\'+semester+\'&year=\'+year+\'">Academic Year Session Summary</a></li>\');
}
$("#semester").change(function(){formFunction()})
$("#year").change(function(){formFunction()})
formFunction();';
?>
<h2 id="introduction">Reports</h2>
<p>Please note: these reports are samples.</p>
<br>
<div id="adminReportsMenu" >
<form id="adminReportsForm" method="get" action="">
<label for="semester">Semester</label>
<select name="semester" id="semester">
<option value="any">Any</option>
<option value="spring">Spring</option>
<option value="summer">Summer</option>
<option value="fall">Fall</option>
</select>
<label for="year">Academic year ending in</label>
<select name="year" id="year">
<option value="any">Any</option>
<?php
// Should probably query the DB for range of years we have data for
for($i=date("Y"); $i>=2012; $i--) { echo "<option value='$i'>$i</option>"; }
?>
</select>
<br><br/>
<ul id="linklist">
<?php // This should immediately be overwritten by formFunction() -Webster ?>
<li><a href='outcomesTaughtMap.php'>Outcomes Map - Taught</a></li>
<li><a href='outcomesAssessedMap.php'>Outcomes Map - Assessed</a></li>
<li><a href='allSessionsByLibrarian.php'>All Sessions By Librarian (test)</a></li>
<li><a href='assessmentSummary.php'>Assessment Summary</a></li>
<li><a href='aySessionSummary.php'>Academic Year Session Summary</a></li>
</ul>
</form>
<br/>
</div>
<?php
include("includes/footer.php");
?>