-
Notifications
You must be signed in to change notification settings - Fork 28
/
login.php
executable file
·165 lines (142 loc) · 5.79 KB
/
login.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
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
<?php if ( ! defined('BASE_PATH') ) exit('No direct script access allowed');
/**
* myetSIS Login View
*
* @license GPLv3
*
* @since 4.3
* @package eduTrac SIS
* @author Joshua Parker <joshmac3@icloud.com>
*/
$app = \Liten\Liten::getInstance();
$app->view->extend('_layouts/myetsis/' . _h(get_option('myetsis_layout')) . '.layout');
$app->view->block('myetsis');
?>
<div id="login" class="col-md-12">
<div class="container" style="width:400px !important;">
<div class="wrapper">
<h1 class="glyphicons unlock"><?=_t( 'Sign in' );?> <i></i></h1>
<?php
/**
* Prints scripts or data at the top
* of the login form
*
* @since 6.1.06
*/
$app->hook->do_action('login_form_top');
?>
<!-- Box -->
<div class="widget widget-heading-simple widget-body-gray">
<div class="widget-body">
<!-- Form -->
<form class="form-horizontal margin-none" method="post" action="<?=get_base_url();?>login/" id="validateSubmitForm" autocomplete="off">
<label><?=_t( 'Username / Email' );?></label>
<input type="text" name="uname" class="form-control" placeholder="Your Username" required/>
<label><?=_t( 'Password' );?></label>
<input type="password" name="password" class="form-control margin-none" placeholder="Your Password" required/>
<div class="row">
<div class="col-md-8">
<div class="uniformjs"><label class="checkbox"><input type="checkbox" name="rememberme" value="yes"><?=_t( 'Remember me' );?></label></div>
</div>
<div class="col-md-4 center">
<input type="hidden" name="redirect_to" value="<?=($app->req->get['redirect_to'] != null ? '?redirect_to=' . $app->req->get['redirect_to'] : '');?>" />
<button class="btn btn-block btn-inverse" type="submit"><?=_t( 'Sign in' );?></button>
</div>
</div>
</form>
<!-- // Form END -->
</div>
</div>
<!-- // Box END -->
<div class="innerT center">
<p><a href="#resetpass" data-toggle="modal"><?=_t( 'Request Password Reset' );?></a></p>
</div>
<?php
/**
* Prints scripts or data at the bottom
* of the login form.
*
* @since 6.1.06
*/
$app->hook->do_action('login_form_bottom'); ?>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="resetpass">
<form class="form-horizontal margin-none" action="<?=get_base_url();?>reset-password/" id="validateSubmitForm" method="post" autocomplete="off">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal heading -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title"><?=_t( 'Reset Password Request' );?></h3>
</div>
<!-- // Modal heading END -->
<!-- Modal body -->
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<p class="alerts alerts-info"><?=_t( "If you've forgotten your password, send a request to the administrator to have it reset." );?></p>
<p> </p>
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( 'Email' );?></label>
<div class="col-md-8">
<input class="form-control" type="email" name="email" required/>
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( 'Full Name' );?></label>
<div class="col-md-8">
<input class="form-control" type="text" name="name" required/>
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><?=_t( 'Username' );?></label>
<div class="col-md-8">
<input class="form-control" type="text" name="uname" />
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><?=_t( 'Student / Staff ID' );?></label>
<div class="col-md-8">
<input class="form-control" type="text" name="sid" />
</div>
</div>
<!-- // Group END -->
<!-- Group -->
<div class="form-group">
<label class="col-md-3 control-label"><font color="red">*</font> <?=_t( 'Message' );?></label>
<div class="col-md-8">
<textarea class="form-control" name="message" rows="3" data-height="auto" required></textarea>
</div>
</div>
<!-- // Group END -->
</div>
</div>
</div>
<!-- // Modal body END -->
<!-- Modal footer -->
<div class="modal-footer">
<button type="submit" class="btn btn-default"><?=_t( 'Send' );?></button>
<a href="#" class="btn btn-primary" data-dismiss="modal"><?=_t( 'Cancel' );?></a>
</div>
<!-- // Modal footer END -->
</div>
</div>
</form>
</div>
<!-- // Modal END -->
</div>
<!-- // Wrapper END -->
</div>
</div>
</div>
<!-- // Content END -->
<?php $app->view->stop(); ?>