%
ac=request.QueryString("ac")
id=request.QueryString("id")
qd=request.QueryString("qd")
If qd<>"" And qd<>"zd" And qd<>"kd" then response.end
If ac="up" Then
Set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from cz_jg where id="&id
'update cz_jg set zdcs=0,kdcs=0 where id>0;
rs.cursorlocation=3
rs.open sql,conn,1,3
rs(qd&"cs")=rs(qd&"cs")+1
rs.update
rs.close : set rs = Nothing
response.Write 1
response.end
End If
If ac="check" Then
'Response.Addheader "Content-Type","text/html; charset=gb2312"
CharSet="gb2312"
Response.CharSet=CharSet
Set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from cz_jg where id="&id
rs.cursorlocation=3
rs.open sql,conn,1,1
zdnum=rs("zdcs")
kdnum=rs("kdcs")
If zdnum>0 And kdnum>0 then zdwidth=Clng((zdnum/(zdnum+kdnum))*96)
If zdnum=0 Then zdwidth=50
If zdwidth<16 Then zdwidth=16
kdwidth=93-zdwidth
If kdwidth<16 Then
kdwidth=16
zdwidth=93-kdwidth
End if
toupiao="
"
response.Write toupiao
response.end
End If
%>
足球推荐,篮球推荐,NBA推荐,免费推荐,专业推荐
联赛
比赛时间
主 队
让球
客 队
分析
数据分析
推介
比分
结 果
<%
Set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from cz_jg order by id desc"
rs.cursorlocation=3
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.Write "
暂无内容!
"
response.End()
end If
rs.pagesize=30
curpage=Request.QueryString("page")
if curpage="" then curpage=1
rs.absolutepage=curpage
for i=1 to rs.pagesize
if rs.eof Then
exit for
end If
If instr(rs("sf"),"等")>0 then
color="blue"
End If
If instr(rs("sf"),"输")>0 then
color="black"
End If
If instr(rs("sf"),"赢")>0 then
color="red"
End If
if i mod 2 = 0 Then
bg=" class='trbg'"
Else
bg=""
End If
If rs("sf")="" Then
sf="等待"
color="blue"
Else
sf=rs("sf")
End If
If rs("fx")="" Or IsNull(rs("fx")) Then
fx="暂无分析"
Else
fx="查看分析"
End If
If rs("fx2")="" Or IsNull(rs("fx2")) Then
fx2="暂无分析"
Else
fx2="查看分析"
End If
zdnum=rs("zdcs")
kdnum=rs("kdcs")
If zdnum>0 And kdnum>0 then zdwidth=Clng((zdnum/(zdnum+kdnum))*96)
If zdnum=0 Then zdwidth=50
If zdwidth<18 Then zdwidth=18
kdwidth=94-zdwidth
If kdwidth<16 Then
kdwidth=16
zdwidth=94-kdwidth
End if
If i=1 Then
trsty=" class='first'"
Else
trsty=" class='nofirst'"
End if
toupiao="