-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (45 loc) · 2.2 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
<?php
if(!$_SESSION){
session_start();
}
if ($_SESSION['is_logged_in'] == 1){
header("Location: /eventChoice");
exit;
}
?>
<!DOCTYPE html>
<html manifest="/library/manifest.appcache">
<head>
<meta charset="UTF-8">
<title>Tally</title>
<?php include $_SERVER['DOCUMENT_ROOT'] . '/modules/styles.php'; ?>
<link rel="stylesheet" type="text/css" href="/formStyle.css">
<script type="text/javascript" src="/library/rememberSignOn.js"></script>
</head>
<body onload="getSignOnInfo()">
<div>
<div id='header'>
Organization Account Login
</div>
<?php include $_SERVER['DOCUMENT_ROOT'].'/modules/header.php' ?>
<main>
<div id="errors"><?php echo $errors?></div>
<form method="post" action="/accounts/" id="login" name="loginForm">
<h1>Account Login</h1>
<label for="discountAmount">Organization Name<span class="required">*</span></label>
<input class="field" type="text" placeholder="i.e. BYU-Idaho" style="<?php echo $orgError ?>" name="orgName" id="orgName" value="<?php echo $orgName ?>">
<label for='orgPswd'>Organization Password<span class="required">*</span></label>
<input class="field" type='password' placeholder="Get From Admin" style='<?php echo $orgPswdError ?>' name='orgPswd' id='orgPswd' value='<?php echo $orgPswd?>'>
<label for="action"> </label>
<input type="submit" name="action" id="action" value="Login"/>
<label for="rememberSignOn" id="staySignedInText">Remember Login
<input type="checkbox" name="rememberSignOn" value="check" id="rememberSignOn" onclick="signOn()"></input>
</label>
</form>
<p class="fineprint">Don't have an account? Create one <a href="/accounts/createAccount.php">HERE</a></p>
</main>
</div>
<?php include $_SERVER['DOCUMENT_ROOT'] . '/modules/script.php'; ?>
</body>
<?php unset($_SESSION['message']);?>
</html>