<!--#include file="../inc.asp"-->
<!--#include file="../ydzq.asp"-->
<!--#include file="conn.asp"-->

<%'=============================
call head()
Call cardgame("开出结果",yanse12)


if Instr(","&ballAdmin&",",","&myid&",") > 0 Or keys=1 Or keys=2 then
else
call error("权限不足！")
end if
dim id,ballresult1,ballresult2
id=request("id")
ballresult1=request("ballresult1")
ballresult2=request("ballresult2")
if id="" or Isnumeric(id)=false then
call error("ID无效！")
end if
set rs=Server.CreateObject("ADODB.Recordset")
  rs.open"select * from YD_vote where id=" & id & "  order by id desc",ydzqconn,1,1
if rs.eof then 
response.write "不存在的记录！"
Else
dim action
action=request("action")
if action="ok" then
if ballresult1="" or ballresult2="" then
call error("结果不能为空！")
end if
response.write "确认结果为："&ballresult1&":"&ballresult2&"<br/>"
response.write "为了避免不必要的争议，请谨慎确认"
if saytk<>1 then
Response.write "<form name=""form"" method=""post"" action=""admin_ball_j.asp?sid="&sid&"&amp;saytk="&saytk&""">"
response.write "<input type=""hidden"" name=""ballresult1"" value="""&ballresult1&"""/>"
response.write "<input type=""hidden"" name=""ballresult2"" value="""&ballresult2&"""/>"
response.write "<input type=""hidden"" name=""id"" value="""&id&"""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定开出""></form><br/>"
else%>
<br/><anchor>确定开出<go href="admin_ball_j.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>" method="post" accept-charset="utf-8">
<postfield name="ballresult1" value="<%=ballresult1%>"/>
<postfield name="ballresult2" value="<%=ballresult2%>"/>
<postfield name="id" value="<%=id%>"/>
</go></anchor><br/><%end if%>
<a href='admin_ball_k.asp?id=<%=id%>&amp;sid=<%=sid%>&amp;saytk=<%=saytk%>'>返回修改</a>
<%
else
response.write ""&rs("balltime1")&" "
response.write ""&rs("balltitle")&"<br/>"
response.write ""&rs("ballvote1")&"("&rs("ballvotelu1")&")"
response.write "VS"

response.write ""&rs("ballvote2")&"("&rs("ballvotelu2")&")<br/>"
%>
开出结果：<br/>
<%if saytk<>1 then
Response.write "<form name=""form"" method=""post"" action=""admin_ball_k.asp?sid="&sid&"&amp;saytk="&saytk&"&amp;action=ok"">"%>
<input emptyok="true" name="ballresult1" size="3"/>:<input emptyok="true" name="ballresult2" size="3"/>
<%response.write "<input type=""hidden"" name=""id"" value="""&id&"""/>"
response.write "<input type=""submit"" name=""Submit"" value=""确定开出""></form><br/>"
else%>
<input emptyok="true" name="ballresult1<%=tt%>" size="3"/>:<input emptyok="true" name="ballresult2<%=tt%>" size="3"/>
<br/><anchor>确定开出<go href="admin_ball_k.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>" method="post" accept-charset="utf-8">
<postfield name="ballresult1" value="$(ballresult1<%=tt%>)"/>
<postfield name="ballresult2" value="$(ballresult2<%=tt%>)"/>
<postfield name="id" value="<%=id%>"/>
<postfield name="action" value="ok"/>
</go></anchor><br/>
<%end if
end if
end if
rs.close
set rs=nothing
ydzqconn.close
set ydzqconn=nothing
conn.close
set conn=nothing
%><br/>-------------<br/>
<a href='admin_ball_v.asp?id=<%=id%>&amp;sid=<%=sid%>&amp;saytk=<%=saytk%>'>返回上级管理</a>
<!--#include file="fanhui2.asp"-->
<%call headsay()%>