mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 14:21:03 +00:00
Artifacts fix
+Added the possibility to add WW villages to a player, in the admin panel +Fixed the WW villages counter +Deleted Natars' artifacts can now be recovered from the admin panel
This commit is contained in:
@@ -5,7 +5,7 @@ $deletedArtifacts = $database->getDeletedArtifacts();
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7d" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7i" rel="stylesheet" type="text/css">
|
||||
|
||||
<h1>Artifacts</h1>
|
||||
<h1>Artifacts management</h1>
|
||||
<form method="post" action="../Admin/admin.php?action=addArtifacts">
|
||||
<table id="member">
|
||||
<thead>
|
||||
@@ -28,8 +28,7 @@ $deletedArtifacts = $database->getDeletedArtifacts();
|
||||
$artifactArrays = array_merge(Artifacts::NATARS_ARTIFACTS, Artifacts::NATARS_WW_BUILDING_PLANS);
|
||||
foreach($artifactArrays as $desc => $artifactType){
|
||||
foreach($artifactType as $artifact){
|
||||
echo '
|
||||
<option value="'.$artifact['type'].':'.$artifact['size'].':'.$desc.'">'.$artifact['name'].'</option>';
|
||||
echo '<option value="'.$artifact['type'].':'.$artifact['size'].':'.$desc.'">'.$artifact['name'].'</option>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,8 +116,39 @@ $deletedArtifacts = $database->getDeletedArtifacts();
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</table><br />
|
||||
|
||||
<h1>WW villages management</h1>
|
||||
<form method="post" action="../Admin/admin.php?action=addWWVillages">
|
||||
<table id="member">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Add WW village(s)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Number of village(s)</td>
|
||||
<td>Player id</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div style="text-align: center">
|
||||
<input type="number" value="1" min="1" max="999" name="numberOfVillages">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div style="text-align: center">
|
||||
<input type="text" value="<?php echo Artifacts::NATARS_UID; ?>" name="playerId">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><div style="text-align: center"><button id="addWWVillages" class="trav_buttons" value="add" name="addWWVillages" onclick="this.disabled=true;this.form.submit();"> Add </button></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
function changeArtifactImage(){
|
||||
+3
-3
@@ -61,8 +61,8 @@ if (!empty($_GET['p'])) {
|
||||
$subpage = 'Map';
|
||||
break;
|
||||
|
||||
case 'artifacts':
|
||||
$subpage = 'Artifacts';
|
||||
case 'natars':
|
||||
$subpage = 'Natars Management';
|
||||
break;
|
||||
|
||||
case 'search':
|
||||
@@ -506,7 +506,7 @@ if (!empty($_GET['p'])) {
|
||||
<li><a href="?p=report">Players Report</a></li>
|
||||
<li><a href="?p=msg">Players Message</a></li>
|
||||
<li><a href="?p=map">Map</a></li>
|
||||
<li><a href="?p=artifacts">Artifacts</a></li>
|
||||
<li><a href="?p=natars">Natars Management</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="sub"><a href="#">Search</a>
|
||||
|
||||
Reference in New Issue
Block a user