<!--#include file="inc.asp"-->
<!--#include file="conn.asp"-->
<%
call saycardd("投注设置")
dim votename,HaContent,bigpay,smallpay,fortime,tmcent,sxcent,bscent,dscent,dxcent,wxcent,tc2,tc3,tc4,tc5,tc6,sc2,sc3,sc4,sc5,sc6
votename=request("votename")
HaContent=request("HaContent")
bigpay=request("bigpay")
smallpay=request("smallpay")
fortime=request("fortime")
tmcent=request("tmcent")
sxcent=request("sxcent")
bscent=request("bscent")
dscent=request("dscent")
dxcent=request("dxcent")
wxcent=request("wxcent")

tc2=request("tc2")
tc3=request("tc3")
tc4=request("tc4")
tc5=request("tc5")
tc6=request("tc6")
sc2=request("sc2")
sc3=request("sc3")
sc4=request("sc4")
sc5=request("sc5")
sc6=request("sc6")
ptcent=request("ptcent")
dpcent=request("dpcent")
dwcent=request("dwcent")
ezecent=request("ezecent")
szscent=request("szscent")
szecent=request("szecent")
TP=request("TP")
if TP<>"" then

if votename="" then
  Call Error("系统名称不能为空！")
  end if
if len(votename)>30 then
  Call Error("系统名称最多30字！")
  end if

if HaContent="" then
  Call Error("欢迎语不能为空！")
  end if
if len(HaContent)>15 then
  Call Error("欢迎语最多15字！")
  end if
  
if bigpay="" or IsNumeric(bigpay)=False then
  Call Error("最大投注额应该是数字形式！")
  end if
if smallpay="" or IsNumeric(smallpay)=False then
  Call Error("最小投注额应该是数字形式！")
  end if
if fortime="" or IsNumeric(fortime)=False then
  Call Error("下注限定时间应该是数字形式，分钟为单位！")
  end if
