mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-22 01:46:38 +08:00
big update
This commit is contained in:
@@ -24,16 +24,7 @@ while($row = mysql_fetch_array($sql)){
|
||||
<input type="hidden" name="direction" value="asc">
|
||||
<input type="hidden" name="lid" value="<?php echo $lid; ?>">
|
||||
<div class="listTitleText">
|
||||
<img alt="del" class="del" src="img/x.gif" onclick="dialog(
|
||||
'Are you sure that you want to delete this list?'.
|
||||
{
|
||||
onOkay: function(dialog, contentElement)
|
||||
{
|
||||
window.location = 'build.php?id=39&t=99&action=deleteList&lid=<?php echo $lid; ?>';
|
||||
}
|
||||
});
|
||||
event.stop();
|
||||
">
|
||||
<a href="build.php?gid=16&t=99&action=deleteList&lid=<?php echo $lid; ?>"><img class="del" src="img/x.gif" alt="delete" title="delete"></a>
|
||||
<?php echo $lvname; ?> - <?php echo $lname; ?>
|
||||
<img alt="Loading..." class="loading hide" src="img/x.gif" align="absmiddle">
|
||||
</div>
|
||||
@@ -267,16 +258,7 @@ for($i=$start;$i<=$end;$i++){
|
||||
<div id="list<?php echo $lid; ?>" class="listEntry">
|
||||
<div class="round spacer listTitle" onclick="Travian.Game.RaidList.toggleList(<?php echo $lid; ?>);">
|
||||
<div class="listTitleText">
|
||||
<img alt="del" class="del" src="img/x.gif" onclick="
|
||||
'Are you sure that you want to delete this list?'.dialog(
|
||||
{
|
||||
onOkay: function(dialog, contentElement)
|
||||
{
|
||||
window.location = 'build.php?gid=16&t=99&action=deleteList&lid=<?php echo $lid; ?>';
|
||||
}
|
||||
});
|
||||
event.stop();
|
||||
">
|
||||
<a href="build.php?gid=16&t=99&action=deleteList&lid=<?php echo $lid; ?>"><img class="del" src="img/x.gif" alt="delete" title="delete"></a>
|
||||
<?php echo $lvname; ?> - <?php echo $lname; ?>
|
||||
<img alt="Loading..." class="loading hide" src="img/x.gif" align="absmiddle">
|
||||
</div>
|
||||
@@ -498,7 +480,9 @@ $troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+"
|
||||
var lid = <?php echo $_GET['lid']; ?>;targets[lid] = {};
|
||||
|
||||
</script>
|
||||
|
||||
<?php if($create == 1){
|
||||
include("Templates/goldClub/farmlist_add.tpl");
|
||||
}else if($query > 1){ ?>
|
||||
<div id="raidListSlot">
|
||||
<h4>Add Raid</h4>
|
||||
<font color="#FF0000"><b>
|
||||
@@ -582,4 +566,5 @@ $lvname1 = $database->getVillageField($row1["wref"], 'name');
|
||||
<button type="submit" value="Add" name="save" id="save"><div class="button-container"><div class="button-position"><div class="btl"><div class="btr"><div class="btc"></div></div></div><div class="bml"><div class="bmr"><div class="bmc"></div></div></div><div class="bbl"><div class="bbr"><div class="bbc"></div></div></div></div><div class="button-contents">Add</div></div></button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -11,13 +11,13 @@ $troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+"
|
||||
$vdata = $database->getVillage($Wref);
|
||||
}
|
||||
if(!$_POST['x'] && !$_POST['y']){
|
||||
$errormsg .= "مختصات را وارد کنید.";
|
||||
$errormsg .= "Enter coordinates.";
|
||||
}elseif(!$_POST['x'] || !$_POST['y']){
|
||||
$errormsg .= "مختصات را صحیح وارد کنید.";
|
||||
$errormsg .= "Enter the correct coordinates.";
|
||||
}elseif($oasistype == 0 && $vdata == 0){
|
||||
$errormsg .= "در این مختصات دهکده ای وجود ندارد.";
|
||||
$errormsg .= "There is no village on those coordinates.";
|
||||
}elseif($troops == 0){
|
||||
$errormsg .= "هیچ نیرویی انتخاب نشده.";
|
||||
$errormsg .= "No troops has been selected.";
|
||||
}else{
|
||||
|
||||
$Wref = $database->getVilWref($_POST['y'], $_POST['x']);
|
||||
|
||||
Reference in New Issue
Block a user