mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-23 11:37:14 +00:00
Redesign Admin Panel
Full frontend & backend redesign and refactor
This commit is contained in:
+49
-26
@@ -2,12 +2,20 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename search2.tpl ##
|
||||
## Developed by: Dzoki ##
|
||||
## Reworked: aggenkeech && ronix ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
|
||||
## ##
|
||||
## Filename : search2.tpl ##
|
||||
## Type : Admin Panel Frontend ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Dzoki (Original) ##
|
||||
## Refactored by : Shadow ##
|
||||
## Redesign by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2025. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
$array_tribe=array('-',TRIBE1,TRIBE2,TRIBE3,TRIBE4,TRIBE5,TRIBE6);
|
||||
$tribename = $array_tribe[$user['tribe']];
|
||||
@@ -17,32 +25,47 @@ $numsimplayers = count($searchresults);
|
||||
$id = $user['id'];
|
||||
$varray = $database->getProfileVillages($id);
|
||||
$totalpop = 0;
|
||||
foreach($varray as $vil)
|
||||
{
|
||||
$totalpop += $vil['pop'];
|
||||
}
|
||||
foreach($varray as $vil) $totalpop += $vil['pop'];
|
||||
?>
|
||||
<style>
|
||||
#member.search-modern{border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04);margin-bottom:12px}
|
||||
#member.search-modern th{background:linear-gradient(135deg,#0f172a,#334155);color:#fff;padding:10px 12px;font-weight:600;text-align:left;font-size:13px}
|
||||
#member.search-modern th font{color:#fca5a5 !important;font-weight:500}
|
||||
|
||||
.s-info-wrap{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:100%;margin:0 auto 15px}
|
||||
.s-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
|
||||
.s-card-title{font-size:11px;text-transform:uppercase;color:#64748b;letter-spacing:.5px;margin-bottom:4px;font-weight:600}
|
||||
.s-card-main{font-size:14px;font-weight:600;color:#0f172a}
|
||||
.s-card-main a{color:#2563eb;text-decoration:none}
|
||||
.s-card-main a:hover{text-decoration:underline}
|
||||
.s-card-sub{font-size:12px;color:#475569;margin-top:3px}
|
||||
.s-card-sub b{color:#334155;font-weight:600}
|
||||
|
||||
@media(max-width:700px){.s-info-wrap{grid-template-columns:1fr}}
|
||||
</style>
|
||||
|
||||
<form action="" method="post">
|
||||
<table id="member">
|
||||
<table id="member" class="search-modern">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Search <font color="red">("<?php echo $user['username']; ?>" = <?php echo $numsimplayers; ?> Similar)</font></th>
|
||||
<th colspan="3">Search <font>("<?php echo htmlspecialchars($user['username']); ?>" = <?php echo $numsimplayers; ?> Similar)</font></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<center>
|
||||
<div id="s_nav2" >
|
||||
<div align="left" style="font-size: 10pt;"><b>Player:</b> <a href="?p=player&uid=<?php echo $user['id'];?>"><?php echo $user['username'];?></a> (uid: <?php echo $user['id'];?>)</div>
|
||||
<div align="left" style="font-size: 9pt;"><b>Tribe:</b> <?php echo $tribename; ?> | <b>Villages:</b> <?php echo count($varray);?> | <b>Inhabitants:</b> <?php echo $totalpop; ?></div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if(isset($_GET['did']))
|
||||
{ ?>
|
||||
<div id="s_nav4">
|
||||
<div align="left" style="font-size: 10pt;"><b>Village:</b> <a href="?p=village&did=<?php echo $village['wref'];?>"><?php echo $village['name'];?></a> (did: <?php echo $village['wref'];?>)</div>
|
||||
<div align="left" style="font-size: 9pt;"><b>Coordinates:</b> (<?php echo $coor['x'];?>|<?php echo $coor['y'];?>) | <b>Inhabitants</b>: <?php echo $village['pop'];?>
|
||||
</div><?php
|
||||
} ?>
|
||||
</center>
|
||||
<div class="s-info-wrap">
|
||||
<div class="s-card">
|
||||
<div class="s-card-title">Player</div>
|
||||
<div class="s-card-main"><a href="?p=player&uid=<?php echo $user['id'];?>"><?php echo htmlspecialchars($user['username']);?></a> <span style="color:#94a3b8;font-weight:500">(uid: <?php echo $user['id'];?>)</span></div>
|
||||
<div class="s-card-sub"><b>Tribe:</b> <?php echo $tribename; ?> • <b>Villages:</b> <?php echo count($varray);?> • <b>Pop:</b> <?php echo number_format($totalpop,0,',','.'); ?></div>
|
||||
</div>
|
||||
|
||||
<?php if(isset($_GET['did']) && isset($village)) { ?>
|
||||
<div class="s-card">
|
||||
<div class="s-card-title">Village</div>
|
||||
<div class="s-card-main"><a href="?p=village&did=<?php echo $village['wref'];?>"><?php echo htmlspecialchars($village['name']);?></a> <span style="color:#94a3b8;font-weight:500">(did: <?php echo $village['wref'];?>)</span></div>
|
||||
<div class="s-card-sub"><b>Coords:</b> (<?php echo $coor['x'];?>|<?php echo $coor['y'];?>) • <b>Pop:</b> <?php echo $village['pop'];?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</form>
|
||||
Reference in New Issue
Block a user