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

📄 my_gen.php

📁 Download you own three BR
💻 PHP
📖 第 1 页 / 共 3 页
字号:
<?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");

//调用武将处理程序
include("my_gen_mod.php");

//调用武将使用物品处理程序
include("my_gen_user_goods.php");


?><? include('../configs/configs.php'); ?>

<!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><? echo $webgamesitename; ?></title>

<link href="css/id.css" rel="stylesheet" type="text/css">
<link href="css/css.css" rel="stylesheet" type="text/css">
<link href="css/box.css" rel="stylesheet" type="text/css">
<link href="css/rsx.css" rel="stylesheet" type="text/css">

<style>
v\:* {behavior: url(#default#VML)}
#dhtmltooltip {text-align:left;line-height:20px;font-size: 9pt;BORDER-RIGHT: #777777 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #777777 1px solid; PADDING-LEFT: 4px; Z-INDEX: 100; VISIBILITY: hidden; PADDING-BOTTOM: 4px; BORDER-LEFT: #777777 1px solid; WIDTH: 150px; PADDING-TOP: 4px; BORDER-BOTTOM: #777777 1px solid; POSITION: absolute; BACKGROUND-COLOR: #03081C;color:#ffffff;}
</style>
<script>
function del()
    {
    	if(window.confirm("你确定要解雇该武将吗?"))
    	{
    		return true;
    	}
    	return false;
    }
    
 function ove()
    {
    	if(window.confirm("确定该武将移动吗?路程为半小时!!"))
    	{
    		return true;
    	}
    	return false;
    }
</script>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

</script>
</head>

<body>
<div id='dhtmltooltip' height=250 width=250>
<img src=""/>
</div>
<script language="javascript" src="js/jump.js"></script>
<!--导航-->
<?php require_once("gen_daohang.htm");?>


<?php

if ($_GET['ac']=="genlist") {//当个武将信息
	/////////////////////////////////输出武将名称///////////////////////////////////
    $query=$db->query("select `b`.`ge_name`,b.id,b.ge_info,a.user_if  from gen a left join m_gen b on (`a`.`g_gid`=`b`.`id`) where `a`.`id`='".$_GET['mgend']."' ;");
    $list=$db->fetch_array($query);
    $now_gen_name=$list['ge_name'];
    $user_if=$list['user_if'];
    
    //计算武将经验百分比;
	$query13=$db->query("select * from gen where id='".$_GET['mgend']."';");
	$gen_experince_list=$db->fetch_array($query13);
?>	
<div class="sx_01" style="margin-top:12px;">
  <div id="rsx_01">
  <div class="sx_15"><strong>【<?php echo $now_gen_name;?>】的属性</strong></div>
  <form name="other_gen" id="other_gen">
  <div class="sx_16"><select name="menu1" onchange="MM_jumpMenu('self',this,0)">
    <option value="?">其他武将</option>
    <?php
    //查询玩家其它英雄;
    $query=$db->query("select `b`.`ge_name`,a.id from gen a left join m_gen b on (`a`.`g_gid`=`b`.`id`) where  a.g_uid='".$_COOKIE['UserId']."' and a.g_cid='".$_COOKIE['CityId']."';");
    while ($other_gen_list=$db->fetch_array($query))
    {
    	echo '<option value="?ac=genlist&&mgend='.$other_gen_list['id'].'"';
    	if ($now_gen_name==$other_gen_list['ge_name']) {
    		echo 'selected';
    	}
    	echo '>'.$other_gen_list['ge_name'].'</option>';
    }
    ?>    
  </select></div>
  </form>
  </div>
  <div id="rsx_02">
    <div class="sx_02" ><img alt="<?php echo $list['ge_info'];?>" src="img/gen_header/<?php echo $list['id'];?>.jpg" class="tud1" align="left"/></div >
	<div class="sx_01">
	<table width="153" height="100" border="0" cellpadding="0" cellspacing="0" style="margin-top:27px ">
    <tr>
      <td colspan="2" align="left" class="sx_03">武将赏赐:</td>
      <td width="48">&nbsp;</td>
    </tr>
    <form id="give_gen_money" name="give_gen_money" method="POST">
	<input type="hidden" name="gens_id" value="<?php echo $_GET['mgend'];?>"/>
	<input type="hidden" name="action" value="give"/>
    <tr>
      <td width="72" align="left"><input type="text" name="golds" class="sx_04"/></td>
      <td width="33" class="sx_03">黄金</td>
      <td><?php if ($gen_experince_list['g_status']==0||$gen_experince_list['g_status']==5) {?><input type="image" src="images/images/rsx_09.gif" /><?php } else echo '不可操作';?></td>
    </tr>
    </form>
    <tr>
      <td colspan="2" align="left" class="sx_03">官职任免:</td>
      <td>&nbsp;</td>
    </tr>
    <form id="remian_name" name="remian_name" method="POST">
	<input type="hidden" name="gens_id2" value="<?php echo $_GET['mgend'];?>"/>
	<input type="hidden" name="action2" value="remian"/>
    <tr>
      <td colspan="2" align="left"><select name="business">
		      <option value="0">请选择官职</option>
		      <option value="-1" >撤职</option>
		      <?php   
		       //////查询武将等级///////////////////////////////////////////////////
		        $query=$db->query("select * from gen where `g_uid`='".$_COOKIE['UserId']."' and `id`='".$_GET['mgend']."';");
		        $list=$db->fetch_array($query);
		        $gen_grade=$list['g_grade'];
		        $gen_name =$list['g_name'];
		        
		        ///////////////查询基础表中小于或等于武将等级(gen_grade)的官职名称//////////////////////////
		        $query=$db->query("select * from m_business where `bu_grade`<='".$gen_grade."';");
		        while ($list=$db->fetch_array($query)) {        	
		        	echo '<option value="'.$list['id'].'"';
		        	if ($gen_name==$list['bu_name']) {
		        		echo 'selected="selected"';
		        	}
		        	echo '>'.$list['bu_name'].'</option>'; 
		        }  	
		        ?>                
         </select></td>
    <td><?php if ($gen_experince_list['g_status']==0||$gen_experince_list['g_status']==5) {?><input type="image" src="images/images/rsx_10.gif" /><?php } else echo '不可操作';?></td>
  </tr>
  </form>
</table>
    </div>
  </div>
  <div id="rsx_03">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="25" colspan="3" class="fxg" align="left">
		<div style="margin-left:3px;background:url(images/images/rsx_12.gif);width:134px;height:13px;">
			<div style="background:url(images/images/rsx_13.gif);width:<?php			
			$gen_experince=$gen_experince_list['g_exploit'];
			$gen_grades   =$gen_experince_list['g_grade'];
			$gen_next_score2 = 20 * pow(2.5,$gen_grades);
			$ab=explode(".",$gen_next_score2);
			$gen_next_score2=$ab[0];
			$gen_experince2=(int)($gen_experince/$gen_next_score2*100);
			echo $gen_experince2;
			?>%;height:13px;">
			</div>
		</div>
		</td>
        <td class="fxg"><div class="sx_06" align="left">经 验:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php if($gen_experince_list['g_grade']<35) {$a=strlen($gen_experince)+strlen($gen_next_score2); if ($a<12) echo $gen_experince.'/'.$gen_next_score2; else echo'<a title="'.$gen_experince.'/'.$gen_next_score2.'">'.substr_cn($gen_experince,4).'/'.substr_cn($gen_next_score2,4).'</a>';} else { echo '<a title="35级封顶,经验不涨!">MAX</a>';}?></div></td>
      </tr>
      <tr>
        <td height="25" class="fxg"><div class="sx_06" align="left">名 称:</div></td>
        <td colspan="2" class="fxg"><div align="left"><?php echo $now_gen_name;?></div></td>
        <td class="fxg"><div class="sx_06" align="left">等 级:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_grade'];?></div></td>
      </tr>
      <tr>
        <td width="58" height="25" class="fxg"><div class="sx_06" align="left">攻 击:</div></td>
        <td width="40" class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_power']-$add_num['1'];?></div></td>
        <td width="64" class="fxg"><div align="left" class="rw_05"><?php if($add_num['1']) echo '+'.$add_num['1']; else echo '&nbsp;';?></div></td>
        <td width="58" class="fxg"><div class="sx_06" align="left">忠 诚:</div></td>
        <td width="65" class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_fealty'];?></div></td>
      </tr>
      <tr>
        <td height="25" class="fxg"><div class="sx_06" align="left">防 御:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_commend']-$add_num['4'];?></div></td>
        <td class="fxg"><div align="left" class="rw_05"><?php if ($add_num['4']) echo '+'.$add_num['4'];  else echo '&nbsp;';?></div></td>
        <td class="fxg"><div class="sx_06" align="left">官 职:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_name'];?> </div></td>
      </tr>
      <tr>
        <td height="25" class="fxg"><div class="sx_06" align="left">智 力:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_intellect']-$add_num['5'];?></div></td>
        <td class="fxg"><div align="left" class="rw_05"><?php if ($add_num['5']) echo '+'.$add_num['5'];  else echo '&nbsp;';?></div></td>
        <td class="fxg"><div class="sx_06" align="left">状 态:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php if ($gen_experince_list['g_fy']==1) echo '防御中'; else {if ($gen_experince_list['g_status']==0) echo '空闲';if ($gen_experince_list['g_status']==1) echo '出征';if ($gen_experince_list['g_status']==2) echo '己死亡';if ($gen_experince_list['g_status']==3) echo '被俘虏';if ($gen_experince_list['g_status']==4) echo '出征中';if ($gen_experince_list['g_status']==5) echo '工作';if ($gen_experince_list['g_status']==6) echo '移动中';}?></div></td>
      </tr>
      <form id="form_goods_use" name="form_goods_use" method="POST" >
      <input type="hidden" name="good_use_act" value="good_use_up"/>
      <input type="hidden" name="gen_use_id" value="<?php echo $_GET['mgend'];?>"/>
      <input type="hidden" name="gen_use_if" value="<?php echo $user_if;?>"/>
      <tr>
        <td height="25" class="fxg"><div class="sx_06" align="left">统 帅:</div></td>
        <td class="fxg"><div align="left" class="sx_07"><?php echo $gen_experince_list['g_command'];?></div></td>
        <td class="fxg"><div align="left" class="rw_05"><?php if ($add_num['3']) echo '+'.$add_num['3']; else echo '&nbsp;';?></div></td>
        <?php
        //查询物品是否有蛋蛋物品
        $query_my_gd=$db->query("select * from interior_goods where i_uid='".$_COOKIE['UserId']."' and (s_id='155' or s_id='156' or s_id='157' or s_id='158');");
        $sum_my_mg=$db->num_rows($query_my_gd);
        ?>
        <td class="fxg" colspan="2">        
        <?php 
        if ($gen_experince_list['g_status']==0){
        if ($sum_my_mg) {
        ?>
        <select name="user_g_id">

⌨️ 快捷键说明

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