Файл: public_html/modules/dungeon/index.php
Строк: 103
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include_once ($root.'/core/base.php');
falseauth();
$header = "Подземелья";
include_once ($root.'/core/head.php');
?>
<style>
.ramk {
border: 1px solid #fff;
background-color: #343434;
border-radius: 3px;
margin-bottom: 5px;
}
.main-dungeon {
padding-top: 290px;
background: #343434 url(/images/main-podz.jpg) top center no-repeat;
display: block;
height: auto;
margin: 0;
}
.dungeon-1 {
display: block;
background: url(/images/dungeons/1.png) no-repeat center right;
padding: 12px;
color: #F6C67E;
text-decoration: none;
border-top: 0px solid #A35F44;
}
.dungeon-2 {
display: block;
background: url(/images/dungeons/2.png) no-repeat center right;
padding: 12px;
color: #F6C67E;
text-decoration: none;
border-top: 0px solid #A35F44;
}
.dungeon-3 {
display: block;
background: url(/images/dungeons/3.png) no-repeat center right;
padding: 12px;
color: #F6C67E;
text-decoration: none;
border-top: 0px solid #A35F44;
}
.dungeon-4 {
display: block;
background: url(/images/dungeons/4.png) no-repeat center right;
padding: 12px;
color: #F6C67E;
text-decoration: none;
border-top: 0px solid #A35F44;
}
</style>
<?
isDungeon();
$dungeons = $db->query("SELECT * FROM `dungeons`");
echo '<div class="notice_container"><div class = "gborder notice_alert alert-success"> Подземелья</div></div>';
echo"<div class = 'main-dungeon'>";
while($dung = $dungeons->fetch_object())
{
echo '<div class = "ramk"><a class="dungeon-'.$dung->id.'" href="/dungeon/info/'.$dung->id.'">
<font color="white">'.$dung->name.' ['.$dung->level.' ур.]</font><br>
<font color="white"><small>
<img src="/images/ic-experience-flat.png" width="16" height="16"> '.$dung->exp.'
<img src="/images/ic-gem.png" width="16" height="16"> '.$dung->gems.'
<img src="/images/silver.png" width="16" height="16"> '.$dung->silver.'
</small>
</font>
</a>
</div>';
}
echo"</div>";
include_once ($root.'/core/foot.php');