fix delete player in admin panel

This commit is contained in:
yi12345
2013-09-12 21:23:24 +03:00
parent 8e4ad4fa50
commit f0024248d5
5 changed files with 56 additions and 46 deletions
-34
View File
@@ -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
}
}