fb_bqc_bet.php

来自「是一款很好的六合源码程序支持PHP不同于那些六合彩票有总后台代理会员前台的真正的」· PHP 代码 · 共 253 行

PHP
253
字号
<?echo "<SCRIPT>if(self == top) top.location='../../../';</SCRIPT>";
require ("config.inc.php");
require ("../datetime.php");
$u_name=$_GET['user_name'];
$u_sql = "select * from users where u_name='$u_name'";
$u_result = mysql_db_query($dbname, $u_sql);
$u_row = mysql_fetch_array($u_result);

//////////////////////////////////////
$game_name_check="fb_bqc";
require ("function.php");
///////////////////////////////////

$bqc_code=$_GET['c'];	//比赛编号
$bqc_sql = "select * from bqc where bq_code='$bqc_code'";
$bqc_result = mysql_db_query($dbname, $bqc_sql);
$bqc_row = mysql_fetch_array($bqc_result);
if(!$bqc_row)
{
?>
<script language=JavaScript>
alert("暂时不能下注!");
self.location='userinfo.php?user_name=<?=$u_name?>';
</script>
<?
exit;
}

$bqc_bet=$_GET['b'];	//
$o_pl=$_GET['o_pl'];
if($bqc_bet==1):
	$betteam="[主/主]";
	$betmoney=$bqc_row['bq_a0']+$bqc_row['bq_c0'];
	$o_pl2="0";
endif;
if($bqc_bet==2):
	$betteam="[主/和]";
	$betmoney=$bqc_row['bq_a1']+$bqc_row['bq_c1'];
	$o_pl2="1";
endif;
if($bqc_bet==3):
	$betteam="[主/客]";
	$betmoney=$bqc_row['bq_a2']+$bqc_row['bq_c2'];
	$o_pl2="2";
endif;
if($bqc_bet==4):
	$betteam="[和/主]";
	$betmoney=$bqc_row['bq_a3']+$bqc_row['bq_c3'];
	$o_pl2="3";
endif;
if($bqc_bet==5):
	$betteam="[和/和]";
	$betmoney=$bqc_row['bq_a4']+$bqc_row['bq_c4'];
	$o_pl2="4";
endif;
if($bqc_bet==6):
	$betteam="[和/客]";
	$betmoney=$bqc_row['bq_a5']+$bqc_row['bq_c5'];
	$o_pl2="5";
endif;
if($bqc_bet==7):
	$betteam="[客/主]";
	$betmoney=$bqc_row['bq_a6']+$bqc_row['bq_c6'];
	$o_pl2="6";
endif;
if($bqc_bet==8):
	$betteam="[客/和]";
	$betmoney=$bqc_row['bq_a7']+$bqc_row['bq_c7'];
	$o_pl2="7";
endif;
if($bqc_bet==9):
	$betteam="[客/客]";
	$betmoney=$bqc_row['bq_a8']+$bqc_row['bq_c8'];
	$o_pl2="8";
endif;

if($o_pl!=$betmoney)
{
?>
	<script language=JavaScript>
	alert("赔率已经改变请重新下注!<?=$betmoney?>");
	self.location='userinfo.php?user_name=<?=$u_name?>';
	</script>
<?
}
$o_pl=$o_pl2;
$csum = mysql_query("select sum(dsb_money) as csum from dsbet where dsb_code='$bqc_code' and dsb_users='$u_name'  and dsb_team='$bqc_bet' and dsb_lx=10");
$srow = mysql_fetch_row($csum);
$sum=$srow[0]+0;
?>
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="../../../pic/mem_order.css" rel="stylesheet" type="text/css">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<script language=JavaScript>
window.setTimeout("Win_Redirect()", 45000);
function Win_Redirect()
{
self.location='userinfo.php?user_name=<?=$u_name?>';
}
function back()
{
location.replace(this.href);
event.returnValue=false;
self.location='userinfo.php?user_name=<?=$u_name?>';
}
function document.onkeydown()
{
 if(event.keyCode==13)
 {
 event.returnValue=false;
 }
}
function bet()
{
	var tmpValue;
	tmpValue="";
	tmpValue=betmoney.money.value*"<?=$betmoney;?>";
	if (!isNaN(tmpValue))
	{
		pc.innerHTML=tmpValue;
	}
	else
	{
		alert("你輸入的不是數字,請重新輸入!! ");
	}
}

function check()
{
 	var tmp;
	 tmp="";
	 tmp=betmoney.money.value;
	 if(tmp=="")
	 {
		 alert("你沒輸入金額!!!");
		 betmoney.money.value="";
		 return false;
	 }
	 if(tmp><?=$u_row['u_money'];?>)
 	{
		 alert("你的金額不足,無法完成下注!!! ");
		 betmoney.money.value="";
		 return false;
	 }
	 if(tmp<<?=$u_row['mix_fb_bqc'];?>)
	 {
		 alert("少于最低限額,請重新下注!");
		 betmoney.money.value="";
		 return false;
 	}
	 if(tmp><?=$u_row['z_fb_bqc'];?>)
	 {
		 alert("大于最高限額,請重新下注!");
		 betmoney.money.value="";
		 return false;
	 }
	 if(tmp><?=($u_row['c_fb_bqc']-$sum);?>)
	 {
		alert("已經超過單場限注,無法完成下注!");
		 betmoney.money.value="";
		 return false;
	 }
	 if(!confirm("是否確定下注!!!"))
	 {
		 betmoney.money.value="";
		 return false;
	 }
 	location.replace(this.href);
	 event.returnValue=false;
	 document.all.btnCancel.disabled = true;
	 document.all.Submit.disabled = true;
	 document.forms[0].submit();
}
</script>
<style type="text/css">
<!--
.style1 {color: #FFFF00}
-->
</style>
</HEAD>
<BODY leftMargin=0 topMargin=0 ondragstart="window.event.returnValue=false" oncontextmenu="window.event.returnValue=false" onselectstart="event.returnValue=false">
<TABLE cellSpacing=0 cellPadding=0 width=220 border=0 class=o_tab>
	<TBODY>
		<TR> <TD class=o_title>足球半全场下注单</TD></TR>
		<TR><TD class=o_title_down></TD></TR>
	</TBODY>
	<TBODY>
		<TR><TD>帐户名称: <?=$u_row['u_name'];?></TD></TR>
		<TR><TD>信用额度: <?=$u_row['u_money'];?></TD></TR>
		<TR><TD>使用币别:人民币(RMB)</TD></TR>
		<form method="post" action="fb_bqc_bet_save.php" name=betmoney>
		<TR>
			<TD class=o_team><div align="left"></div><div align="left"></div>
				<table width="200" border="0" align="left" class="o-tab-b">
					<tr><th bgcolor="#000000"><div align="center"><span class="style1">本场单注最高限额2500</span></div></th></tr>
					<tr><td class="o_team"><?=$bqc_row['bq_lx'];?><?=substr($bqc_row['bq_now'],0,5);?></td></tr>
					<tr><td class="o_team"><?=$bqc_row['bq_sp'];?><font color="#cc0000">VS.</font><?=$bqc_row['bq_xp'];?><font color=#cc0000>&nbsp; </font></td></tr>
					<tr>
						<td><div align="center"><font color=#cc0000>
						<?
						if($bqc_row['bq_cif']==1)
						{
							echo "<font color=red style='background-color=#000000'>赔率已经改变,请重新下注!</font><br>";
						}
						?>
						<?=$betteam;?>
						</font> @ <font color=#cc0000><b>
						<?=$betmoney;?>
						</b></font> </div>
						</td>
					</tr>
				</table>
			</TD>
		</TR>
		<TR><TD class=o_error height=1></TD></TR>
		<tr><td>下注金额:<input class=za_text name=money type=text onkeyup="return bet();" size=8 maxlength="10"></td></tr>
		<tr><td>可赢金额:<FONT id=pc color=#cc0000>0</FONT></td></tr>
       <tr><td>最低限额:<?=$u_row['mix_fb_ds_rq'];?></td></tr>
       <tr><td>单注最高:<?=$u_row['z_fb_ds_rq'];?></td></tr>
       <tr><td>单场最高:<?=$u_row['c_fb_ds_rq'];?></td></tr>
	   <tr><td>下注时间:<INPUT size=2 type=text name=dsb_mm value="<?=$mm;?>">-<INPUT size=2  type=text name=dsb_dd value="<?=$dd;?>">-<INPUT size=10 type=text name=dsb_time value="<?=date("H:i:s");?>"></td></tr>	   
		<tr><td class=o_foot><INPUT onclick="Javascript:back()" type=button value="取消下注" name=btnCancel><INPUT onclick="Javascript:check()" type=button value="确定下注" name=Submit></td></tr>
		<TR>
			<TD>
				<INPUT type=hidden name=u_adder value="<?=$u_row['u_adder'];?>">
				<INPUT name=u_adder1 type=hidden id="bqc_adder1" value="<?=$u_row['u_adder1'];?>">
				<INPUT name=u_adder2 type=hidden id="bqc_adder2" value="<?=$u_row['u_adder2'];?>">
				<INPUT name=u_lx type=hidden id="u_lx" value="<?=$u_row['u_lx'];?>">
				<INPUT type=hidden name=bqc_code value="<?=$bqc_row['bq_code'];?>">
				<INPUT type=hidden name=bqc_team value="<?=$bqc_bet;?>">
				<INPUT type=hidden name=bqc_pkpl value="<?=$betmoney;?>">
				<INPUT type=hidden name=o_pl value="<?=$o_pl;?>">
				<INPUT type=hidden name=bqc_bet value="<?=$betteam;?>">
				<INPUT type=hidden name=bqc_note value="<?=$bqc_row['bq_sp'];?>&nbsp;<font color=#cc0000>VS.</font>&nbsp;<?=$bqc_row['bq_xp'];?>">
				<INPUT name=u_name type=hidden id="u_name" value="<?=$u_name;?>">
				</form>
			</TD>
		</TR>
	</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=220 border=0>
  <TBODY>
  <TR>
    <TD><IMG height=14 src="../../../pic/order_foot.gif" width=220></TD></TR></TBODY></TABLE>
 <SCRIPT language=JavaScript>document.all.money.focus();</SCRIPT>
</BODY>
</HTML>
 <?
 mysql_close();
 ?>

⌨️ 快捷键说明

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