quickinput2.asp

来自「买来的六合彩在线投注系统可能没有精力管理这些程序了PHP+mysql」· ASP 代码 · 共 680 行 · 第 1/2 页

ASP
680
字号
<!--#include file="manage/mConn.asp"-->
<!--#include file="manage/mConst.asp"-->
<!--#include file="manage/sk2.asp"-->
<%
  If Session("SK2User")="" Then
    Response.Write ("<script Language=Javascript>alert('Please input username/password and try again!!!');window.open('index.asp','_top');</script>")
    Response.End
  End If

  If Not Isnumeric(Request("rate_id")) Then
    Response.Write ("<script Language=Javascript>alert('Please input username/password and try again!!!');window.open('index.asp','_top');</script>")
    Response.End
  End If

 Dim rate_id
   rate_id=cLng(Request("rate_id"))

 Get_Kithe_Para:Get_UserInfo
if Kithe_Open=0 then
response.Redirect "order_error.asp"
end if
%>
<HTML><HEAD><TITLE>quick input</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/fastinput.css" type=text/css rel=stylesheet>


<SCRIPT language=Javascript>
<!--
var count_win=false;
window.setTimeout("self.location='userleft.asp'", 180000);

function CheckKey(){
	if(event.keyCode == 13) return true;
	if((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode > 95 || event.keyCode < 106)){alert("下注金额仅能输入数字!!"); return false;}
}

function SubChk(){
	if(document.all.gold.value==''){
		document.all.gold.focus();
		alert("请输入下注金额!!");
		return false;
	}
	if(isNaN(document.all.gold.value) == true){
		document.all.gold.focus();
		alert("下注金额仅能输入数字!!");
		return false;
	}
	if(eval(document.all.gold.value) < 1){
		document.all.gold.focus();
		alert("下注金额不可小於最低下注金额!!");
		return false;
	}
	if(eval(document.all.gold.value) > <%=UserQuota(3,0)%>){
		document.all.gold.focus();
		alert("对不起,本期有下注金额最高限制 : <%=UserQuota(3,0)%>  !!");
		return false;
	}
	if(eval(document.all.gold.value) > <%=UserQuota(2,0)%>){
		document.all.gold.focus();
		alert("下注金额不可大於单注限额!!");
		return false;
	}

	if(eval(document.all.gold.value) > <%=UserInfo(5,0)%>){
		document.all.gold.focus();
		alert("下注金额不可大於信用额度!!");
		return false;
	} 

	if(eval(document.all.gold.value) > 4299331){
		document.all.gold.focus();
		alert("下注金额不可大於总代理信用额度!!");
		return false;
	}

}

function ChkSumbit(){
	document.all.btnCancel.disabled = true;
	document.all.btnSubmit.disabled = true;
	

	if (BallsSUM()==false) {
		document.all.btnCancel.disabled = false;
		document.all.btnSubmit.disabled = false;
		return;
	}
	
	if (quickForm.wagerstext.value!='') {
		document.quickForm.submit();
	}else{
		document.all.btnCancel.disabled = false;
		document.all.btnSubmit.disabled = false;
		return false;
	}


}
function BallsSUM() {

	var wagers = '';
	var wlist = '';
	var total=0;                

	if (wagers_list.length==0)	{
		alert("请先下注!!");
		return false;
	}
		
        if (!confirm("是否确定下注"))
          return false;  

	for(i=0; i<wagers_list.length; i++)	{
		wagers += wagers_list.options[i].value+"-";
		wlist = wagers_list.options[i].value.split("+");
		total += eval(wlist[1]);
		
		
		
		
		
	}
	/*
	if((+total) > 500){
		document.all.gold.focus();
		alert("本期累计下注共: \n下注金额已超过单期限额!!");
		return false;
	}
 */
	if (total > 50000) {
		alert("下注金额不可大於信用额度!!");
		return false;
	}
	
	if (total > 4299331) {
		alert("下注金额不可大於总代理信用额度!!");
		return false;
	}
              
	
	quickForm.wagerstext.value = "SP@"+wagers;
}

var ball_color = Array(0,0,1,1,2,2,0,0,1,1,2,0,0,1,1,2,2,0,0,1,2,2,0,0,1,1,2,2,0,0,1,2,2,0,0,1,1,2,2,0,1,1,2,2,0,0,1,1,2);
var bcolor = Array('red','blue','green');
var null_col='#ffffff';
var over_col='#ffffaa';
var click_col='#ffff00';

function showTable()
{
	show_table = document.getElementById('showTable');
	if (typeof(parent.body.sOdds)!='undefined' || parent.body.wtype =='SP'){
		var odds = parent.body.sOdds;
	}

	with(show_table)
	{
		while(rows.length > 1)
			deleteRow(rows.length-1);
			
		for(i=1; i<=10; i++)
		{
			newTR = insertRow();
			newTR.className = 'list_cen';
			with(newTR)
			{
				for (j=0; j<=4; j++)
				{
					var nums = 10*j+i;
					num_str = '';
					
					if (nums < 10) {
						num_str = '0'+nums.toString();
					}else{
						num_str = nums.toString();
					}
					
					newTD = insertCell();
					newTD.className = 'ball_td';
					if (nums==50) {
						newTD.innerHTML = "&nbsp;";
					}else{
						newTD.id = 'Ball'+num_str;
						if (odds[nums-1]=='') {
							newTD.innerHTML = "";
						}else{
							newTD.innerHTML = "<span style='cursor: hand;' onmouseover=\"light_bar(Ball"+num_str+",'ovr')\" onmouseout=\"light_bar(Ball"+num_str+",'out')\" onmousedown=\"light_bar(Ball"+num_str+",'clk')\"><font size=2 color='"+bcolor[ball_color[nums-1]]+"'>"+num_str+"</font></span>";
						}
					}
				}
			}
		}
	}	
}

function light_bar(st,act){
  switch(act){
   case 'ovr':
     if( st.style.backgroundColor==null_col || st.style.backgroundColor=='' )  st.style.backgroundColor=over_col;
     break;
   
   case 'out':
     if( st.style.backgroundColor==over_col )  st.style.backgroundColor=null_col;
     break;
    
   case 'clk':
     if( st.style.backgroundColor!=click_col ) st.style.backgroundColor=click_col;
     else st.style.backgroundColor=over_col;
     break;
  }
}


function sel_col_ball(color)
{
	var c;
	switch(color) {
		case 'blue':
			c = 1;
			break;
		case 'red':
			c = 0;
			break;
		case 'green':
			c = 2;
			break;
		case 'cancel':
			c = 4;
			break;
		case 'all':
			c = 5;
			break;
		default:
			return;
			break;
	}
	
	for(i=0; i<49 ;i++)
	{
		num_str = '';
		num_str = num_format(i+1);
			
		if (c==4)
		{
			 if (eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+null_col+"'");
			continue;
		}
		
	
		if ((ball_color[i] == c && c != 4) || c==5)
		{
			if (eval("Ball"+num_str+".style.backgroundColor != '"+click_col+"'")){
				if (eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+click_col+"'");
			}else{
				if (eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+null_col+"'");
			}
		}
	}
}

function sel_oe_ball(oe)
{
	var e = '';
	switch(oe) {
		case 'odd':
			e = 1; 
			break;
		case 'even':
			e = 0;
			break;
		default:
			return;
	}
	
	for(i=0; i<49 ;i++)
	{
		if ((i+1) % 2 == e)
		{
			num_str = '';
			num_str = num_format(i+1);
			
			if (eval("Ball"+num_str+".style.backgroundColor != '"+click_col+"'")) {
				if(eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+click_col+"'");
			}else{
				if(eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+null_col+"'");
			}
		}
	}
}

function sel_sum_ball(oe)
{
	var e = '';
	var l_num = 0;
	var r_num = 0;
	var k = l_num + r_num;
	switch(oe) {
		case 'odd':
			e = 1; 
			break;
		case 'even':
			e = 0;
			break;
		default:
			return;
	}
	
	for(i=0; i<49 ;i++)
	{
	    num_str = '';
	    num_str = num_format(i+1);
	    l_num = eval(num_str.substr(0,1));
	    r_num = eval(num_str.substr(1,1));
	    k = l_num + r_num;
	    //alert (l_num + '+' + r_num +'=' + k);
	    if (k % 2 == e)
		{
			num_str = '';
			num_str = num_format(i+1);
			
			
			if (eval("Ball"+num_str+".style.backgroundColor != '"+click_col+"'")) {
				if(eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+click_col+"'");
			}else{
				if(eval("Ball"+num_str+".innerHTML != ''")) eval("Ball"+num_str+".style.backgroundColor='"+null_col+"'");
			}
		}
	}
}
////开始.....

function sel_sx(oe)
{
	var e = '';
	switch(oe) {
		case '1':
			e = 1; 
			break;

⌨️ 快捷键说明

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