⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 war_result_info.php

📁 Download you own three BR
💻 PHP
📖 第 1 页 / 共 2 页
字号:
      </tr>
      <tr>
        <td width="80" height="20" align="center">忠诚:</td>
        <td width="80" height="20" align="left"><?php if($de_gen_info[3]>0) echo $de_gen_info[3];else echo "0";?></td>
      </tr>
      <tr>
        <td><?php if($de_result['gen_id']>0) { ?><?php echo $de_result['gen_name'];?>(<?php if($de_gen_info[5]>0) echo $de_gen_info[5];else echo "0";?>级)<?php } ?></td>
        <td width="80" height="20" align="center"></td>
        <td width="80" height="20"></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr  bgcolor="darkslategray">
    <td height="25">&nbsp;</td>
    <td height="25"><div align="center" class="text1">战争过程</div></td>
    <td height="25">&nbsp;</td>
  </tr>
  <?php 
    if($action_counter>5) $action_counter=5;
    for($i=0;$i<=$action_counter-1;$i++){
       
  ?>
  <tr align="left">
    <td height="25">军队:<?php echo $wo_arm_info[$i];?></td>
    <td rowspan="2"><div align="center">第<font color="RED"><?php echo $i+1;?></font>回合</div></td>
    <td height="25">军队:<?php echo $de_arm_info[$i];?></td>
  </tr>
  <tr align="left">
    <td height="25">发送攻击:<?php if($wo_arm_info[$i]) echo $wo_action_power[$i];else echo "0";?> 防御:<?php if($wo_arm_info[$i]) echo $wo_recovery_power[$i];else echo "0";?></td>
    <td height="25">发送攻击:<?php if($de_arm_info[$i]) echo $de_action_power[$i];else echo "0";?> 防御:<?php if($de_arm_info[$i]) echo $de_recovery_power[$i];else echo "0";?></td>
  </tr>
    <tr bgcolor="darkslategray">
    <td height="4" colspan="3"></td>
    </tr>
    <tr>
    <td height="8" colspan="3"></td>
    </tr>
    <tr bgcolor="darkslategray">
    <td height="4" colspan="3"></td>
    </tr>
  <?php } ?>
  <tr>
    <td height="8" colspan="3"></td>
  </tr>
  <tr  bgcolor="darkslategray">
    <td height="25">&nbsp;</td>
    <td height="25"><div align="center" class="text1">战争结果</div></td>
    <td height="25">&nbsp;</td>
  </tr>
  <tr>
    <td height="25"><div align="center"><?php if($wo_result['war_status']=="1") echo "--胜利--";elseif($wo_result['war_status']=="0") echo "--<font color:RED>失败</font>--";elseif($wo_result['war_status']=="2") echo "--平局--";?></div></td>
    <td height="25">&nbsp;</td>
    <td height="25"><div align="center"><?php if($wo_result['war_status']=="1") echo "--失败--";elseif($wo_result['war_status']=="0") echo "--<font color:RED>胜利</font>--";elseif($de_result['war_status']=="2") echo "--平局--";?></div></td>
  </tr>
  <tr align="left">
    <td height="25">武将状态:<?php if($wo_result['gen_status']=="2") { echo '武将被俘';}elseif($wo_result['gen_status']=="1")  { echo '武将死亡';} else echo '无';?></td>
    <td height="25">&nbsp;</td>
    <td height="25">
    <?php     
    	if($de_result['gen_name']){ ?>武将状态:<?php if($de_result['gen_status']=="2") {echo '武将被俘';}elseif($de_result['gen_status']=="1")  { echo '武将死亡';} else echo '无';
    	}else echo "无";
    ?>
    </td>
  </tr>
  
  <tr align="left">
    <td height="25">城墙损失:无</td>
    <td height="25">&nbsp;</td>
    <td height="25">城墙损失:<?php
                            if($_GET['w_type']<>"4"){
                            $citywall = explode("|",$de_result['citywall_statues']);
                                $citywall[1] = ($citywall[1]) ? $citywall[1] :0;
                            	echo (int)$citywall[1]."点防御";
                            
                            }else {
                            	echo "已被摧毁";
                            }
                            ?>
    </td>
  </tr>
  <tr align="left">
    <td height="25">损失军队:<?php echo $wo_result['loss_army'];?></td>
    <td height="25">&nbsp;</td>
    <td height="25">损失军队:<?php echo $de_result['loss_army'];?></td>
  </tr>
  <?php if($_GET['w_type']=="0" ||$_GET['w_type']=="6"|| $_GET['w_type']=="7"){ ?>
  <tr align="left">
    <td height="25">掠得资源:<?php echo $wo_result['get_resource'];?></td>
    <td height="25">&nbsp;</td>
   <td height="25">损失资源:<?php if($_GET['w_type']=="6")echo $de_result['get_resource'];else echo $wo_result['get_resource'];?></td>
  </tr>
  <?php }elseif($_GET['w_type']=="1"){ ?>
  <tr align="left">
    <td height="25">摧毁建筑物:<?php $b=explode("|",$wo_result['destory_building']); if($b[0]) echo $b_type_name_num[$b[0]]."(".$b[1].")个";else echo "无";?></td>
    <td height="25">&nbsp;</td>
    <td height="25">损失建筑物:<?php $b=explode("|",$de_result['destory_building']); if($b[0]) echo $b_type_name_num[$b[0]]."(".$b[1].")个";else echo "无";?></td>
  </tr>
  <?php } ?>
  
  <?php if($_GET['w_type']=="4"){ ?>
  <tr align="left">
    <td height="25">占领城池:<?php if($wo_result['war_status']=="1") echo $de_result['c_area'];else echo "无";?></td>
    <td height="25">&nbsp;</td>
    <td height="25">沦陷城池:<?php if($de_result['war_status']=="0") echo $de_result['c_area'];else echo "无";?></td>
  </tr>
  <?php } ?>
  
  <tr align="left">
    <td height="25">经验:<?php echo "武将经验增长了".$wo_gen_info[6]."点 "; if($wo_gen_info[7]) echo " 角色经验增长了".$wo_gen_info[7]."点";?></td>
    <td height="25">&nbsp;</td>
    <td height="25">经验:<?php echo "武将经验增长了".$de_gen_info[6]."点 "; if($de_gen_info[7]) echo " 角色经验增长了".$de_gen_info[7]."点";?></td>
  </tr>
