-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewUser.php
More file actions
104 lines (94 loc) · 3.54 KB
/
newUser.php
File metadata and controls
104 lines (94 loc) · 3.54 KB
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
<?php
//need this to connect to database.
include('connetDB.php');
//need this to continue session.
session_start();
//checks to see if the user has signed.
if(!isset($_SESSION['user_id']) || !isset($_SESSION['logged_in']) || $_SESSION['type'] != "admin"){
//will send user back to sign-in.
header('location:adminSign.php');
exit;
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Add Renter</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="is-preload">
<div id="page-wrapper">
<!-- Header -->
<header id="header">
<h1><a href="homePage.php">Apartment Portal</a>New Renter</h1>
<nav id="nav">
<ul>
<li><a href="homePage.php">Home</a></li>
<li><a href="logout.php" class="button">Logout</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<section id="main" class="container medium">
<header>
<h2>Create New Renter</h2>
</header>
<div class="box">
<form method="post" action="createRenter.php">
<div class="row gtr-50 gtr-uniform">
<div class="col-6 col-12-mobilep">
<input type="text" name="rentFirst" value="" placeholder="First Name" />
</div>
<div class="col-6 col-12-mobilep">
<input type="text" name="rentLast" placeholder="Last Name" />
</div>
</div><br>
<div class="row gtr-50 gtr-uniform">
<div class="col-6 col-12-mobilep">
<input type="text" name="aNum" placeholder="Apartment Number" />
</div>
<div class="col-6 col-12-mobilep">
<input type="text" name="rentUsr" placeholder="UserName" />
</div></div><br>
<center></center><div class="row gtr-50 gtr-uniform">
<div class="col-6 col-12-mobilep">
<input type="password" name="rentP" placeholder="Password" />
</div><div class="col-6 col-12-mobilep">
<input type="password" name="rentP2" placeholder="Password" />
</div></div></center><br>
<div class="col-12">
<ul class="actions special">
<li><input name="create" type="submit" value="Create Renter" /></li>
</ul>
</div>
</div>
</form>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="#" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon brands fa-facebook-f"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon brands fa-instagram"><span class="label">Instagram</span></a></li>
<li><a href="#" class="icon brands fa-github"><span class="label">Github</span></a></li>
<li><a href="#" class="icon brands fa-dribbble"><span class="label">Dribbble</span></a></li>
<li><a href="#" class="icon brands fa-google-plus"><span class="label">Google+</span></a></li>
</ul>
<ul class="copyright">
<li>© Untitled. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>