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

📄 sixanimal.php

📁 六和投注系统
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("../inc/drop_date.inc.php");
include("check.php");
$user=$_SESSION["user"];
include_once("ref_common.php");
$plate=$_SESSION["type"];
include("other_close.php");
include("../inc/main.js.php");
function van($sign)
{ global $conn;
  $sql=mysql_query("select nums from animals where sign='$sign'",$conn);
  return mysql_result($sql,0,"nums");
}
$menu=$pn_moreanimal;
mysql_query("update online set title='$menu' where user_account='$user'",$conn);
$sql=mysql_query("select rate from num where sign='9' and user_account='$guser' order by id asc",$conn);
$i=1;
 while($row=mysql_fetch_array($sql))
   {
    $rates=0;
    $rates=$row["rate"];
    if($plate=="A") $rateq=$rates;
    if($plate=="B") $rateq=$rates-0.01;
	if($plate=="C") $rateq=$rates-0.02;
   $rate[$i]=$rateq;
   $i++;
   }
   mysql_query("update online set title='$menu' where user_account='$user'",$conn);
$sqlp=mysql_query("select rate from num where sign='13' and user_account='$guser' order by id asc",$conn);
$i=1;
 while($row=mysql_fetch_array($sqlp))
   {
    /*$rates=0;
    $rates=$row["rate"];
    if($plate=="A") $rateq=$rates;
    if($plate=="B") $rateq=$rates-0.01;
	if($plate=="C") $rateq=$rates-0.02;*/
   $prate[$i]=$row["rate"];
   $i++;
   }

