📄 gen_prison.php
字号:
<?php
require_once("functions/login_flag.php");//是否已经登录
require_once("functions/class_mysql.php");//加载数据库类文件
include_once("configs/Configs.php");//加载配置文件;
include_once("all_processing.php");//加载所有进程;
//查找被俘虏的对象;
$query=$db->query("select a.*,b.ge_name from gen_prison a left join m_gen b on (a.g_gid=b.id) where a.u_id='".$_COOKIE['UserId']."';");
while ($list=$db->fetch_array($query)) $gen_prison[]=$list;
//引入处理过程;
include("gen_prison_mod.php");
$db->close();
?>
<!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 href="css/rsx.css" rel="stylesheet" type="text/css">
<style>
body{
margin-top:0px;
}
</style>
</head>
<body>
<!--导航-->
<?php require_once("gen_daohang.htm");?>
<div id="mb_01">
<div class="page_build_title">监狱</div>
</div>
<div id="mb_04">
<!--替换区域开始-->
<table width="75%" height="26" border="0" cellpadding="0" cellspacing="0" style="margin-top:25px ">
<tr>
<td width="8%"><strong>名称</strong></td>
<td width="10%"><strong>等级</strong></td>
<td width="8%"><strong>武力</strong></td>
<td width="9%"><strong>智力</strong></td>
<td width="9%"><strong>统率</strong></td>
<td width="8%"><strong>忠诚</strong></td>
<td width="11%"><strong>带兵数</strong></td>
<td width="10%"><strong>抓获时间</strong></td>
<td width="13%"><strong>国家</strong></td>
<td width="14%"> <strong>操 作</strong></td>
</tr>
</table>
<div class="d1f_09">-------------------------------------------------------------------------------------------</div>
<?php
if (!empty($gen_prison)) {
foreach ($gen_prison as $pri)
{
?>
<!--------循环----------->
<div class="d1f_08"><img src="img/s_header/<?php echo $pri['g_gid'];?>.jpg" width="40" height="40"/></div>
<div class="fxg_01"><?php echo $pri['ge_name'];?></div>
<div class="fxg_01"><?php echo $pri['g_grade'];?></div>
<div class="fxg_01"><?php echo $pri['g_power'];?></div>
<div class="fxg_01"><?php echo $pri['g_intellect'];?></div>
<div class="fxg_01"><?php echo $pri['g_commend'];?></div>
<div class="fxg_01"><?php echo $pri['g_fealty'];?></div>
<div class="fxg_01"><?php //计算带兵数量;
echo $command_num=200+($pri['g_grade']+1)*50;?></div>
<div class="fxg_03 style1"><?php echo date('Y-m-d',$pri['times']);?></div>
<div class="fxg_01 veb"><?php if ($pri['country']==1) {
echo '魏国';
}elseif ($pri['country']==2){
echo '蜀国';
}else echo '吴国'?></div>
<div class="fxg_12" style="margin-left:5px "><a href="?action=sur&id=<?php echo $pri['id'];?>"><img src="images/images/004.gif" width="39" height="19" /></a></div>
<div class="fxg_12"><a href="?action=kill&id=<?php echo $pri['id'];?>"><img src="images/images/003.gif" width="39" height="19" /></a></div>
<div class="fxg_12"><a href="?action=out&id=<?php echo $pri['id'];?>"><img src="images/images/005.gif" width="39" height="19" /></a></div>
<div class="d1f_09">-------------------------------------------------------------------------------------------</div>
<!--------循环----------->
<?php
}
}
?>
<div style="padding-bottom:<?php echo 260-count($gen_prison)*30;?>px;"> </div>
<!--替换区域结束-->
</div>
<div id="mb_05"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -