📄 my_gen.php
字号:
<!-------------------------兵符------------------------------->
<!-------------------------书籍------------------------------->
<div class="sx_08"><strong>书 籍</strong></div>
<div class="fohr fxg">
<?php
//查询内政物品表中所有的武器;
$query=$db->query("select * from interior_goods where i_uid='".$_COOKIE['UserId']."' and (i_style_num=4 or i_style_num=5) and i_state=2;");
$wuqi_sum=$db->num_rows($query);
if ($wuqi_sum==0) {
echo '<span style="font-size=12px;color:red;">没有书籍装备</span>';
}
while ($wuqi_list=$db->fetch_array($query)) {
echo '<div class="folr_01"><table width="156px" border="0" cellpadding="0" cellspacing="0" ><tr>
<td width="44px" height="28" ><input type="radio" name="shuji" value="'.$wuqi_list['id'].'" /></td>
<td width="112px" style="font-size:12px;"><div align="left" style="color:'.$font_color[$wuqi_list['i_level']].'" onMouseOver="javascript:ddrivetip(\'<font color='.$font_color[$wuqi_list['i_level']].'>'.$wuqi_list['i_goodsname'].'</font><br/><font color=FFD100>书籍</font><br/><font color=#1EFF00>'.$wuqi_list['i_effect'].'</font><br/>装备等级:'.$wuqi_list['i_level'].'\');" onMouseOut="hideddrivetip()">'.$wuqi_list['i_goodsname'].'</div></td></tr>
</table></div>';
}
?>
<div class="folr_01"><table width="156px" border="0" cellpadding="0" cellspacing="0" ><tr>
<td width="44px" height="28" ><input type="radio" name="shuji" value="-1" /></td>
<td width="112px" style="font-size:12px;"><div align="left" >卸下装备</div></td></tr>
</table></div>
</div>
<!-------------------------书籍------------------------------->
<!-------------------------坐骑------------------------------->
<div class="sx_08"><strong>坐 骑</strong></div>
<div class="fohr fxg">
<?php
//查询内政物品表中所有的武器;
$query=$db->query("select * from interior_goods where i_uid='".$_COOKIE['UserId']."' and i_style_num=3 and i_state=2;");
$wuqi_sum=$db->num_rows($query);
if ($wuqi_sum==0) {
echo '<span style="font-size=12px;color:red;">没有坐骑装备</span>';
}
while ($wuqi_list=$db->fetch_array($query)) {
echo '<div class="folr_01"><table width="156px" border="0" cellpadding="0" cellspacing="0" ><tr>
<td width="44px" height="28" ><input type="radio" name="zhuoqi" value="'.$wuqi_list['id'].'" /></td>
<td width="112px" style="font-size:12px;"><div align="left" style="color:'.$font_color[$wuqi_list['i_level']].'" onMouseOver="javascript:ddrivetip(\'<font color='.$font_color[$wuqi_list['i_level']].'>'.$wuqi_list['i_goodsname'].'</font><br/><font color=FFD100>坐骑</font><br/><font color=#1EFF00>'.$wuqi_list['i_effect'].'</font><br/>装备等级:'.$wuqi_list['i_level'].'\');" onMouseOut="hideddrivetip()">'.$wuqi_list['i_goodsname'].'</div></td></tr>
</table></div>';
}
?>
<div class="folr_01"><table width="156px" border="0" cellpadding="0" cellspacing="0" ><tr>
<td width="44px" height="28" ><input type="radio" name="zhuoqi" value="-1" /></td>
<td width="112px" style="font-size:12px;"><div align="left" >卸下装备</div></td></tr>
</table></div>
</div>
<!-------------------------坐骑------------------------------->
<table width="200" height="40" border="0" cellpadding="0" cellspacing="0" style="margin-top:30px;">
<tr>
<td width="100%" align="center"><input type="image" src="images/images/rsx_07.gif"/> <a href="?ac=genlist&&mgend=<?php echo $_GET['mgend'];?>"><img alt="取消" src="images/images/rsx_089.gif"></a></td>
</tr>
</table>
</form>
</div>
<div id="mb_05" ></div>
<?php
}
}else {
//////////////////当前城市内武将列表///////////////////////////////////////////////////////////////////////////
?>
<div id="mb_01">
<div id="wy_01">我的武将</div>
</div>
<div id="mb_04">
<div style="float:left;width:auto;margin-top:4px;">
<div class="d1f_08"></div>
<div class="d1f_07"><strong>名称</strong></div>
<div class="d1f_07"><strong>等级</strong></div>
<div class="d1f_07"><strong>攻击</strong></div>
<div class="d1f_07"><strong>防御</strong></div>
<div class="d1f_07"><strong>智力</strong></div>
<div class="d1f_10"><strong>统帅</strong></div>
<div class="d1f_07"><strong>忠诚</strong></div>
<div class="d1f_07"><strong>官职</strong></div>
<div class="d1f_10"><strong>状态</strong></div>
<div class="d1f_10"><strong>查看装备</strong></div>
<div class="d1f_07"><strong>解雇</strong></div>
<div style="float:left;width:640px;margin-left:18px;height:4px;margin-top:-6px;"></div>
</div>
<div class="d1f_09">-------------------------------------------------------------------------------------------</div>
<?php
$query=$db->query("select * from gen where `g_uid` = '".$_COOKIE['UserId']."' and `g_cid` = '".$_COOKIE['CityId']."' and g_status<>'2';");
while ($list=$db->fetch_array($query)) {
?>
<!--------循环----------->
<div style="float:left;width:auto;margin-top:4px;">
<div class="d1f_08"><a href="?ac=genlist&&mgend=<?php echo $list['id'];?>" ><img src="img/s_header/<?php echo $list['g_gid'];?>.jpg" width="40" height="40"id="d1_02" border="0px;"/></a></div>
<div class="d1f_07"><a href="?ac=genlist&&mgend=<?php echo $list['id'];?>" class="f"><?php
//////////////////////通过武将索引ID(g_gid)查找武将名称/////////////////////////////
$query_mgen=$db->query("select `ge_name` from m_gen where `id` ='".$list['g_gid']."';");
$mgen=$db->fetch_array($query_mgen);
echo $mgen['ge_name'];
?></a></div>
<div class="d1f_07"><?php echo $list['g_grade'];?></div>
<div class="d1f_07"><?php echo $list['g_power'];?></div>
<div class="d1f_07"><?php echo $list['g_commend'];?></div>
<div class="d1f_07"><?php echo $list['g_intellect'];?></div>
<div class="d1f_10"><?php echo $list['g_command']+$list['bf_command'];?></div>
<div class="d1f_07"><?php echo $list['g_fealty'];?></div>
<div class="d1f_07 veb"><?php echo $list['g_name'];?></div>
<div class="d1f_10 f">
<?php
if ($list['g_fy']=='1') {
echo '<span style="color:#48681D;">(防御中)';
echo '</span>';
}else{
if ($list['g_status']=='0') {
echo '<span style="color:#48681D;">(空闲)';
echo '</span>';
}
if ($list['g_status']=='1') {
echo '<span style="color:#48681D;">(出征)';
echo '</span>';
}
if ($list['g_status']=='3') {
echo '<span style="color:#48681D;">(俘虏)';
echo '</span>';
}
if ($list['g_status']=='4') {
echo '<span style="color:#48681D;">(出征)';
echo '</span>';
}
if ($list['g_status']=='5') {
echo '<span style="color:#48681D;">(工作)';
echo '</span>';
}
if ($list['g_status']=='6') {
echo '<span style="color:#48681D;">(移动中)';
echo '</span>';
}
}
?></div>
<div class="d1f_10"><a href="?ac=genlist&&mgend=<?php echo $list['id'];?>" class="f">查看详细</a></div>
<div class="d1f_07"><?php if ($list['g_status']=='0') {?><a href="?action=下野&id=<?php echo $list['id'];?>" class="f" onclick="return del()">解 雇</a><?php } else echo ' '?></div>
<div style="float:left;width:640px;margin-left:18px;height:4px;margin-top:-6px;border-bottom:1px dashed #734921;"></div>
</div>
<!--------循环----------->
<?php
}
?>
<?php
$query=$db->query("select * from gen where `g_uid` = '".$_COOKIE['UserId']."' and `g_cid` = '".$_COOKIE['CityId']."' and g_status=2;");
$numbers=$db->num_rows($query);
if ($numbers>0) {
?>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" valign="bottom" align="center"><strong class="rw_05">阵亡武将</strong></td>
</tr>
</table>
<div class="d1f_09">-------------------------------------------------------------------------------------------</div>
<?php
}
$query=$db->query("select * from gen where `g_uid` = '".$_COOKIE['UserId']."' and `g_cid` = '".$_COOKIE['CityId']."' and g_status=2;");
$i=0;
while ($list=$db->fetch_array($query)) {
?>
<!--------循环----------->
<div><div class="d1f_08"><a href="?ac=genlist&&mgend=<?php echo $list['id'];?>" ><img src="img/s_header/<?php echo $list['g_gid'];?>.jpg" width="40" height="40"id="d1_02" border="0"/></a></div>
<div class="d1f_07"><a href="?ac=genlist&&mgend=<?php echo $list['id'];?>" ><?php
//////////////////////通过武将索引ID(g_gid)查找武将名称/////////////////////////////
$query_mgen=$db->query("select `ge_name` from m_gen where `id` ='".$list['g_gid']."';");
$mgen=$db->fetch_array($query_mgen);
echo $mgen['ge_name'];
?></a></div>
<div class="d1f_07"><?php echo $list['g_grade'];?></div>
<div class="d1f_07"><?php echo $list['g_power'];?></div>
<div class="d1f_07"><?php echo $list['g_intellect'];?></div>
<div class="d1f_07"><?php echo $list['g_commend'];?></div>
<div class="d1f_07"><?php echo $list['g_fealty'];?></div>
<div class="d1f_10"><?php echo $list['g_command'];?></div>
<div class="d1f_07 veb"><?php echo $list['g_name'];?></div>
<div class="d1f_10"><span class="f">死亡</span></div>
<div class="d1f_10"><a href="?ac=genlist&&mgend=<?php echo $list['id'];?>" class="f">查看详细</a></div>
<div class="d1f_07"><a href="?action=relive&id=<?php echo $list['id'];?>" class="f" >复活</a></div>
<div class="d1f_09">-------------------------------------------------------------------------------------------</div>
<!--------循环----------->
<?php $i++;
}
?>
<div style="padding-bottom:80px;"> </div>
</div>
</div>
<div id="mb_05" ></div>
<?php
}
include_once("function_area_re.php");
$db->close();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -