mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 07:06:06 +00:00
79eb6a73d6
+Removed almost all "BANNED" controls to template and .php UI files. The control will be done only once and in the Session class
43 lines
1.4 KiB
Smarty
43 lines
1.4 KiB
Smarty
<?php
|
|
if(!isset($aid)) $aid = $session->alliance;
|
|
|
|
$allianceinfo = $database->getAlliance($aid);
|
|
$memberlist = $database->getAllMember($aid);
|
|
|
|
echo "<h1>".$allianceinfo['tag']." - ".$allianceinfo['name']."</h1>";
|
|
include("alli_menu.tpl");
|
|
?>
|
|
<form method="post" action="allianz.php">
|
|
<table cellpadding="1" cellspacing="1" id="position" class="small_option">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">Assign to position</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th colspan="2">Here you can grant the players from your alliance rights & positions.</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Name</th>
|
|
<td>
|
|
<select name="a_user" class="name dropdown">
|
|
<?php
|
|
foreach($memberlist as $member){
|
|
if($member['id'] != $session->uid && !$database->isAllianceOwner($member['id'])){
|
|
echo "<option value=".$member['id'].">".$member['username']."</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>
|
|
<input type="hidden" name="o" value="1">
|
|
<input type="hidden" name="s" value="5">
|
|
<button value="ok" name="s1" id="btn_ok" class="trav_buttons">OK</button>
|
|
</p>
|
|
</form>
|