if tmcent="" or sxcent="" or bscent=""  or dscent="" or dxcent="" or wxcent="" or tc2="" or tc3="" or tc4="" or tc5="" or tc6="" or sc2="" or sc3="" or sc4="" or sc5="" or sc6="" or ptcent="" or dpcent="" or dwcent="" or ezecent="" or szscent="" or szecent="" then
  Call Error("请检查赔率是否正确！")
  end if
  
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from YD_all where id=1",ydzqconn,1,2
rs("votename")=votename
rs("HaContent")=HaContent
rs("bigpay")=bigpay
rs("smallpay")=smallpay
rs("fortime")=fortime
rs.update
rs.close
set rs=nothing
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from YD_payCent where id=1",ydzqconn,1,2
rs("tmcent")=tmcent
rs("sxcent")=sxcent
rs("bscent")=bscent
rs("dscent")=dscent
rs("dxcent")=dxcent
rs("wxcent")=wxcent
rs("tc2")=tc2
rs("tc3")=tc3
rs("tc4")=tc4
rs("tc5")=tc5
rs("tc6")=tc6
rs("sc2")=sc2
rs("sc3")=sc3
rs("sc4")=sc4
rs("sc5")=sc5
rs("sc6")=sc6
rs("ptcent")=ptcent
rs("dpcent")=dpcent
rs("dwcent")=dwcent
rs("ezecent")=ezecent
rs("szscent")=szscent
rs("szecent")=szecent
rs.update
rs.close
set rs=nothing
response.write"编辑成功！<br/>"
else
if saytk>1 then
call xlanlj("Configvote.asp?saytk="&saytk&"&amp;sid="&sid&"")
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from yd_all where id=1",ydzqconn,1,1
 Response.Write "系统名称:"
 Response.Write "<input name=""votename"" value="""&rs("votename")&"""/><br/>"
 Response.Write "欢迎语:"
 Response.Write "<input name=""HaContent"" value="""&rs("HaContent")&"""/><br/>"
 Response.Write "最大投注额"
 Response.Write "<input name=""bigpay"" value="""&rs("bigpay")&"""/><br/>"
 Response.Write "最小投注额"
 Response.Write "<input name=""smallpay"" value="""&rs("smallpay")&"""/><br/>"
  Response.Write "开奖前"
 Response.Write "<input name=""fortime"" value="""&rs("fortime")&""" size=""5""/>分钟停止下注<br/>"
rs.close
set rs=nothing
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from YD_payCent where id=1",ydzqconn,1,1
 Response.Write "【买特码类】<br/>"
 Response.Write "特码赔率:"
 Response.Write "<input name=""tmcent"" value="""&rs("tmcent")&""" size=""5""/>倍<br/>"
 Response.Write "生肖赔率:"
 Response.Write "<input name=""sxcent"" value="""&rs("sxcent")&""" size=""5""/>倍<br/>"
 Response.Write "波色赔率:"
 Response.Write "<input name=""bscent"" value="""&rs("bscent")&""" size=""5""/>倍<br/>"
 Response.Write "单双赔率:"
 Response.Write "<input name=""dscent"" value="""&rs("dscent")&""" size=""5""/>倍<br/>"
 Response.Write "大小赔率:"
 Response.Write "<input name=""dxcent"" value="""&rs("dxcent")&""" size=""5""/>倍<br/>"
 Response.Write "五行赔率:"
 Response.Write "<input name=""wxcent"" value="""&rs("wxcent")&""" size=""5""/>倍<br/>"
 Response.Write "二码中特:"
 Response.Write "<input name=""tc2"" value="""&rs("tc2")&""" size=""5""/>倍<br/>"
 Response.Write "三码中特:"
 Response.Write "<input name=""tc3"" value="""&rs("tc3")&""" size=""5""/>倍<br/>"
 Response.Write "四码中特:"
 Response.Write "<input name=""tc4"" value="""&rs("tc4")&""" size=""5""/>倍<br/>"
 Response.Write "五码中特:"
 Response.Write "<input name=""tc5"" value="""&rs("tc5")&""" size=""5""/>倍<br/>"
 Response.Write "六码中特:"
 Response.Write "<input name=""tc6"" value="""&rs("tc6")&""" size=""5""/>倍<br/>"
 Response.Write "二肖中特:"
 Response.Write "<input name=""sc2"" value="""&rs("sc2")&""" size=""5""/>倍<br/>"
 Response.Write "三肖中特:"
 Response.Write "<input name=""sc3"" value="""&rs("sc3")&""" size=""5""/>倍<br/>"
 Response.Write "四肖中特:"
 Response.Write "<input name=""sc4"" value="""&rs("sc4")&""" size=""5""/>倍<br/>"
 Response.Write "五肖中特:"
 Response.Write "<input name=""sc5"" value="""&rs("sc5")&""" size=""5""/>倍<br/>"
 Response.Write "六肖中特:"
 Response.Write "<input name=""sc6"" value="""&rs("sc6")&""" size=""5""/>倍<br/>"
 Response.Write "【买平码类】<br/>"
 Response.Write "平码特肖:"
 Response.Write "<input name=""ptcent"" value="""&rs("ptcent")&""" size=""5""/>倍<br/>"
 Response.Write "平码独平:"
 Response.Write "<input name=""dpcent"" value="""&rs("dpcent")&""" size=""5""/>倍<br/>"
 Response.Write "平码独尾:"
 Response.Write "<input name=""dwcent"" value="""&rs("dwcent")&""" size=""5""/>倍<br/>"
 Response.Write "二中二:"
 Response.Write "<input name=""ezecent"" value="""&rs("ezecent")&""" size=""5""/>倍<br/>"
 Response.Write "三中三:"
 Response.Write "<input name=""szscent"" value="""&rs("szscent")&""" size=""5""/>倍<br/>"
 Response.Write "三中二:"
 Response.Write "<input name=""szecent"" value="""&rs("szecent")&""" size=""5""/>倍<br/>"
rs.close
set rs=nothing
conn.close
set conn=nothing
ydzqconn.close
set ydzqconn=nothing
call xltjlj("tp","ok")
call xlanlj1("提交设置")
else
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from yd_all where id=1",ydzqconn,1,1
 Response.Write "系统名称:"
 Response.Write "<input name=""votename"&tt&""" value="""&rs("votename")&"""/><br/>"
 Response.Write "欢迎语:"
 Response.Write "<input name=""HaContent"&tt&""" value="""&rs("HaContent")&"""/><br/>"
 Response.Write "最大投注额"
 Response.Write "<input name=""bigpay"&tt&""" value="""&rs("bigpay")&"""/><br/>"
 Response.Write "最小投注额"
 Response.Write "<input name=""smallpay"&tt&""" value="""&rs("smallpay")&"""/><br/>"
  Response.Write "开奖前"
 Response.Write "<input name=""fortime"&tt&""" value="""&rs("fortime")&""" size=""5""/>分钟停止下注<br/>"
rs.close
set rs=nothing
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from YD_payCent where id=1",ydzqconn,1,1
 Response.Write "【买特码类】<br/>"
 Response.Write "特码赔率:"
 Response.Write "<input name=""tmcent"&tt&""" value="""&rs("tmcent")&""" size=""5""/>倍<br/>"
 Response.Write "生肖赔率:"
 Response.Write "<input name=""sxcent"&tt&""" value="""&rs("sxcent")&""" size=""5""/>倍<br/>"
 Response.Write "波色赔率:"
 Response.Write "<input name=""bscent"&tt&""" value="""&rs("bscent")&""" size=""5""/>倍<br/>"
 Response.Write "单双赔率:"
 Response.Write "<input name=""dscent"&tt&""" value="""&rs("dscent")&""" size=""5""/>倍<br/>"
 Response.Write "大小赔率:"
 Response.Write "<input name=""dxcent"&tt&""" value="""&rs("dxcent")&""" size=""5""/>倍<br/>"
 Response.Write "五行赔率:"
 Response.Write "<input name=""wxcent"&tt&""" value="""&rs("wxcent")&""" size=""5""/>倍<br/>"
 Response.Write "二码中特:"
 Response.Write "<input name=""tc2"&tt&""" value="""&rs("tc2")&""" size=""5""/>倍<br/>"
 Response.Write "三码中特:"
 Response.Write "<input name=""tc3"&tt&""" value="""&rs("tc3")&""" size=""5""/>倍<br/>"
 Response.Write "四码中特:"
 Response.Write "<input name=""tc4"&tt&""" value="""&rs("tc4")&""" size=""5""/>倍<br/>"
 Response.Write "五码中特:"
 Response.Write "<input name=""tc5"&tt&""" value="""&rs("tc5")&""" size=""5""/>倍<br/>"
 Response.Write "六码中特:"
 Response.Write "<input name=""tc6"&tt&""" value="""&rs("tc6")&""" size=""5""/>倍<br/>"
 Response.Write "二肖中特:"
 Response.Write "<input name=""sc2"&tt&""" value="""&rs("sc2")&""" size=""5""/>倍<br/>"
 Response.Write "三肖中特:"
 Response.Write "<input name=""sc3"&tt&""" value="""&rs("sc3")&""" size=""5""/>倍<br/>"
 Response.Write "四肖中特:"
 Response.Write "<input name=""sc4"&tt&""" value="""&rs("sc4")&""" size=""5""/>倍<br/>"
 Response.Write "五肖中特:"
 Response.Write "<input name=""sc5"&tt&""" value="""&rs("sc5")&""" size=""5""/>倍<br/>"
 Response.Write "六肖中特:"
 Response.Write "<input name=""sc6"&tt&""" value="""&rs("sc6")&""" size=""5""/>倍<br/>"
 Response.Write "【买平码类】<br/>"
 Response.Write "平码特肖:"
 Response.Write "<input name=""ptcent"&tt&""" value="""&rs("ptcent")&""" size=""5""/>倍<br/>"
 Response.Write "平码独平:"
 Response.Write "<input name=""dpcent"&tt&""" value="""&rs("dpcent")&""" size=""5""/>倍<br/>"
 Response.Write "平码独尾:"
 Response.Write "<input name=""dwcent"&tt&""" value="""&rs("dwcent")&""" size=""5""/>倍<br/>"
 Response.Write "二中二:"
 Response.Write "<input name=""ezecent"&tt&""" value="""&rs("ezecent")&""" size=""5""/>倍<br/>"
 Response.Write "三中三:"
 Response.Write "<input name=""szscent"&tt&""" value="""&rs("szscent")&""" size=""5""/>倍<br/>"
 Response.Write "三中二:"
 Response.Write "<input name=""szecent"&tt&""" value="""&rs("szecent")&""" size=""5""/>倍<br/>"
