<!--#include file="../Include/Conno.asp" -->
<!--#include file="../Images/member/club_c_6.gif"-->
<!--#include file="../Include/const.asp" -->
<!--#include file="../Include/char.asp" -->
<%
f_id=clng(request("id"))
 if f_id="" or IsNumeric(f_id)=false then
 Call Msgbox("对不起，ID号错误！",1)
 Response.end
 end if
set rs_a=server.createobject("adodb.recordset")
sql_a="select * from t_test where F_id="&f_id
rs_a.open sql_a,conn,1,3
rs_a("F_hits")=rs_a("F_hits")+1
rs_a.update
%>
<HTML>
<HEAD>
<TITLE><%=rs_a("F_Title")%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<style type="text/css">
<!--
td {
	font-family: "宋体";
	font-size: 12px;
	text-decoration: none;
}
-->
</style>
</HEAD>
<BODY background=../images/member/test_testbg.gif topMargin=20>
<%
m_test=request("test")
if m_test="" then 
%>
<TABLE cellSpacing=0 cellPadding=0 width="97%" align=center border=0>
  <FORM action="club_viewtest.asp?id=<%=rs_a("F_id")%>" method=post>
  <TBODY>
  <TR>
    <TD width=10 bgColor=#ffffff><IMG height=10 
      src="../images/member/test_test1.gif" width=10></TD>
    <TD width="98%" bgColor=#ffffff height=10></TD>
    <TD width=10 bgColor=#ffffff height=10><IMG height=10 
      src="../images/member/test_test2.gif" width=10></TD></TR>
  <TR>
    <TD bgColor=#ffffff height=25></TD>
        <TD align=middle bgColor=#ffffff height=30><SPAN 
      style="FONT-SIZE: 14px"><B><%=rs_a("F_Title")%></B></SPAN></TD>
    <TD bgColor=#ffffff height=25></TD></TR>
  <TR>
    <TD bgColor=#ffffff height=25></TD>
    <TD 
    style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; LINE-HEIGHT: 150%; PADDING-TOP: 5px" 
    bgColor=#ffffff height=25><FONT 
      color=#663366><%=rs_a("F_content")%></FONT></TD>
    <TD bgColor=#ffffff height=25></TD></TR>
	<%
	set rs_c=server.createobject("adodb.recordset")
    sql_c="select * from T_TestResult where F_TestID="&rs_a("f_id")
    rs_c.open sql_c,conn
	i=1
	do while not rs_c.eof
	%>
  <TR>
    <TD bgColor=#ffffff height=25></TD>
    <TD bgColor=#ffffff height=25><INPUT type=radio value=<%=rs_c("F_Title")%> 
name=test><%=i%>.<%=rs_c("F_Title")%></TD>
    <TD bgColor=#ffffff height=25></TD></TR>
	<%
	i=i+1
	rs_c.movenext
	loop
	rs_c.close
	set rs_c=nothing
	%>
  <TR>
    <TD bgColor=#ffffff height=30></TD>
        <TD align=middle bgColor=#ffffff height=30><input name="image" type=image src="../images/member/test_showbutton.gif" 
      width=80 height=22></TD>
    <TD bgColor=#ffffff height=30></TD></TR>
  <TR>
    <TD bgColor=#ffffff height=10><IMG height=10 
      src="../images/member/test_test3.gif" width=10></TD>
    <TD bgColor=#ffffff height=10></TD>
    <TD width=10 bgColor=#ffffff height=10><IMG height=10 
      src="../images/member/test_test4.gif" 
width=10></TD></TR></FORM></TBODY></TABLE>
<%
else
	set rs_c=server.createobject("adodb.recordset")
    sql_c="select F_Result from T_TestResult where F_Title='"&m_test&"'"
    rs_c.open sql_c,conn
	if not rs_c.eof then
%>
<TABLE cellSpacing=0 cellPadding=0 width="97%" align=center border=0>
  
  <TBODY>
  <TR>
    <TD width=10 bgColor=#ffffff><IMG height=10 
      src="../images/member/test_test1.gif" width=10></TD>
    <TD width="98%" bgColor=#ffffff height=10></TD>
    <TD width=10 bgColor=#ffffff height=10><IMG height=10 
      src="../images/member/test_test2.gif" width=10></TD></TR>
  <TR>
    <TD bgColor=#ffffff height=25></TD>
        <TD align=middle bgColor=#ffffff height=30><SPAN 
      style="FONT-SIZE: 14px">测试结果</SPAN></TD>
    <TD bgColor=#ffffff height=25></TD></TR> 

  <TR>
    <TD bgColor=#ffffff height=25></TD>
        <TD bgColor=#ffffff height=25><%=rs_c("F_Result")%></TD>
    <TD bgColor=#ffffff height=25></TD></TR>

  <TR>
    <TD bgColor=#ffffff height=30></TD>
        <TD align=middle bgColor=#ffffff height=30><input name="image2" type=image src="../images/member/test_closebutton.gif" 
      width=80 height=22 onclick="javascript:window.close();"></TD>
    <TD bgColor=#ffffff height=30></TD></TR>
  <TR>
    <TD bgColor=#ffffff height=10><IMG height=10 
      src="../images/member/test_test3.gif" width=10></TD>
    <TD bgColor=#ffffff height=10></TD>
    <TD width=10 bgColor=#ffffff height=10><IMG height=10 
      src="../images/member/test_test4.gif" 
width=10></TD></TR></TBODY></TABLE>
<%
end if
rs_c.close
set rs_c=nothing
%>
</BODY></HTML>

<%
end if
rs_a.close
set rs_a=nothing
conn.close
set conn=nothing
%>
