mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-23 19:47:13 +00:00
fix delete player in admin panel
This commit is contained in:
@@ -79,40 +79,6 @@ if($_GET['uid'])
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br /><br /><font color="Red"><b>NOTICE: DELETE ALL PLAYER VILLAGES BELLOW BEFORE DELETING PLAYER!</font></b><br /><br />
|
||||
|
||||
<table id="profile">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Population</th>
|
||||
<th>Coordinates</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php
|
||||
for ($i = 0; $i <= count($varray)-1; $i++)
|
||||
{
|
||||
$coorproc = $database->getCoor($varray[$i]['wref']);
|
||||
if($varray[$i]['capital'])
|
||||
{
|
||||
$capital = '<span class="c">(Capital)</span>';
|
||||
$delLink = '<a href="?action=delVil&did='.$varray[$i]['wref'].'" onClick="return del(\'did\','.$varray[$i]['wref'].');"><img src="../img/Admin/del.gif" class="del"></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$capital = '';
|
||||
$delLink = '<a href="?action=delVil&did='.$varray[$i]['wref'].'" onClick="return del(\'did\','.$varray[$i]['wref'].');"><img src="../img/Admin/del.gif" class="del"></a>';
|
||||
} echo '
|
||||
<tr>
|
||||
<td><a href="?p=village&did='.$varray[$i]['wref'].'">'.$varray[$i]['name'].'</a> '.$capital.'</td>
|
||||
<td>'.$varray[$i]['pop'].' <a href="?action=recountPop&did='.$varray[$i]['wref'].'">Check<a/></td>
|
||||
<td>('.$coorproc['x'].'|'.$coorproc['y'].')</td>
|
||||
<td>'.$delLink.' </td>
|
||||
</tr>';
|
||||
}
|
||||
?>
|
||||
</thead>
|
||||
</table>
|
||||
</form><?php
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user