rs.close
set rs=nothing
conn.close
set conn=nothing
ydzqconn.close
set ydzqconn=nothing
Response.Write "<anchor>[提交设置]"
Response.Write "<go href=""Configvote.asp?saytk="&saytk&"&amp;sid="&sid&""" method=""post"" accept-charset='utf-8'>"
Response.Write "<postfield name=""votename"" value=""$(votename"&tt&")""/>"
Response.Write "<postfield name=""HaContent"" value=""$(HaContent"&tt&")""/>"
Response.Write "<postfield name=""smallpay"" value=""$(smallpay"&tt&")""/>"
Response.Write "<postfield name=""bigpay"" value=""$(bigpay"&tt&")""/>"
Response.Write "<postfield name=""fortime"" value=""$(fortime"&tt&")""/>"
Response.Write "<postfield name=""tmcent"" value=""$(tmcent"&tt&")""/>"
Response.Write "<postfield name=""sxcent"" value=""$(sxcent"&tt&")""/>"
Response.Write "<postfield name=""bscent"" value=""$(bscent"&tt&")""/>"
Response.Write "<postfield name=""dscent"" value=""$(dscent"&tt&")""/>"
Response.Write "<postfield name=""dxcent"" value=""$(dxcent"&tt&")""/>"
Response.Write "<postfield name=""wxcent"" value=""$(wxcent"&tt&")""/>"
Response.Write "<postfield name=""tc2"" value=""$(tc2"&tt&")""/>"
Response.Write "<postfield name=""tc3"" value=""$(tc3"&tt&")""/>"
Response.Write "<postfield name=""tc4"" value=""$(tc4"&tt&")""/>"
Response.Write "<postfield name=""tc5"" value=""$(tc5"&tt&")""/>"
Response.Write "<postfield name=""tc6"" value=""$(tc6"&tt&")""/>"
Response.Write "<postfield name=""sc2"" value=""$(sc2"&tt&")""/>"
Response.Write "<postfield name=""sc3"" value=""$(sc3"&tt&")""/>"
Response.Write "<postfield name=""sc4"" value=""$(sc4"&tt&")""/>"
Response.Write "<postfield name=""sc5"" value=""$(sc5"&tt&")""/>"
Response.Write "<postfield name=""sc6"" value=""$(sc6"&tt&")""/>"
Response.Write "<postfield name=""ptcent"" value=""$(ptcent"&tt&")""/>"
Response.Write "<postfield name=""dpcent"" value=""$(dpcent"&tt&")""/>"
Response.Write "<postfield name=""dwcent"" value=""$(dwcent"&tt&")""/>"
Response.Write "<postfield name=""ezecent"" value=""$(ezecent"&tt&")""/>"
Response.Write "<postfield name=""szscent"" value=""$(szscent"&tt&")""/>"
Response.Write "<postfield name=""szecent"" value=""$(szecent"&tt&")""/>"
Response.Write "<postfield name=""TP"" value=""ok""/>"
Response.Write "</go></anchor><br/>"
end if
Response.Write "提示:赔率可以有小数点,如1.2<br/>"
end if
%>
---------------<br/><a href="adminvote.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[投注管理]</a>
<!--#include file="fanhui.asp"-->
<%call head1()%>