?>
<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: 10px;
	margin-top: 5px;
	background-image: url(../styles/nimg_g/main.gif);
}
.input {BORDER: #7F9DB9 1px solid;
	FONT-SIZE: 9pt;
	BACKGROUND-color: #ffffff
}
.style1 {color: #FF0000}
.style2 {color: #FFFFFF}
-->
</style></head>
<script language="javascript">
function sm()
{
 if(this.form1.check.value=="")
 {
  this.form1.sm.disabled=true;
  }else
  {
  this.form1.sm.disabled=false;
  }
}

var c,b
c="#CB5300";
b="#446463";
cc="#ffff00";
bb="#f0f0f0";
function cancel()
{
 <?php for($i=1;$i<13;$i++)
 {
 ?>
  m<?=$i?>.style.background=bb;
  <? }?>
  p3.innerText=this.form1.n3.value;
  p4.innerText=this.form1.n4.value;
  p5.innerText=this.form1.n5.value;
  p6.innerText=this.form1.n6.value;
}
function sel(arr)
{
 if(arr==1) 
 { 
 this.form1.cb02.checked=true;
 this.form1.cb07.checked=true;
 this.form1.cb08.checked=true;
 this.form1.cb10.checked=true;
 this.form1.cb11.checked=true;
 this.form1.cb12.checked=true;
 this.form1.cb01.checked=false;
 this.form1.cb03.checked=false;
 this.form1.cb04.checked=false;
 this.form1.cb05.checked=false;
 this.form1.cb06.checked=false;
 this.form1.cb09.checked=false;
 this.form1.check.value="02,07,08,10,11,12,";
/* m2.style.background=c;
 m7.style.background=c;
 m8.style.background=c;
 m10.style.background=c;
 m11.style.background=c;
 m12.style.background=c;
 m1.style.background=b;
 m3.style.background=b;
 m4.style.background=b;
 m5.style.background=b;
 m6.style.background=b;
 m9.style.background=b;*/
 sm();
 }else
 {
 this.form1.cb01.checked=true;
 this.form1.cb03.checked=true;
 this.form1.cb04.checked=true;
 this.form1.cb05.checked=true;
 this.form1.cb06.checked=true;
 this.form1.cb09.checked=true;
 this.form1.cb02.checked=false;
 this.form1.cb07.checked=false;
 this.form1.cb08.checked=false;
 this.form1.cb10.checked=false;
 this.form1.cb11.checked=false;
 this.form1.cb12.checked=false;
 this.form1.check.value="01,03,04,05,06,09,";
 /*m2.style.background=b;
 m7.style.background=b;
 m8.style.background=b;
 m10.style.background=b;
 m11.style.background=b;
 m12.style.background=b;
 m1.style.background=c;
 m3.style.background=c;
 m4.style.background=c;
 m5.style.background=c;
 m6.style.background=c;
 m9.style.background=c;*/
 sm();
 }
}   
function counts(arr,menu,pmenu)
{
var num=arr.value;
var nums=num+",";
 if(arr.checked)
 { 
   var counts=this.form1.check.value;
   var amongs=this.form1.amongs.value; 
   var ch=counts.split(",");
   if(ch.length>amongs) 
   { var msg=amongs+"<?=$pn_animalmsgselect?>"+amongs+"<?=$pn_animalkey?>!";
    alert(msg);
     arr.checked=false;
   }else{
     this.form1.pcount.value=parseFloat(this.form1.pcount.value)+parseFloat(pmenu.value);
     if(this.form1.check.value.indexOf(num)<0)
     this.form1.check.value+=nums;
	  menu.style.background=cc;
	  sm();
	  padd();
	}
 }else
 { this.form1.pcount.value=roundFun(parseFloat(this.form1.pcount.value)-parseFloat(pmenu.value),2);
   this.form1.check.value=(this.form1.check.value).replace(nums,"");
    menu.style.background=bb;
	sm();
	padd();
 }
 
}
function rd(arr)
{  
 if(arr==1)
 {
/* rd1.style.background=c;
 rd2.style.background=b;
 rd3.style.background=b;
 rd4.style.background=b;*/
 this.form1.psel.value=3;
 //this.form1.rate.value="<?=$rate[1]?>";
 this.form1.amongs.value="3";
    p3.innerText=roundFun(parseFloat(this.form1.n3.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p3.innerText;
 }
 if(arr==2){
 /*rd1.style.background=b;
 rd2.style.background=c;
 rd3.style.background=b;
 rd4.style.background=b;*/
 this.form1.psel.value=4;
 //this.form1.rate.value="<?=$rate[2]?>";
 this.form1.amongs.value="4";
    p4.innerText=roundFun(parseFloat(this.form1.n4.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p4.innerText;
 }
 if(arr==3){
 this.form1.psel.value=5;
 /*rd1.style.background=b;
 rd2.style.background=b;
 rd3.style.background=c;
 rd4.style.background=b;*/
 //this.form1.rate.value="<?=$rate[3]?>";
 this.form1.amongs.value="5";
    p5.innerText=roundFun(parseFloat(this.form1.n5.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p5.innerText;
 }
 if(arr==4){
 this.form1.psel.value=6;
/* rd1.style.background=b;
 rd2.style.background=b;
 rd3.style.background=b;
 rd4.style.background=c;*/
 //this.form1.rate.value="<?=$rate[4]?>";
 this.form1.amongs.value="6";
    p6.innerText=roundFun(parseFloat(this.form1.n6.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p6.innerText;
 }
}
function padd()
{
 if(this.form1.psel.value==3)
 {  p3.innerText=roundFun(parseFloat(this.form1.n3.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p3.innerText;
 }
 if(this.form1.psel.value==4)
 {  p4.innerText=roundFun(parseFloat(this.form1.n4.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p4.innerText;
 }
 if(this.form1.psel.value==5)
 {  p5.innerText=roundFun(parseFloat(this.form1.n5.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p5.innerText;
 }
 if(this.form1.psel.value==6)
 {  p6.innerText=roundFun(parseFloat(this.form1.n6.value)-parseFloat(this.form1.pcount.value),2);
    this.form1.rate.value=p6.innerText;
 }

}
function checkes(form)
{
   var countsa=this.form.check.value;
   var amongsa=this.form.amongs.value; 
   var cha=countsa.split(",");
   if(cha.length>amongsa) 
   { var msga=amongsa+"<?=$pn_animalmsgselect?>"+amongsa+"<?=$pn_animalkey?>!";
    alert(msga);
    return false;
   }
}
function roundFun(numberRound,roundDigit) //四舍五入,保留位数为roundDigit ,供计算时用
     {
         if (numberRound>=0)

⌨️ 快捷键说明

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