-
Notifications
You must be signed in to change notification settings - Fork 0
/
reports.php
134 lines (132 loc) · 7.11 KB
/
reports.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
require_once($_SERVER["DOCUMENT_ROOT"] . '/../Support/configEnglishContestAdmin.php');
require_once($_SERVER["DOCUMENT_ROOT"] . '/../Support/basicLib.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LSA-<?php echo "$contestTitle";?> Writing Contests</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="LSA-English Writing Contests">
<meta name="keywords" content="LSA-English, Hopwood, Writing, UniversityofMichigan">
<meta name="author" content="LSA-MIS_rsmoke">
<link rel="icon" href="img/favicon.ico">
<script type='text/javascript' src='js/webforms2.js'></script>
<link rel="stylesheet" href="css/bootstrap.min.css"><!-- 3.3.1 -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/bootstrap-formhelpers.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/normalize.css" media="all">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/default.css" media="all">
<style type="text/css">
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance:textfield;
}
</style>
<base href=<?php echo URL ?>>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="index.php"><?php echo "$contestTitle";?></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Signed in as <?php echo $login_name;?><strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="index.php"><?php echo "$contestTitle";?> main</a>
</li>
<li>
<a href="https://weblogin.umich.edu/cgi-bin/logout">logout</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<?php if ($isAdmin) {
?>
<div class="container"><!-- container of all things -->
<div class="row clearfix">
<div class="col-md-12">
<div class="btn-toolbar pagination-centered" role="toolbar" aria-label="admin_button_toolbar">
<div class="btn-group" role="group" aria-label="contest_management">
<a id="backToIndexBtn" type="button" class="btn btn-xs btn-default" href="index.php"><i class="fa fa-home" aria-hidden="true"></i></a>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-12">
<div class="btn-toolbar pagination-centered" role="toolbar" aria-label="report_button_toolbar">
<div class="btn-group" role="group" aria-label="contest_applicants">
<button id="reportFinAidBtn" type="button" class="btn btn-success">Financial Aid</button>
</div>
<div class="btn-group" role="group" aria-label="contest_applicants">
<button id="reportRecLetterBtn" type="button" class="btn btn-success">Reference Letter Required</button>
</div>
<div class="btn-group-vertical pull-right" role="group" aria-label="contest_applicants">
<a id="ktchensinkBtn" type="button" class="btn btn-xs btn-warning" href="kitchensink.php" data-toggle="tooltip" data-placement="right" title="Click to download details of all the applications for the current contests"><i class="fa fa-download"></i> Details of Current Contests Entries</a>
<a id="ktchensinkBtn" type="button" class="btn btn-xs btn-default" href="kitchensinkAll.php" data-toggle="tooltip" data-placement="right" title="Click to download details of all the applications ever submitted"><i class="fa fa-download"></i> Details of ALL Entries Since 2015</a>
<a id="localEvalDownloadBtn" type="button" class="btn btn-xs btn-info" href="localEvalDownload.php" data-toggle="tooltip" data-placement="right" title="Click to download all submitted Local evaluations"><i class="fa fa-download"></i> All Local Evaluations</a>
<a id="natEvalDownloadBtn" type="button" class="btn btn-xs btn-info" href="natEvalDownload.php" data-toggle="tooltip" data-placement="right" title="Click to download all submitted National evaluations"><i class="fa fa-download"></i> All National Evaluations</a>
<hr>
<a href="nationalcommentsemail.php" type='button' id='send_national_comments' class='btn btn-xs btn-warning'>Send National Comments</a>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-12">
<div id="outputReports">
<span id="outputReportData"></span>
</div>
</div>
</div>
<?php
} else {
?>
<!-- if there is not a record for $login_name display the basic
information form. Upon submitting this data display the contest available
section -->
<div id="notAdmin">
<div class="row clearfix">
<div class="col-md-12">
<div id="instructions" style="color:sienna;">
<h1 class="text-center" >You are not authorized to this space!!!</h1>
<h4>University of Michigan - LSA Computer System Usage Policy</h4>
<p>This is the University of Michigan information technology environment. You
MUST be authorized to use these resources. As an authorized user, by your use
of these resources, you have implicitly agreed to abide by the highest
standards of responsibility to your colleagues, -- the students, faculty,
staff, and external users who share this environment. You are required to
comply with ALL University policies, state, and federal laws concerning
appropriate use of information technology. Non-compliance is considered a
serious breach of community standards and may result in disciplinary and/or
legal action.</p>
<div style="postion:fixed;margin:10px 0px 0px 250px;height:280px;width:280px;"><a href="http://www.umich.edu"><img alt="University of Michigan" src="img/michigan.png" /> </a></div>
</div><!-- #instructions -->
</div>
</div>
</div>
<?php
}
include("footer.php");?>
<!-- //additional script specific to this page -->
<script src="js/reportsScript.js"></script>
</div><!-- End Container of all things -->
</body>
</html>
<?php
$db->close();