fixed bugs of NarcisRO and more

This commit is contained in:
unknown
2012-06-05 16:07:57 +03:00
parent 08c11858a2
commit b8d1267a4a
8 changed files with 180 additions and 16 deletions
+7 -1
View File
@@ -195,7 +195,13 @@ $coor['y'] = "";
<div class="clear"></div>
<?php if($session->goldclub == 1){?>
<p><select name="send3"><option value="1" selected="selected">1x</option><option value="2">2x</option><option value="3">3x</option></select>go</p>
<?php } ?>
<?php
}else{
?>
<input type="hidden" name="send3" value="1">
<?php
}
?>
<p><input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" tabindex="8" alt="OK" <?php if(!$market->merchantAvail()) { echo "DISABLED"; }?>/></p></form>
<?php
$error = '';
+20 -3
View File
@@ -1,7 +1,24 @@
<?php
//reinforcement is underattack
$dataarray = explode(",",$message->readingNotice['data']);
if(isset($dataarray[14]) and $dataarray[14]!=0){$colspan="11";}else{$colspan="10";}
if(PEACE == 1){
$image = "peace";
}else if(PEACE == 2){
$image = "xmas";
}else if(PEACE == 3){
$image = "newy";
}else{
$image = "easter";
}
if(PEACE == 1){
$message1 = "".$database->getUserField($dataarray[0],"username",0)." visited ".$database->getUserField($dataarray[2],"username",0)."'s troops";
}else if(PEACE == 2){
$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Merry Christmas";
}else if(PEACE == 3){
$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Happy New Year";
}else{
$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Happy Easter";
}
?>
<table cellpadding="1" cellspacing="1" id="report_surround">
<thead>
@@ -53,8 +70,8 @@ if(isset($dataarray[14]) and $dataarray[14]!=0){
?>
</tbody>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<img src="<?php echo GP_LOCATE; ?>img/r/xmas.gif" alt="Peace" title="Peace" />
<?php echo "".$database->getUserField($dataarray[0],"username",0)." visited ".$database->getUserField($dataarray[2],"username",0)."'s troops" ?>
<img src="<?php echo GP_LOCATE; ?>img/r/<?php echo $image; ?>.gif" alt="Peace" title="Peace" />
<?php echo $message1; ?>
</td></tr></tbody>
</table>
</td></tr></tbody></table>