/
index.php
135 lines (133 loc) · 6.4 KB
/
index.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
134
135
<?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 id="flashArea"><span class='flashNotify'>
<?php
if (isset($_SESSION['flashMessage'])) {
echo $_SESSION['flashMessage'];
$_SESSION['flashMessage'] = "";
}
?>
</span></div>
<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_contest">
<a href="currentContests.php" id="admContestBtn" type="button" class="btn btn-primary">Contest</a>
</div>
<div class="btn-group" role="group" aria-label="contest_report">
<a id="admReportBtn" type="button" class="btn btn-warning" href="reports.php">Reports</a>
</div>
<div class="btn-group" role="group" aria-label="contest_evaluation">
<a id="admEvaluationBtn" type="button" class="btn btn-default" href="evaluations.php">Evaluations</a>
</div>
<div class="btn-group" role="group" aria-label="contest_applicants">
<a id="admApplicantBtn" type="button" class="btn btn-success" href="allApplicants.php">Applicants</a>
</div>
<div class="btn-group" role="group" aria-label="contests_contests">
<a id="admContestsBtn" type="button" class="btn btn-info" href="contestAdmin.php">Contests Administration</a>
</div>
<div class="btn-group pull-right" role="group" aria-label="admin_access">
<a id="admAdminManageBtn" type="button" class="btn btn-sm btn-default" href="adminAccess.php">Admin-Access</a>
</div>
</div>
</div>
</div>
<div id="initialView">
<div class="row clearfix">
<div class="col-md-12">
<div><img src="img/IMG_0970.jpg" class="img img-responsive center-block" width="571" height="304" alt="Hopwood Image"></div>
</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/admMyScript.js"></script>
</div><!-- End Container of all things -->
</body>
</html>
<?php
$db->close();