fix forum link + fix send resouces by village name + fix details in attack window for natars

This commit is contained in:
unknown
2012-05-07 07:42:36 +03:00
parent d9505cdad8
commit 9774c1e632
9 changed files with 45 additions and 16 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ if($session->access!=BANNED){
</thead><tbody>
<tr><th>URL</th>
<td><input class="link text" type="text" name="f_link" value="" maxlength="200"></td>
<td><input class="link text" type="text" name="f_link" value="<?php echo $allianceinfo['forumlink']; ?>" maxlength="200"></td>
</tr>
<tr>
+9 -2
View File
@@ -1,4 +1,4 @@
<?php
<?php
if(isset($_GET['aid'])) {
$aid = $_GET['aid'];
}
@@ -87,10 +87,17 @@ include("alli_menu.tpl");
echo "<td><a href='spieler.php?uid=".$member['id']."'>".$name."</td>";
echo "</tr>";
}
}?>
}
if($allianceinfo['forumlink'] != ''){
echo "<tr>";
echo "<td><a href='".$allianceinfo['forumlink']."'>» to the forum</td>";
echo "</tr>";
}else{
?>
<tr>
<td colspan="2" class="emmty"></td>
</tr>
<?php } ?>
<tr>
<td class="desc2" colspan="2"><?php echo nl2br($profiel[0]); ?>
</td>
+5 -3
View File
@@ -30,6 +30,7 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && ($_POST['x']!="" && $_POST['y']
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="x" value="<?php echo $_POST['x']; ?>">
<input type="hidden" name="y" value="<?php echo $_POST['y']; ?>">
<input type="hidden" name="dname" value="<?php echo $_POST['dname']; ?>">
<table id="send_select" class="send_res" cellpadding="1" cellspacing="1">
<tr>
<td class="ico"><img class="r1" src="img/x.gif" alt="Fa" title="Fa" /></td>
@@ -67,15 +68,17 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && ($_POST['x']!="" && $_POST['y']
$getvilowner = $database->getVillageField($getwref, "owner");
$getvilcoor['y'] = $_POST['y'];
$getvilcoor['x'] = $_POST['x'];
$time = $generator->procDistanceTime($getvilcoor,$village->coor,$session->tribe,0);
}
else if($_POST['dname']!=""){
$getwref = $database->getVillageByName($_POST['dname']);
$getvilcoor = $database->getCoor($getwref);
$getvilname = $database->getVillageField($getwref, "name");
$getvilowner = $database->getVillageField($getwref, "owner");
$time = $generator->procDistanceTime($getvilcoor,$village->coor,$session->tribe,0);
}
?>
<td><a href="karte.php?d=<?php echo $getwref; ?>&c=<?php echo $generator->getMapCheck($getwref); ?>"><?php echo $getvilname; ?>(<?php echo $getvilcoor['y']; ?>|<?php echo $getvilcoor['x']; ?>)<span class="clear"></span></a></td>
<td><a href="karte.php?d=<?php echo $getwref; ?>&c=<?php echo $generator->getMapCheck($getwref); ?>"><?php echo $getvilname; ?>(<?php echo $getvilcoor['x']; ?>|<?php echo $getvilcoor['y']; ?>)<span class="clear"></span></a></td>
</tr>
<tr>
<th>Player:</th>
@@ -83,7 +86,7 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && ($_POST['x']!="" && $_POST['y']
</tr>
<tr>
<th>duration:</th>
<td>-</td>
<td><?php echo $generator->getTimeFormat($time); ?></td>
</tr>
<tr>
<th>Merchants:</th>
@@ -163,7 +166,6 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && ($_POST['x']!="" && $_POST['y']
<tr>
<td class="mer">Merchants <?php echo $market->merchantAvail(); ?>/<?php echo $market->merchant; ?></td>
</tr>
<tr>
<td class="vil">
<span>Villages:</span>
<input class="text" type="text" name="dname" value="" maxlength="20" tabindex="5">
+5 -3
View File
@@ -67,7 +67,7 @@ $actionType = "Raid";
<th>Destination:</th>
<td><a href="karte.php?d=&amp;c="><?php echo $process[1]; ?> (<?php echo $coor['x']; ?>|<?php echo $coor['y']; ?>)</a></td>
<td><a href="karte.php?d=<?php echo $process[0]; ?>&c=<?php echo $generator->getMapCheck($process[0]); ?>"><?php echo $process[1]; ?> (<?php echo $coor['x']; ?>|<?php echo $coor['y']; ?>)</a></td>
</tr>
@@ -209,6 +209,7 @@ $actionType = "Raid";
<?php } ?>
<option value="38">Great warehouse</option>
<option value="39">Great granary</option>
<option value="40">Wonder of the World</option>
</optgroup>
<?php } ?>
<?php if($building->getTypeLevel(16) >= 10) { ?>
@@ -262,6 +263,7 @@ $actionType = "Raid";
<?php } ?>
<option value="38">Great warehouse</option>
<option value="39">Great granary</option>
<option value="40">Wonder of the World</option>
</optgroup>
<?php } ?>
<?php if($building->getTypeLevel(16) >= 10) { ?>
@@ -371,8 +373,8 @@ $actionType = "Raid";
<td colspan="10">
<div class="in">in <?php echo $generator->getTimeFormat($time); ?></div>
<div class="at">at <span id="tp2"> <?php echo date("H:i:s",time()+$time)?></span><span> hours</span></div>
<div class="at">at <span id="tp2"> <?php echo $generator->procMtime(date('U')+$time,9)?></span><span> hours</span></div>
</td>