mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Create achievements.php
This commit is contained in:
parent
2812b1cd80
commit
a73bf344a5
57
achievements.php
Normal file
57
achievements.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
|
||||
|
||||
?>
|
||||
<center><h3>Achievements on <?php echo $config['site_title'] ?></h3></center>
|
||||
<div class="panel-body">
|
||||
<table id="addonMakersTable" class="table table-striped table-bordered table-condensed">
|
||||
<tr>
|
||||
<td width="10%">Grade</td>
|
||||
<td width="17%">Name</td>
|
||||
<td>Description</td>
|
||||
<td width="7%">Secret</td>
|
||||
<td width="2%">Points</td>
|
||||
</tr>
|
||||
<style>
|
||||
#wtf {
|
||||
margin-left:0px;
|
||||
|
||||
}
|
||||
</style>
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($config['achievements'] as $key => $achName) {
|
||||
$secret = false;
|
||||
if (($achName['points'] >= 1) and ($achName['points'] <= 3) and (!$achName['img'])) {
|
||||
echo '<td><center><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"></center></td>';
|
||||
}
|
||||
elseif (($achName['points'] >= 4) and ($achName['points'] <= 6) and (!$achName['img']))
|
||||
{
|
||||
echo '<td><center><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"></center></td>';
|
||||
}
|
||||
elseif (($achName['points'] >= 7) and ($achName['points'] <= 9) and (!$achName['img']))
|
||||
{
|
||||
echo '<td><center><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"></center></td>';
|
||||
}
|
||||
elseif (($achName['points'] >= 10) and (!$achName['img']))
|
||||
{
|
||||
echo '<td><center><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"><img id="wtf" src="http://img2.wikia.nocookie.net/__cb20100828120326/tibia/en/images/0/0b/Achievement_Grade_Symbol.gif"></center></td>';
|
||||
}
|
||||
else {
|
||||
echo '<td><img id="wtf" src="' .$achName['img']. '"><br><br></td>';
|
||||
}
|
||||
echo '<td>' .$achName[0]. '</td>';
|
||||
echo '<td>' .$achName[1]. '</td>';
|
||||
if ($achName['secret'] == true){
|
||||
echo '<td><img id="wtf" src="http://img04.imgland.net/PuMz0mVqSG.gif"></td>';
|
||||
echo '<td>'. $achName['points'] .'</td>';
|
||||
} else {
|
||||
echo '<td></td><td>'. $achName['points'] .'</td>';
|
||||
}
|
||||
echo '</tr>';
|
||||
}?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include 'layout/overall/footer.php';
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user