forked from zhouhu/openpayroll
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
208 lines (180 loc) · 11.9 KB
/
index.php
File metadata and controls
208 lines (180 loc) · 11.9 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?php include_once('assets/includes/header.php');?>
<body class=" login">
<!-- BEGIN LOGO -->
<div class="logo">
<a href="index.php">PAYROLL</a>
</div>
<!-- END LOGO -->
<!-- BEGIN LOGIN -->
<div class="content">
<!-- BEGIN LOGIN FORM -->
<form class="login-form" action="assets/classes/controller.php?act=login" method="post">
<h3 class="form-title font-green">Sign In</h3>
<div class="alert alert-danger display-hide">
<button class="close" data-close="alert"></button>
<span> Please enter login details </span>
</div>
<div>
<?php
if (isset($_SESSION['msg'])) {
echo '<div class="alert alert-' . $_SESSION['alertcolor'] . ' alert-dismissable role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' . $_SESSION['msg'] . '</div>';
unset($_SESSION['msg']);
unset($_SESSION['alertcolor']);
}
?>
</div>
<div class="form-group">
<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
<label class="control-label visible-ie8 visible-ie9">Username</label>
<input class="form-control form-control-solid placeholder-no-fix" required type="text" autocomplete="off" placeholder="Username" name="uname" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Password</label>
<input class="form-control form-control-solid placeholder-no-fix" required type="password" autocomplete="off" placeholder="Password" name="upassword" /> </div>
<div class="form-actions">
<button type="submit" class="btn btn-block red uppercase">Login</button>
</div>
<!--<div class="forgotpass">
<a href="javascript:;" id="forget-password" class="forget-password">Forgot Password?</a>
</div>-->
</form>
<!-- END LOGIN FORM -->
<!-- BEGIN FORGOT PASSWORD FORM -->
<form class="forget-form" action="assets/classes/controller.php?act=resetpass" method="post">
<h3 class="font-green">Forgot Password ?</h3>
<div class="alert alert-danger display-hide">
<button class="close" data-close="alert"></button>
<span> Please enter email address </span>
</div>
<div>
<?php
if (isset($_SESSION['msg'])) {
echo '<div class="alert alert-' . $_SESSION['alertcolor'] . ' alert-dismissable role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' . $_SESSION['msg'] . '</div>';
unset($_SESSION['msg']);
unset($_SESSION['alertcolor']);
}
?>
</div>
<p> Enter your e-mail address below to reset your password. </p>
<div class="form-group">
<input class="form-control placeholder-no-fix" required type="email" autocomplete="off" placeholder="Email Address" name="email" /> </div>
<div class="form-actions">
<button type="button" id="back-btn" class="btn green btn-outline">Back</button>
<button type="submit" class="btn btn-danger uppercase pull-right">Submit</button>
</div>
</form>
<!-- END FORGOT PASSWORD FORM -->
<!-- BEGIN REGISTRATION FORM -->
<form class="register-form" action="assets/classes/controller.php?act=createcompanyaccount" method="post">
<h3 class="font-green">Sign Up</h3>
<p > <b>Enter company details below: </b></p>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Company Name</label>
<input class="form-control placeholder-no-fix" type="text" placeholder="Company Name" name="fullname" /> </div>
<div class="form-group">
<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
<label class="control-label visible-ie8 visible-ie9">Contact Email</label>
<input class="form-control placeholder-no-fix" type="text" placeholder="Company Contact Email" name="email" /> </div>
<div class="form-group">
<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
<label class="control-label visible-ie8 visible-ie9">Contact Phone Number</label>
<input class="form-control placeholder-no-fix" type="text" placeholder="Company Contact Phone Number" name="phone" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Address</label>
<input class="form-control placeholder-no-fix" type="text" placeholder="Address" name="address" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">City/Town</label>
<input class="form-control placeholder-no-fix" type="text" placeholder="City/Town" name="city" /> </div>
<p> <b>Enter your user account details below: </b></p>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Email Address</label>
<input class="form-control placeholder-no-fix" type="email" autocomplete="off" placeholder="User Account Email Address" name="username" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">First Name</label>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" required placeholder="First Name" name="ufname" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Last Name</label>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" required placeholder="Second Name" name="ulname" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Password</label>
<input class="form-control placeholder-no-fix" type="password" autocomplete="off" id="register_password" placeholder="Password" name="password" /> </div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Re-type Your Password</label>
<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="Re-type Your Password" name="rpassword" /> </div>
<div class="form-group margin-top-20 margin-bottom-20">
<label class="mt-checkbox mt-checkbox-outline">
<input type="checkbox" name="tnc" /> I agree to the
<a href="termsofservice.php" target="_blank">Terms of Service </a>
<span></span>
</label>
<div id="register_tnc_error"> </div>
</div>
<div class="form-actions">
<button type="button" id="register-back-btn" class="btn green btn-outline">Cancel</button>
<button type="submit" id="register-submit-btn" class="btn btn-danger uppercase pull-right">Create Account</button>
</div>
</form>
<!-- END REGISTRATION FORM -->
</div>
<!--<div class="container top-spacer-60">
<div class="col-md-12">
<div>
<div class="item">
<div class="col-lg-4 col-xs-4 col-md-4 col-sm-4">
<div class="panel">
<div class="panel-heading">
<h4 class="text-center hprice"><b>Free</b></h4>
</div>
<div class="panel-body text-center">
<div class="hprice pricetag">
<span class="feature_desc">Full payroll features</span></div>
</div>
<div class="panel-body text-center">
<div class="hprice pricetag">
<span class="glyphicon glyphicon-user"></span> <span class="feature_desc"><b>1 - 10 Employees</b></span></div>
</div>
<div class="panel-footer btn-hide"> <a class="btn btn-block btn-danger">KES 0.00</a> </div>
</div>
</div>
</div>
<div class="item active">
<div class="col-lg-4 col-xs-4 col-md-4 col-sm-4">
<div class="panel">
<div class="panel-heading">
<h4 class="text-center hprice"><b>Silver</b></h4>
</div>
<div class="panel-body text-center">
<div class="hprice pricetag">
<span class="feature_desc">Full payroll features</span></div>
</div>
<div class="panel-body text-center">
<div class="hprice pricetag">
<span class="glyphicon glyphicon-user"></span> <span class="feature_desc"><b>11 - 100 Employees</b></span></div>
</div>
<div class="panel-footer btn-hide"> <a class="btn btn-block btn-danger">KES 1,000 / Month</a> </div>
</div>
</div>
</div>
<div class="item">
<div class="col-lg-4 col-xs-4 col-md-4 col-sm-4">
<div class="panel">
<div class="panel-heading">
<h4 class="text-center hprice"><b>Gold</b></h4>
</div>
<div class="panel-body text-center">
<div class="hprice pricetag">
<span class="feature_desc">Full payroll features</span></div>
</div>
<div class="panel-body text-center">
<div class="hprice pricetag">
<span class="glyphicon glyphicon-user"></span> <span class="feature_desc"><b> > 100 Employees</b></span>
</div>
</div>
<div class="panel-footer btn-hide"> <a class="btn btn-block btn-danger btn-hide">KES 99 / Employee / Month</a> </div>
</div>
</div>
</div>
</div>
</div>
</div>-->
<div class="copyright"> © 2017 Redsphere Consulting. </div>
<?php include_once('assets/includes/footer.php');?>