📄 gen_conscribe.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");//加载数据库类文件
include_once("all_processing.php");//加载所有进程;
//更新资源数
//-------------------------读取玩家读取酒馆等级----------------------------------------
$query=$db->query("select `b_pub` from building where `u_id`='".$_COOKIE['UserId']."' and `c_id`='".$_COOKIE['CityId']."'");
$list=$db->fetch_array($query);
$pub=$list['b_pub'];
require_once("gen_conscribe_process.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">
<style>
body{
margin-top:0px; color:#ffffff;
}
</style>
<script type="text/javascript">
function keycode() {
if(event.keyCode==13) {
event.returnValue=false;
}
}
</script>
</head>
<body>
<!--导航-->
<?php require_once("gen_daohang.htm");?>
<div id="mb_01">
<div class="page_build_title"><span style="color:#000000">武将招募</span></div>
</div>
<div id="mb_04">
<!--替换区域开始-->
<?php
if ($gen_pub_if) {
echo '<br/><span style="color:#000000;">武将招幕暂时关闭</span>';
}elseif ($pub<1) {
echo '<br/><span style="color:#000000;">招募武将需先建造</span><a href="build.php?build_page=produce" target="main" class="f">【招贤馆】</a><span style="color:#000000;">设施!</span>';
}else {
?>
<form name="pub" action="" method="POST">
<input type="hidden" name="action" value="pub_process">
<TABLE cellSpacing=0 cellPadding=0 width=395 align=center border=0 style="margin-top:20px;font-size:12px;">
<TBODY>
<TR>
<TD><IMG height=55 alt=""
src="images/pub/alehouse_r1_c1.jpg"
width=395 border=0
name=alehouse_r1_c1></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=395
border=0>
<TBODY>
<TR>
<TD><IMG height=133 alt=""
src="images/pub/alehouse_r2_c1.jpg"
width=69 border=0 name=alehouse_r2_c1></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=258
border=0>
<TBODY>
<TR>
<TD><IMG height=122 alt=""
src="images/pub/alehouse_r2_c4.jpg"
width=258 border=0
name=alehouse_r2_c4></TD></TR>
<TR>
<TD><IMG height=11 alt=""
src="images/pub/alehouse_r3_c4.jpg"
width=258 border=0
name=alehouse_r3_c4></TD></TR></TBODY></TABLE></TD>
<TD><IMG height=133 alt=""
src="images/pub/alehouse_r2_c7.jpg"
width=68 border=0
name=alehouse_r2_c7></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=395
border=0>
<TBODY>
<TR>
<TD><IMG height=73 alt=""
src="images/pub/alehouse_r4_c1.jpg"
width=47 border=0 name=alehouse_r4_c1></TD>
<TD align=top background="images/pub/alehouse_r4_c3.jpg"
height=73 ><div style="text-align:left; width:98%;font-size:12px;">当前招贤馆等级:<?php echo $pub;?><br>
您可以在招贤馆招募武将,招募时须先将您的招贤馆升到1级。<br>
招贤馆等级越高,招出的武将能力指数越高。</div></TD>
<TD><IMG height=73 alt=""
src="images/pub/alehouse_r4_c8.jpg"
width=50 border=0
name=alehouse_r4_c8></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=11 alt=""
src="images/pub/alehouse_r5_c1.jpg"
width=395 border=0
name=alehouse_r5_c1></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=395
border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=43
border=0>
<TBODY>
<TR>
<TD><IMG height=98 alt=""
src="images/pub/alehouse_r6_c1.jpg"
width=43 border=0 name=alehouse_r6_c1></TD></TR>
<TR>
<TD><IMG height=39 alt=""
src="images/pub/alehouse_r11_c1.jpg"
width=43 border=0
name=alehouse_r11_c1></TD></TR>
<TR>
<TD><IMG height=50 alt=""
src="images/pub/alehouse_r12_c1.jpg"
width=43 border=0
name=alehouse_r12_c1></TD></TR>
<TR>
<TD><IMG height=3 alt=""
src="images/pub/alehouse_r14_c1.jpg"
width=43 border=0
name=alehouse_r14_c1></TD></TR></TBODY></TABLE></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=227
border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=227
border=0>
<TBODY>
<TR>
<TD align=middle width=203
background="images/pub/alehouse_r6_c2.jpg"
height=98 valign="middle">
<?php
if (isset ($_GET['id'])) {
echo '<img src="img/gen_header/'.$_GET['id'].'.jpg" width="90" height="90" style="border:1px solid #E8D08A;"/>';
}else echo '<IMG src="images/pub/randhero.gif" width="90" height="90" >';
?>
</TD>
<TD><IMG height=98 alt=""
src="images/pub/alehouse_r6_c5.jpg"
width=24 border=0
name=alehouse_r6_c5></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=227
border=0>
<TBODY>
<TR>
<TD class=hint_font width=203
background="images/pub/alehouse_r11_c2.jpg"
height=39><span style="font-size:12px;">
<?php
if (isset($_GET['name'])) {
echo '此次招到武将:'.$_GET['name'];
}else echo '武将随机产生,每次只可招募一个。';
?>
</span></TD>
<TD><IMG height=39 alt=""
src="images/pub/alehouse_r11_c5.jpg"
width=24 border=0
name=alehouse_r11_c5></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=53 alt=""
src="images/pub/alehouse_r12_c2.jpg"
width=227 border=0
name=alehouse_r12_c2></TD></TR></TBODY></TABLE></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=125
border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=125
border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=98
border=0>
<TBODY>
<TR >
<TD><IMG height=12 alt=""
src="images/pub/alehouse_r6_c6.jpg"
width=98 border=0 name=alehouse_r6_c6></TD></TR>
<TR>
<TD background="images/pub/alehouse_r7_c6.jpg" height="35">
</TD></TR></TBODY></TABLE></TD>
<TD><IMG height=47 alt=""
src="images/pub/alehouse_r6_c9.jpg"
width=27 border=0
name=alehouse_r6_c9></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=125
border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=98
border=0>
<TBODY>
<TR>
<TD align=middle width=98
background="images/pub/alehouse_r8_c6.jpg"
height=21><span style="font-size:12px;"><?php echo 0.6*1000*$pub;?></span></TD>
</TR>
<TR>
<TD><IMG height=14 alt=""
src="images/pub/alehouse_r9_c6.jpg"
width=98 border=0 name=alehouse_r9_c6></TD></TR>
<TR>
<TD><INPUT
style="WIDTH: 98px; CURSOR: hand; HEIGHT: 54px"
type=image alt=招募武将
src="images/pub/alehouse_r10_c6.jpg" onkeydown="return keycode()"></TD></TR>
<TR>
<TD><IMG height=6 alt=""
src="images/pub/alehouse_r12_c6.jpg"
width=98 border=0
name=alehouse_r12_c6></TD></TR></TBODY></TABLE></TD>
<TD><IMG height=96 alt=""
src="images/pub/alehouse_r8_c9.jpg"
width=27 border=0
name=alehouse_r8_c9></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=47 alt=""
src="images/pub/alehouse_r13_c6.jpg"
width=125 border=0
name=alehouse_r13_c6></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</form>
<?php
}
?>
<!--替换区域结束-->
</div>
</div>
<div id="mb_03"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -