📄 soliderinfo.php
字号:
<?php
require_once("configs/Configs.php");//加载配置文件
require_once("functions/login_flag.php");//是否已经登录
require_once("functions/func_common.php");//加载函数文件
require_once("functions/class_mysql.php");//加载数据库类文件
//调用相关处理进程
require_once("all_processing.php");
//获取士兵指数;
$num=$_GET['soldier_num'];
//读取士兵训练基础表
$query=$db->query("select * from soldier_attribute where s_type='".$num."'");
$m=$db->fetch_array($query);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>军事训练</title>
<link href="css/id.css" rel="stylesheet" type="text/css">
<link href="css/css.css" rel="stylesheet" type="text/css">
<link type="text/css" href="css/build.css" rel="stylesheet">
<link type="text/css" href="css/box.css" rel="stylesheet">
<style>
body{
margin-top:0px;
}
.li_description {list-style:none; color:RED;}
</style>
</head>
<body>
<table width="648" border="0" cellpadding="3" cellspacing="1" bgcolor="#A17E63" style="margin-top:30px ">
<tr>
<td width="11%" rowspan="2" align="center" valign="middle" background="images/bg.jpg"><div align="center"><img src="img/soldier/<?php echo $m['s_image'];?>" style="margin-top:3px;" width="50" height="50" border="0" id="d1_02" /></div></td>
<td height="30" background="images/bg.jpg" align="left"> <strong><?php echo $soldier_type_name[$m['s_type']];?></strong></td>
</tr>
<tr>
<td background="images/bg.jpg" align="left"> <?php echo $m['s_description'];?></td>
</tr>
<tr>
<td align="center" valign="middle" background="images/bg.jpg">生命</td>
<td height="30" background="images/bg.jpg" align="left"> <span class="wy_05"><?php echo $m['s_life'];?></span></td>
</tr>
<tr>
<td align="center" valign="middle" background="images/bg.jpg">攻击</td>
<td height="30" background="images/bg.jpg" align="left"> <span class="wy_05"><?php echo $m['s_attack'];?></span></td>
</tr>
<tr>
<td align="center" valign="middle" background="images/bg.jpg">防御</td>
<td height="30" background="images/bg.jpg" align="left"> <span class="wy_05"><?php echo $m['s_recovery'];?></span></td>
</tr>
<tr>
<td align="center" valign="middle" background="images/bg.jpg">攻击发挥</td>
<td height="30" background="images/bg.jpg" align="left"> <span class="wy_05"><?php echo $m['attack_exert'];?></span></td>
</tr>
<tr>
<td align="center" valign="middle" background="images/bg.jpg">移动速度</td>
<td height="30" background="images/bg.jpg" align="left"> <span class="wy_05"><?php echo $m['move_spead'];?></span></td>
</tr>
<tr>
<td align="center" valign="middle" background="images/bg.jpg">携带量</td>
<td height="30" background="images/bg.jpg" align="left"> <span class="wy_05"><?php echo $m['take_num'];?></span></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -