-
Notifications
You must be signed in to change notification settings - Fork 8
/
footer.php
210 lines (207 loc) · 8.93 KB
/
footer.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
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
209
210
</div><!--/row-->
<hr>
<footer id="footer">
<p>
Distributed under GPLv3. | <a href='https://github.com/51isoft/bnuoj' target="_blank">Project Homepage</a> | Developer: <a href="mailto:yichaonet#gmail.com">51isoft</a> | Current Style: <b id="stylename"></b>.
</p>
<form class="form-inline">
<label class="select">
Select Style: <select class="input-medium" id="selstyle">
<option value="cerulean">Cerulean</option>
<option value="cyborg">Cyborg</option>
<option value="cosmo">Cosmo</option>
<option value="amelia">Amelia</option>
<option value="simplex">Simplex</option>
<option value="spacelab">Spacelab</option>
<option value="spruce">Spruce</option>
<option value="superhero">Superhero</option>
<option value="united">United</option>
<option value="journal">Journal</option>
<option value="readable">Readable</option>
<option value="slate">Slate</option>
<option value="darkening">Darkening</option>
<option value="original">Original</option>
<option value="metro">Metro</option>
<option value="geo">Geo</option>
</select>
</label>
<label class="checkbox"> <input type="checkbox" id="selwidth" <?= isset($_COOKIE[$config["cookie_prefix"]."fluid_width"])&&$_COOKIE[$config["cookie_prefix"]."fluid_width"]==true?"checked":"" ?> />Fluid Width?</label>
</form>
</footer>
</div><!--/.fluid-container-->
<?php
if (!$current_user->is_valid()) {
?>
<div id="logindialog" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Login</h3>
</div>
<form action="ajax/login.php" method="post" id="login_form" class="ajform form-horizontal">
<div class="modal-body">
<div class="control-group">
<label class="control-label" for="username">Username: </label>
<div class="controls">
<input type='text' name='username' id='username' placeholder="Username" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">Password: </label>
<div class="controls">
<input type='password' name='password' id='password' placeholder="Password" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="cksave">Cookie:</label>
<div class="controls">
<select name='cksave' id='cksave'>
<option value='0' selected>Never</option>
<option value='1'>One Day</option>
<option value='7'>One Week</option>
<option value='30'>One Month</option>
<option value='365'>One Year</option>
</select>
</div>
</div>
</div>
<div class="modal-footer">
<span id="msgbox" style="display:none"></span>
<input name='login' class="btn btn-primary" type='submit' value='Login' />
<a class='toregister btn' href="#">Register</a>
</div>
</form>
</div>
<div id="regdialog" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Register</h3>
</div>
<form method="post" action="ajax/register.php" id="reg_form" class="form-horizontal ajform">
<div class="modal-body">
<div class="control-group">
<label class="control-label" for="rusername">Username: </label>
<div class="controls">
<input type="text" name="username" id="rusername" placeholder="Username" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rpassword">Password: </label>
<div class="controls">
<input type="password" name="password" id="rpassword" placeholder="Password" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rrpassword">Repeat Password: </label>
<div class="controls">
<input type="password" name="repassword" id="rrpassword" placeholder="Repeat Password" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rnickname">Nickname: </label>
<div class="controls">
<input type="text" name="nickname" id="rnickname" placeholder="Nickname" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rschool">School: </label>
<div class="controls">
<input type="text" name="school" id="rschool" placeholder="School" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="remail">Email: </label>
<div class="controls">
<input type="text" name="email" id="remail" placeholder="Email" />
</div>
</div>
</div>
<div class="modal-footer">
<span id="msgbox" style="display:none"></span>
<input class="btn btn-primary" type="submit" name="name" value="Submit" />
</div>
</form>
</div>
<?php
} else {
?>
<div id="modifydialog" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Modify My Information</h3>
</div>
<form method="post" action="ajax/user_modify.php" id="modify_form" class="form-horizontal ajform">
<div class="modal-body">
<div class="control-group">
<label class="control-label" for="rusername">Username: </label>
<div class="controls">
<input type="text" name="username" id="rusername" placeholder="Username" value="<?=$current_user->get_val("username")?>" readonly />
</div>
</div>
<div class="control-group">
<label class="control-label" for="ropassword">Old Password: </label>
<div class="controls">
<input type="password" name="ol_password" id="ropassword" placeholder="Old Password" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rpassword">New Password: </label>
<div class="controls">
<input type="password" name="password" id="rpassword" placeholder="New Password" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rrpassword">Repeat Password: </label>
<div class="controls">
<input type="password" name="repassword" id="rrpassword" placeholder="Repeat Password" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rnickname">Nickname: </label>
<div class="controls">
<input type="text" name="nickname" id="rnickname" placeholder="Nickname" value="<?=$current_user->get_val("nickname")?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rschool">School: </label>
<div class="controls">
<input type="text" name="school" id="rschool" placeholder="School" value="<?=$current_user->get_val("school")?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="remail">Email: </label>
<div class="controls">
<input type="text" name="email" id="remail" placeholder="Email" value="<?=$current_user->get_val("email")?>" />
</div>
</div>
</div>
<div class="modal-footer">
<span id="msgbox" style="display:none"></span>
<input class="btn btn-primary" type="submit" name="name" value="Modify" />
</div>
</form>
</div>
<?php
}
?>
<div id="newsshowdialog" class="modal hide fade" style="display:none">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="ntitle">News Title</h3>
</div>
<div class="modal-body">
<div style="margin-bottom:10px">by <b id="snauthor"></b> <span id="sntime"></span></div>
<div id="sncontent"></div>
</div>
<?php
if ($current_user->is_root()) {
?>
<div class="modal-footer">
<a class="newseditbutton btn btn-primary" name="" href="">Edit</a>
</div>
<?php
}
?>
</div>
<script src="js/end.js?<?=filemtime("js/end.js") ?>"></script>
</body>
</html>