mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-29 09:04:26 +00:00
786cbf1f8e
1) Removed unnecessary files 2) Trailling spaces (no all though) 3) Some space to tab conversion
66 lines
2.4 KiB
Smarty
66 lines
2.4 KiB
Smarty
<?php
|
|
#################################################################################
|
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Filename search2.tpl ##
|
|
## Developed by: Dzoki ##
|
|
## Reworked: aggenkeech ##
|
|
## License: TravianX Project ##
|
|
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
|
## ##
|
|
#################################################################################
|
|
|
|
if($user['tribe'] == 1)
|
|
{
|
|
$tribename = "Roman";
|
|
}
|
|
else if($user['tribe'] == 2)
|
|
{
|
|
$tribename = "Teutons";
|
|
}
|
|
else if($user['tribe'] == 3)
|
|
{
|
|
$tribename = "Gauls";
|
|
}
|
|
else if($user['tribe'] == 4)
|
|
{
|
|
$tribename = "Nature";
|
|
}
|
|
else if($user['tribe'] == 5)
|
|
{
|
|
$tribename ="Natars";
|
|
}
|
|
$searchresults = $admin->search_player($user['username']);
|
|
$numsimplayers = count($searchresults);
|
|
$id = $user['id'];
|
|
$varray = $database->getProfileVillages($id);
|
|
$totalpop = 0;
|
|
foreach($varray as $vil)
|
|
{
|
|
$totalpop += $vil['pop'];
|
|
}
|
|
?>
|
|
<form action="" method="post">
|
|
<table id="member">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3">Search <font color="red">("<?php echo $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($_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>
|
|
</form> |