</table>
<?php }else { ?>

<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
 <tr align="center">
    <td height="25"><a href="javascript:history.go(-1);">返回</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>

<table width="95%" border=1 cellpadding=1 cellspacing=0 style="margin-top:0px;margin-bottom:20px; border-collapse:collapse;border:1px solid threeddarkshadow;font-size:12px;" bordercolor="threeddarkshadow" align="center">
 <tr align="center">
    <td height="25" width="20%">发生时间:</td>
    <td height="25" width="80%" align="left"><?php echo date("Y-m-d H:i:s",$wo_result['w_date']);?></td>
</tr>
<tr align="center">
    <td height="25" width="20%">攻击方:</td>
    <td height="25" width="80%" align="left"><?php echo $_GET['wo_fang'];?></td>
</tr>
<tr align="center">
    <td height="25" width="20%">防御方:</td>
    <td height="25" width="80%" align="left"><?php echo $_GET['de_fang'];?></td>
</tr>
<tr align="center">
    <td height="25" width="20%">类  型:</td>
    <td height="25" width="80%" align="left"><?php echo $war_type[$_GET['w_type']];?>信息</td>
</tr>
<tr align="center">
    <td height="25" width="20%"><?php echo $war_type[$_GET['w_type']];?>结果:
    </td>
    <td height="25" width="80%" align="left">
    <?php 
    if($_GET['w_type']=="3"){
       if($wo_result['u_id']==$_COOKIE['UserId']) { 
       	  if($wo_result['w_flag']=="1") echo $wo_result['w_myself_result'];
       	  else{
       	  	if ($wo_result['w_myself_result']=='间谍探查失败') {
       	  		echo "间谍任务失败,间谍脱逃!";
       	  	}else{
       	  		echo "<br />间谍被发现并处死!";
       	  	}
//       	  	if($wo_result['w_soldier_num'] < $lurcher_result['tan_zhi']){
//       	  		echo "<br />间谍被发现并处死!";
//       	  	}else{
//       	  		echo "间谍任务失败,无间谍伤亡";
//       	  	}
       	    
       	  }
       }else{
       	if($wo_result['w_flag']=="1") echo "对方成功刺探了您的信息,请加强您的军情刺探研究技术!";
       	else{
       		echo "对方刺探了您的信息,由于您的反间谍技术过硬,对方间谍任务失败。";
       		if ($wo_result['w_myself_result']=='间谍探查失败') {
       	  		echo "<br />对方间谍已全部逃跑";
       	  	}else{
       	  		echo "<br />对方间谍被我方发现并处死!";
       	  	}
//       		if($wo_result['w_soldier_num'] < $lurcher_result['tan_zhi']){
//       	  		echo "<br />对方间谍被我方发现并处死!";
//       		}else{
//       			echo "<br />对方间谍已全部逃跑!";
//       		}
       	}
       	
       }
    }elseif($_GET['w_type']=="2"){
    	echo "您已成功向".$_GET['de_fang']."输送了:".$wo_result['w_myself_result'];
    }elseif($_GET['w_type']=="5"){
    	if($wo_result['w_flag']){
    	echo $_GET['de_fang']."已被你成功占领";
    	}else{
    		echo $_GET['de_fang']."已被其他玩家占领!";
    	}
    }
    ?></td>
</tr>
</table>

<?php } ?>
<?php if($_GET['from']<>"world_news") { ?>
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
    <td height="25"><a href="javascript:history.go(-1);">返回</a></td>
</tr>
</table>
<?php }else{ ?>
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
    <td height="25"><a href="war_info.php">返回</a></td>
</tr>
</table>
<?php } ?>
</div>
<!--替换区域结束-->

</div>

</div>
<div id="mb_03"></div>

</body>
</html>
<?php $db->close();?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -