?? list_chengji_st.asp
字號(hào):
tk_id=cint(request.querystring("tk_id"))
str="select * from "&list_tk&" where id="&tk_id&""
set rs=conn.execute(str)
%>
<table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#ff99cc" bgcolor="#edebdb">
<tr>
<td width="200" valign="top">
<table width="163" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="unnamed6"> </td>
</tr>
<tr>
<td background="images/top01.gif" class="unnamed10"> </td>
</tr>
<tr>
<td height="20" background="images/mid01.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="unnamed12">
<td width="60%"><div align="right">題庫編號(hào):</div></td>
<td width="40%"><%=rs("id")%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" background="images/mid01.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="unnamed12">
<td width="60%"><div align="right">正確答案:</div></td>
<td width="40%">
<%if mid(rs("da"),1,1)="1" then response.write "A" end if%>
<%if mid(rs("da"),2,1)="1" then response.write "B" end if%>
<%if mid(rs("da"),3,1)="1" then response.write "C" end if%>
<%if mid(rs("da"),4,1)="1" then response.write "D" end if%>
<%if mid(rs("da"),5,1)="1" then response.write "E" end if%>
<%if mid(rs("da"),6,1)="1" then response.write "F" end if%>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" background="images/mid01.gif"><table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="unnamed12">
<td width="60%"><div align="right">你的答案:</div></td>
<td width="40%">
<% if an="000000" then response.write "未答" end if%>
<%if mid(an,1,1)="1" then response.write "A" end if%>
<%if mid(an,2,1)="1" then response.write "B" end if%>
<%if mid(an,3,1)="1" then response.write "C" end if%>
<%if mid(an,4,1)="1" then response.write "D" end if%>
<%if mid(an,5,1)="1" then response.write "E" end if%>
<%if mid(an,6,1)="1" then response.write "F" end if%>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" background="images/mid01.gif"><div align="center">
<p class="unnamed12"><a href="list_chengji_st.asp?doing=list_cj&list_name=<%=list_name%>">關(guān)閉顯示試題</a></p>
</div></td>
</tr>
<tr>
<td background="images/bottom01.gif" class="unnamed10"> </td>
</tr>
<tr>
<td class="unnamed6"> </td>
</tr>
</table></td>
<td width="570" valign="top"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="unnamed6"> </td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" class="unnamed12h"> <span class="unnamed14">第 <%=tm_id%> 題</span></td>
</tr>
<tr>
<td class="unnamed12h"><%=rs("tm_text")%></td>
</tr>
<%if rs("img_name")<>"" and rs("img_name")<>" " then%>
<tr>
<td><div align="center"><img src="testimages/<%=rs("img_name")%>"></div></td>
</tr>
<%end if%>
<tr>
<td class="unnamed12H"> A:
<%if rs("select_only")=1 then%><input type="radio" name="radiobutton" value="radiobutton"><%else%> <input type="checkbox" name="checkbox" value="checkbox"><%end if%>
<%=rs("da_a")%></td>
</tr>
<tr>
<td class="unnamed12H"> B:
<%if rs("select_only")=1 then%><input type="radio" name="radiobutton" value="radiobutton"><%else%> <input type="checkbox" name="checkbox2" value="checkbox"><%end if%>
<%=rs("da_b")%></td>
</tr>
<%if rs("da_c")<>"" and rs("da_c")<>" " then%>
<tr>
<td class="unnamed12H"> C:
<%if rs("select_only")=1 then%><input type="radio" name="radiobutton" value="radiobutton"><%else%> <input type="checkbox" name="checkbox3" value="checkbox"><%end if%>
<%=rs("da_c")%></td>
</tr>
<%end if
if rs("da_d")<>"" and rs("da_d")<>" " then%>
<tr>
<td class="unnamed12H"> D:
<%if rs("select_only")=1 then%><input type="radio" name="radiobutton" value="radiobutton"><%else%> <input type="checkbox" name="checkbox4" value="checkbox"><%end if%>
<%=rs("da_d")%></td>
</tr>
<%end if
if rs("da_e")<>"" and rs("da_e")<>" " then%>
<tr>
<td class="unnamed12H"> E:
<%if rs("select_only")=1 then%><input type="radio" name="radiobutton" value="radiobutton"><%else%> <input type="checkbox" name="checkbox5" value="checkbox"><%end if%>
<%=rs("da_e")%></td>
</tr>
<%end if
if rs("da_f")<>"" and rs("da_f")<>" " then%>
<tr>
<td class="unnamed12H"> F:
<%if rs("select_only")=1 then%><input type="radio" name="radiobutton" value="radiobutton"><%else%> <input type="checkbox" name="checkbox6" value="checkbox"><%end if%>
<%=rs("da_f")%></td>
</tr>
<%end if%>
</table>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="unnamed6"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="unnamed6"> </td>
</tr>
</table>
<%end if 'xyz%>
<%end if 'abcd%>
<table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#ff99cc" bgcolor="#edebdb">
<tr>
<td valign="top"> <table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="unnamed6"> </td>
</tr>
</table>
<div align="center" class="unnamed14h20">
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" bgcolor="#999999"><div align="center" class="unnamed16"><strong>試
卷 信 息 列 表</strong></div></td>
</tr>
</table>
<%str="select id,考試名稱,題庫名稱,開考時(shí)間,結(jié)束時(shí)間,試題數(shù)量,數(shù)據(jù)表名,查分 from test_gl where 考試班級(jí)='"&session("student_bj")&"'order by id desc"
set rs=conn.execute(str)%>
<table width="770" border="1" cellspacing="0" cellpadding="0">
<tr class="unnamed12">
<td width="200" height="20">
<div align="center">考 試 名 稱</div></td>
<td width="100">
<div align="center">考試科目</div></td>
<td width="140" height="20"> <div align="center">開 始 時(shí) 間</div></td>
<td width="140" height="20"> <div align="center">結(jié) 束 時(shí) 間</div></td>
<td width="60" height="20"> <div align="center">試題數(shù)量</div></td>
<td width="60" height="20"> <div align="center">查詢成績</div></td>
<td width="40" height="20"> <div align="center">狀態(tài)</div></td>
</tr>
<%
if not rs.eof then
do while not rs.eof%>
<tr class="unnamed12">
<td height="20"> <%if rs("查分")=1 then%> <a href=list_chengji_st.asp?doing=list_cj&list_tk=<%=rs("題庫名稱")%>&list_name=<%=rs("數(shù)據(jù)表名")%>><%=rs("考試名稱")%></a> <%else%> <%=rs("考試名稱")%> <%end if%></td>
<td height="20"><div align="center"><%=rs("題庫名稱")%></div></td>
<td height="20"><div align="center"><%=rs("開考時(shí)間")%></div></td>
<td height="20"><div align="center"><%=rs("結(jié)束時(shí)間")%></div></td>
<td height="20"><div align="center"><%=rs("試題數(shù)量")%></div></td>
<td height="20"><div align="center">
<%if rs("查分")=1 then%>
<font color="#0000FF">允許</font>
<%else%>
<font color="#FF0000">禁止</font>
<%end if%>
</div></td>
<td height="20"><div align="center">
<%if rs("結(jié)束時(shí)間")<now then%>
<font color="#FF0000">已結(jié)束</font>
<%else%>
<%if rs("開考時(shí)間")<now then%>
<font color="#0000FF">進(jìn)行中</font>
<%else%>
<font color="#FF00FF">未開始</font>
<%end if%>
<%end if%>
</div></td>
</tr>
<%rs.movenext
loop
else%>
<tr class="unnamed12">
<td height="30" colspan="7"><div align="center" class="unnamed14"><font color="#FF0000">沒有該班級(jí)的考試試卷</font></div></td>
</tr>
<%end if%>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="unnamed6"> </td>
</tr>
</table>
<font color="#FF0000"> </font> </div></td>
</tr>
</table>
<%else%>
<!--#include file="index01.asp" -->
<%end if%>
<!--#include file="inc/bottom.asp" -->
<%conn.close%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -