📄 buy_lottery.php
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
include("../inc/main.js.php");
$user=$_SESSION["user"];
$menu=$pn_buylottery;
mysql_query("update online set title='$menu' where user_account='$user'",$conn);
$sqlbuys=mysql_query("select buylimit from config where sign='1'",$conn);
$buylimit=mysql_result($sqlbuys,0,"buylimit");
?><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 8px;
margin-top: 0px;
margin-right: 10px;
background-image: url(../styles/nimg_g/main.gif);
}
-->
</style>
<STYLE>
LI {
LINE-HEIGHT: 16pt
}
.style5 {color: #FF0000}
</STYLE>
</HEAD>
<script language="javascript">
function checks()
{
if(reform.money.value=="")
{
alert("<?=$pn_intolotterymoney?>!");
reform.money.focus();
return false;
}else if(parseFloat(reform.money.value)<<?=$buylimit?>)
{
alert("<?=$pn_lotterymoneylimit?><?=$buylimit?><?=$pn_rmb?>!");
reform.money.focus();
return false;
}else if(reform.paytype.value=="")
{
alert("<?=$pn_selectpaytype?>!");
reform.paytype.focus();
return false;
}else
{
reform.fsubmit.value=" <?=$pn_confirminfoing?>.. ";
reform.fsubmit.disabled=true;
return true;
}
}
function Isnum()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<body onLoad="show5();">
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" ></td>
</tr>
</table>
<?php include("../inc/linemsg.php");?>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" ></td>
</tr>
</table>
<table width="688" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1%" height="24"><img src="../styles/nimg/menu_l.gif" width="10" height="29"></td>
<td width="97%" valign="bottom" background="../styles/nimg/menu_c.gif"><table width="100%" height="19" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="13%" class="fw12"><?=$pn_buylottery?></td>
<td width="41%" nowrap></td>
<td width="44%" align="right" nowrap><div id="liveclock"> </div>
</td>
<td width="2%"> </td>
</tr>
</table></td>
<td width="2%"><img src="../styles/nimg/menu_r.gif" width="10" height="29"></td>
</tr>
</table>
<table width="685" height="290" border="0" cellpadding="0" cellspacing="1" class="t11">
<tr>
<td height="248" valign="top" class="t20"> <table width="100%" height="100%" border="0" cellpadding="5" cellspacing="0">
<form name="reform" method="post" action="payment.php" onSubmit="return checks();">
<tr>
<td height="182" valign="top"><table width="100%" height="162" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="left" bgcolor="#FFFFFF">
<td height="16" colspan="2" class="fb12"><img src="../images/Internetpay.jpg" width="173" height="72"><span id="t1"></span></td>
</tr>
<tr>
<td width="307" height="26" align="right" class="fb12"><?=$pn_buylotterymoney?>:</td>
<td width="376"><input name="money" type="text" class="input" id="money" onKeyPress="event.returnValue=Isnum();" size="10">
<?=$pn_rmb?> (<?=$pn_lotterymoneylimit?><font color="#FF0000"><?=$buylimit?></font><?=$pn_rmb?>)
<input name="custom1name" type="hidden" id="custom1name">
<input name="custom1" type="hidden" id="custom1">
<input name="custom2name" type="hidden" id="custom2name">
<input name="custom2" type="hidden" id="custom2"></td>
</tr>
<tr>
<td height="24" align="right"><?=$pn_paytype?>:</td>
<td><select name="paytype" id="paytype">
<option value="1" selected><?=$pn_netbankpay?></option>
<option value="7" ><?=$pn_czmobille?></option>
<option value="10" ><?=$pn_ponebankpay?></option>
<!--
<option value="2" >声讯电话支付</option>
<option value="3" >互联星空支付</option>
<option value="4" >手机短信注册</option>
<option value="5" >腾讯财付通支付</option>
<option value="6" >腾讯Q币支付(最高200Q币)</option>
<option value="8" >盛大游戏点卡支付(最低1元,最高100元)</option>
<option value="9" >支付宝支付</option>
<option value="11" >北京宽带支付</option>
<option value="12" >联通充值卡支付</option>
-->
</select>
<input name="pay" type="hidden" id="pay" value="yes">
<input name="user_account" type="hidden" id="user_account" value="<?=$user?>"></td></tr>
<tr align="center">
<td height="33" colspan="2"><input type="submit" name="fsubmit" value=" <?=$pn_next?> ">
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="34" align="center" valign="top" bgcolor="#FFFFFF"><span class="style5"><br>
</span></td>
</tr>
<tr>
<td height="56" align="center" valign="top" bgcolor="#FFFFFF"><p> </p>
</td>
</tr>
</form>
</table></td>
</tr>
</table>
<script>
function countDown(secs)
{
var tv;
if(--secs>0)
tv=setTimeout("countDown("+secs+")",1000);
if(secs==0)
{
parent.leftFrame.zif.location.reload();
countDown(5);
}
}
countDown(5);
</script>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -