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

📄 armament_action.php

📁 Download you own three BR
💻 PHP
📖 第 1 页 / 共 2 页
字号:
	}
    ?>
    </div>
	<table width="100%" border=1 cellpadding=3 cellspacing=0 style="margin-bottom:15px; border-collapse:collapse;font-size:12px;border:1px solid threeddarkshadow; margin-top:15px; " bordercolor="threeddarkshadow" align="center">
		<TR height="28">
			<TD align="center" class="sub_subtitle" height="40" width="65">行动类型</TD>
			<TD align="left">
				<form name="html_form1" id="html_form1">
					  <select name="menu1" onchange="MM_jumpMenu('self',this,0)">
					    <option value="?action_type=0" <?php if($_GET['action_type']=="" or $_GET['action_type']=="0") echo "selected";?>>掠夺</option>
					    <option value="?action_type=7" <?php if($_GET['action_type']=="7") echo "selected";?>>讨伐 </option>
			            <option value="?action_type=3" <?php if($_GET['action_type']=="3") echo "selected";?>>侦察</option>
			            <option value="?action_type=5" <?php if($_GET['action_type']=="5") echo "selected";?>>筑城</option>
			            <option value="?action_type=2" <?php if($_GET['action_type']=="2") echo "selected";?>>输送</option>
			            <option value="armament_unite.php?action_type=6" <?php if($_GET['action_type']=="6") echo "selected";?>>联合进攻</option>
					  </select>
				</form>
		</TD>
		</TR>
		<form action="armament_action_do.php" method="post" name="attackForm" >
		<input type="hidden" name="action" value="attack">
		<input type="hidden" name="attack_type" value="<?php if($_GET['action_type']=="") echo '0' ;else echo $_GET['action_type'];?>"/>
		<TR>
			<TD align="center" class="sub_subtitle"  height="40"><span id="text2">目标城池</span></TD>
			<TD align="left">
			<?php
			if ($_GET['action_type']=='2') {   ///输送兵和资源;
			?>
				<select name="city_id" style="width:160px;">
	                <option value="0">请选择输送目的地</option>
				    <?php 
	                if($my_city_list<>"") foreach ($my_city_list as $l=>$m1){
	                	if($m1["c_id"]<>$_COOKIE['CityId']) {
	                ?>
					<option value="<?php echo $m1["c_id"];?>|<?php echo $m1["c_name"];?>|<?php echo $m1['c_area'].":".$m1['c_area_x'];?>"><?php echo $m1["c_name"]."(".$m1['c_area'].":".$m1['c_area_x'].")";?></option>
					<?php } } ?>
				</select>
			<?php	
			}else{
			?>			
			<input name="area" type="text" size="6" value="<?php echo $_GET['x'];?>">
				&nbsp;<input name="area_x" type="text" size="3" value="<?php echo $_GET['y'];?>">
				<input name="button" type="button" class="submit" id="button" value="查看地图" onclick="javascript:self.window.location='world_map.php';">
			<?php
			}
			?>
			</TD>
		</TR>
		<?php 
		if ($_GET['action_type']=="3") {   ///间谍战
			if($study_result['s_army']>0) {
				?>			
		<TR  height="30px">
			<TD align="center" class="sub_subtitle"><span id="text2">派遣探子</span></TD>
			<TD align="left">
			 <?php if($soldier_result['tan_zhi']>0) { ?>
			 <input name="tai_num" type="text" size="6" value="0" />个,现有(<?php echo $soldier_result['tan_zhi'];?>)。
			 <?php }else { ?>
			     <input name="tai_num" type="hidden" size="6" value="0" />
			     <div style="color:RED;">当前没有探子,请<a href="soldier_educate.php?#tanzhi" target="main">【训练探子】</a></div>
			 <?php } ?>
			</TD>
		</TR>
		<?php
			}else {?>
		<TR  style="height:30px;">
			<TD align="center" class="sub_subtitle">派遣探子</TD>
			<TD align="left">
			派遣探子需先研究科技:<a href="study.php" target="main" class="f">【军情刺探】</a></span>
			</TD>
		</TR>				
		<?php 
			} 
		} elseif ($_GET['action_type']=="0" or $_GET['action_type']=="" || $_GET['action_type']=="7"){  	//掠夺战
		?>
			<tr id="my_gen_list">
				<td align="center"  style="margin-top:20px;margin-bottom:20px;">选择武将</td>
				<td colspan="2" align="left"  class="sub_subtitle">
						<div class="gen" style="padding-left:10px; margin-top:0px;margin-bottom:20px;">
						<?php 
						if($my_hero_list<>"") foreach ($my_hero_list as $k=>$gen){ 
						?>
							      <div class="gen_list" style="margin-top:20px;">
							      <a class="info" href="javascript:choice('<?php echo $k;?>','<?php echo $gen['g_command']+$gen['bf_command'];?>','<?php echo $gen['ge_name'];?>');" >
								  <img id="gen_header<?php echo $k;?>" src="img/gen_header/<?php echo $gen['g_gid'];?>.jpg" width="85px" height="85px" border="0" />
								  <span>
								  攻&nbsp;&nbsp;击: <?php echo $gen['g_power'];?> &nbsp;&nbsp;智&nbsp;&nbsp;力: <?php echo $gen['g_intellect'];?><br/>
								  防&nbsp;&nbsp;御: <?php echo $gen['g_commend'];?> &nbsp;&nbsp;忠&nbsp;&nbsp;诚: <?php echo $gen['g_fealty'];?><br/>
								  经验值: <?php echo $gen['g_exploit'];?> <br />
								  官&nbsp;&nbsp;职: <?php echo $gen['g_name'];?><br/>
								  带兵上限: <?php echo $gen['g_command']+$gen['bf_command'];?><br/>
								  </span>
								  </a>
							      <?php echo $gen['ge_name'];?>(<?php echo $gen['g_grade'];?>级)<br>							      
							      <input type="radio" name="gen" value="<?php echo $gen['g_gid']."|".$gen['ge_name'];?>" style="cursor:hand;" onclick="javascript:choice('<?php echo $k;?>','<?php echo $gen['g_command']+$gen['bf_command'];?>','<?php echo $gen['ge_name'];?>');" />
							      </div>
						      
						   <?php }else{ ?>
						   <div class="gen" style="text-align:left;padding-top:20px;">当前还没有招募武将,<a href="gen_conscribe.php" target="_self" class="d">【招募武将】</a></div>
						   <?php } ?>
						</div>		
				</td>
			</tr>
		<?php 
		}
		if($_GET['action_type']=="0" || $_GET['action_type']=="2"  ||  $_GET['action_type']=="" || $_GET['action_type']=="7") ///掠夺和输送军队用
		{
			if ($_GET['action_type']=="0" || $_GET['action_type']=="" || $_GET['action_type']=="7")
			{
		?>
		<tr id="max_soldier_info">
		<td colspan="2" align="center">当前武将最多可派(<span id="gen_uplimit">0</span>)个兵出征
		<input type="hidden" name="gen_max_soldier_num" value="0" maxlength="10" size="8" />
		</td>
		</tr>
		<?php
			}
		?>
		<TR id="show_02">
			<TD align="center" class="sub_subtitle">派&nbsp;&nbsp;兵</TD>
			<TD align="left">
			 
			
			<?php if($soldier_list <> "") foreach ($soldier_list as $i=>$m) {
			if($m['s_type']<>"2" and $m['s_type']<>"8"){
			$current_soldier=$soldier_result[$soldier_type_name_en[$m['s_type']]];
			$total_soldier_num2 += $current_soldier;
			
			if($current_soldier>0) {
			?>
				<input type="Text" name="soldier_num<?php echo ($i+1);?>" value="" maxlength="10" size="8" onchange="max_control('<?php echo ($i+1);?>');" />
				<input type="hidden" name="soldier_type<?php echo ($i+1);?>" value="<?php echo $m['s_type'];?>" maxlength="10" size="8">
				<input type="hidden" name="max_soldier_num<?php echo ($i+1);?>" value="<?php echo $current_soldier;?>" maxlength="10" size="8">
				<input type="Button" class="button" value="最大" onclick="document.attackForm.soldier_num<?php echo ($i+1);?>.value='<?php if($current_soldier>0) echo $current_soldier;else echo "0";?>'">
				<?php echo $soldier_type_name[$m['s_type']];?> (您拥有<span style="color:RED;"> <?php if($current_soldier>0) echo $current_soldier;else echo "0";?></span>)<br>
			<?php }else { ?>
			    <input type="hidden" name="soldier_num<?php echo ($i+1);?>" value="" maxlength="10" size="8" onchange="max_control('<?php echo ($i+1);?>');" />
				<input type="hidden" name="soldier_type<?php echo ($i+1);?>" value="<?php echo $m['s_type'];?>" maxlength="10" size="8">
			<?php }}} ?>
			<?php if($total_soldier_num2<1) { ?>
			<div class="gen" style="text-align:left;padding-left:17px;padding-top:5px;">当前还没有训练士兵,<a href="soldier_educate.php" target="_self" class="d">【军事训练】</a></div>
			<?php 
				}
			} elseif ($_GET['action_type']=="5") {  ////筑城
		?>
		<TR id="show_02">
			<TD align="center" class="sub_subtitle">派&nbsp;&nbsp;兵</TD>
			<TD align="left">
			<?php if($soldier_list <> "") foreach ($soldier_list as $i=>$m) {
			   if($m['s_type']==8){
			      $current_soldier=$soldier_result[$soldier_type_name_en[$m['s_type']]];			      
			   	  if($current_soldier>0) {
			?>
				<input type="Text" name="soldier_num" value="1" maxlength="10" size="8" disabled />
				<input type="hidden" name="soldier_type" value="<?php echo $m['s_type'];?>" maxlength="10" size="8">
				<?php echo $soldier_type_name[$m['s_type']];?> (您拥有 <?php if($current_soldier>0) echo $current_soldier;else echo "0";?>)<br>
			<?php  }else { ?> 
	          <div class="gen" style="text-align:left;">筑城需要1个“筑城队”,<a href="soldier_educate.php#zc_dui" target="_self" class="f">【训练筑城队】</a></div>
			<?php } } }	?>
			</td></tr>
		<?php
			}
		?>
			</TD>
		</TR>
		</TABLE>
	</td>
	</tr>
	<tr><td align="center">
	<input type="Submit" class="button" value="     出征     " name="submit_name" /></td></tr>
	</form>
	</table>
	
</div>
<!--替换区域结束-->
<?php
}
?>

</div>

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

</body>
</html>

⌨️ 快捷键说明

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