48 lines
2.5 KiB
PHP
48 lines
2.5 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME')){
|
|||
|
die();
|
|||
|
}
|
|||
|
if(isset($_GET['delete_dungeon_id'])){
|
|||
|
$delete_dungeon_id = intval($_GET['delete_dungeon_id']);
|
|||
|
mysql_query("DELETE FROM `dungeon_room` WHERE `id`='".$delete_dungeon_id."'");
|
|||
|
die("<script>window.location = 'index.php?mod=dungeon_list';</script>");
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
$Query = mysql_query("SELECT * FROM dungeon_room ORDER BY active, dungeon_id ASC");
|
|||
|
$dungeon_list = '';
|
|||
|
while($row = mysql_fetch_assoc($Query)){
|
|||
|
$dungeon_list .= '<tr>
|
|||
|
<td align="center">' . $row['dungeon_id'] . '</td>
|
|||
|
<td><a href="?mod=dungeon_edit&dungeon_id=' . $row['id'] . '">' . $row['dungeon_name'] . '</a></td>
|
|||
|
<td align="center">' . $row['id'] . '</td>
|
|||
|
<td align="center">' . ( $row['dungeon_room'] == 0 ? '' : $row['dungeon_room']) . '</td>
|
|||
|
<td align="center">' . ( $row['shop'] == 0 ? '' : $row['shop']) . '</td>
|
|||
|
<td>' . ( $row['active'] == 1 ? '<span style="color:green"><EFBFBD><EFBFBD><EFBFBD></span>' : '<span style="color:brown"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span>') . '</td>
|
|||
|
<td>' . ( $row['quest'] == 1 ? '<span style="color:green"><EFBFBD><EFBFBD><EFBFBD></span>' : '<span style="color:brown"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span>'). '</td>
|
|||
|
<td><a href="?mod=dungeon_list&delete_dungeon_id=' . $row['id'] . '"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></td>
|
|||
|
<td><a href="?mod=dungeon_edit&dungeon_id=' . $row['id'] . '"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></td>
|
|||
|
<td><a target="_blank" href="?mod=dungeon&r=' . $row['dungeon_id'] . '"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a></td>
|
|||
|
</tr>';
|
|||
|
}
|
|||
|
?><script src="https://<? echo $c['img']; ?>/js/jx/jquery.js" type="text/javascript"></script>
|
|||
|
<div align="left">
|
|||
|
<h3 style="text-align:left;"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h3>
|
|||
|
</div>
|
|||
|
<div style="margin-left:8px; margin-bottom:15px"> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|||
|
<table class="tblbr2" border="1" cellspacing="0" cellpadding="5" bordercolor="#C1E1EE">
|
|||
|
<tr>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br/><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br/><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br/><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
<td bgcolor="#C0C2C0"><div align="center"><strong><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></strong></div></td>
|
|||
|
|
|||
|
<td bgcolor="#C0C2C0" colspan="3"><div align="center"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></div></td>
|
|||
|
</tr>
|
|||
|
<?php echo $dungeon_list; ?>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
<a href="../../adminion/mod/?mod=dungeon_edit" title="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
|