FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Test/ranks/adminlvlmanager.php at master · JavaDevl/Test · GitHub
JavaDevl
/
Test
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Test
/
ranks
/
adminlvlmanager.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
136 lines (125 loc) · 3.87 KB
Breadcrumbs
Test
/
ranks
/
adminlvlmanager.php
Copy path
File metadata and controls
136 lines (125 loc) · 3.87 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script>
$(document).ready(function() {
$('#zipsearch').autocomplete({source:'suggestusername.php', minLength:1});
})
</script>
<style>
#zipsearch
{
width: 300px;
}
form {
border:1px solid #993333;
margin-top:45px;
display: inline-block;
padding: 5px;
border-radius: 5px;
}
h4
{
margin-top: -15px;
margin-left: -250px;
position: absolute;
color:#993333;
display: inline-block;
background-color: #fff;
}
#butsubmit
{
border:inherit;
padding:3px;
border-radius: 5px;
background-color: #993333;
color:#fff;
}
#butsubmit:hover
{
background-color: #fff;
color:#993333;
font-weight: bold;
border:solid 1px #993333;
}
span .desc{
display: block;
}
.inp{
display: block;
}
.division
{
text-align: left;
float:left;
display:block;
}
</style>
<script>
function checklvl(lvl)
{
if(lvl[0].value=="")
{
alert ("Please select a level");
return false;
}
else
return true;
}
</script>
</head>
<body>
<?php
session_start
();
include
'
../menubar/index.php
'
;
?>
<center>
<form onsubmit="return checklvl(document.getElementsByName('lvl'))" id="theForm" method="post" action="updateuserlvl.php">
<h4>Level Management</h4><br>
<div class="division">
<span class="descr"> Username </span>
<input class="inp" name="uname" type="text" id="zipsearch" />
</div>
<div class="division">
<span class="descr">Level</span>
<select style="height:20px" class="inp" name="lvl">
<option value=""></option>
<option value="0">Member</option>
<option value="1">Moderator</option>
<option value="2">Advanced Moderator</option>
<option value="3">Administrator</option>
<option value="4">Super Administrator</option>
</select>
</div>
<a><input id="butsubmit" type="submit" value="update" /></a>
</form> </center>
<?php
$
db
=
new
DbConnector
();
$
fma
=
$
db
->
fetchmyArray
(
"
select username, score, level, country from users where level!=0 order by level desc, score desc
"
);
?>
<table style="text-align: center; margin-left: auto; margin-right: auto; margin-top: 50px;" border="1px">
<tr><th>Username</th><th>Country</th><th>Score</th><th>Rank</th><th>Level</th>
</tr>
<?php
include
'
../countrylist.php
'
;
$
strt
=
new
SortLvl
();
foreach
(
$
fma
as
$
a
)
{
$
rank
=
$
strt
->
Loadllevelfile
(
"
rank.txt
"
,(
int
)
$
a
[
'
score
'
]);
$
myimg
=
"
<img src='icons/
"
.
strtolower
(
$
rank
[
0
]).
"
.png' style='height:50%; width:50%' title='
$
rank
[
1
]
' />
"
;
echo
'
<tr><td>
'
.
$
a
[
'
username
'
].
'
</td><td>
'
.country::
GetCountryFlagbyKey
(
strtolower
(
$
a
[
'
country
'
])).
'
</td><td><b>
'
.
number_format
(
$
a
[
'
score
'
]).
'
</b></td><td>
'
.
$
myimg
.
'
</td><td style="padding:4px;">
'
.
$
strt
->
sortrank
(
$
a
[
'
level
'
]).
'
</td></tr>
'
;
}
?>
</table>
</body>
</html>
Back
|
FazBrowse Home
|
New Git URL