mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-16 09:36:08 +00:00
77e3cd68b0
* Update assignpos.tpl * Update changename.tpl * Update kick.tpl * Update kick.tpl * Update linkforum.tpl * Update search.tpl * Update 18_create.tpl * Update invite.tpl * Update option.tpl * Update newdorf.tpl * buttons replace part 2 * Update addABTroops.tpl * Update addTroops.tpl * Update graphic.tpl * Update all.tpl * Update archive.tpl * Update forum_3.tpl * Update read.tpl * Update ranksearch.tpl * Update delete.tpl * Update inbox.tpl * Update 19.tpl
31 lines
1.5 KiB
Smarty
31 lines
1.5 KiB
Smarty
<?php
|
|
if(!isset($_GET['id'])){ $_GET['id']='1'; }
|
|
?>
|
|
<table cellpadding="1" cellspacing="1" id="search_navi">
|
|
<tr>
|
|
<td>
|
|
<form method="post" action="statistiken.php?id=<?php echo isset($_GET['id'])? $_GET['id'] : 1; ?>">
|
|
<div class="search">
|
|
<span>rank<input type="text" class="text ra" maxlength="5" name="rank" value="<?php echo ($search == 0)? $start : $search; ?>" /></span>
|
|
<span class="or">or</span>
|
|
<span>name<input type="text" class="text name" maxlength="30" name="name" value="<?php if(!is_numeric($search)) {echo $search; } ?>" /></span>
|
|
<input type="hidden" name="ft" value="r<?php echo isset($_GET['id'])? $_GET['id'] : 1; ?>" />
|
|
<button value="submit" name="submit" id="btn_ok" class="trav_buttons" alt="OK" /> Ok </button>
|
|
</div>
|
|
</form>
|
|
<div class="navi">
|
|
<?php
|
|
if($start != 1 && $start+20 < count($ranking)) {
|
|
echo "<a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start-20)."\">« back</a> | <a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start+20)."\">forward »</a>";
|
|
}
|
|
else if($start == 1 && $start+20 < count($ranking)) {
|
|
echo "« back | <a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start+20)."\">forward »</a>";
|
|
}
|
|
else if($start != 1 && $start-20 < count($ranking)) {
|
|
echo "<a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start-20)."\">« back</a> | forward »";
|
|
}
|
|
else {
|
|
echo "« back | forward »";
|
|
}
|
|
?>
|