<%@ Page Language="C#" Inherits="Caicai.Jingpin.UI.Plugins.Exam" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="css.css" rel="stylesheet" type="text/css" />
<title><%= Caicai.Framework.Utils.CAppSettings.ConfigGet("Page.SiteCopyright") %>在线水平自测系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="../style.css" rel="stylesheet" rev="stylesheet" media="all" />
<meta name="author" content="guqiu.com" />
<meta name="keywords" content="谷秋精品课程系统,精品课程,谷秋精品课程,精品课程软件,谷秋精品工具" />
<meta name="description" content="谷秋精品课程系统网站由《谷秋精品课程软件》生成，谷秋精品课程软件官方网站http://www.guqiu.com。" />
<script type="text/javascript" src="../../files/common/jquery.js"></script>
<script type="text/javascript">
$(function()
{
	$("#ButtonInsert").click(function()
	{
		if ($("#DDL_Class").val()=="0")
		{
			alert("请选择题库！");
			return false;
		} 
		return true;
	})

	if($(".results").length != 0)
	{
		$.each($(".results"), function(i)
		{
			var a = $(this).find("span").find("span");
			if(a.html() != $("input[name="+ a.attr("title") +"]").attr("value"))
			{
				$(this).attr("class", "results_no");
			}
		})
	}
})
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:Literal ID="LiteralAnswer" runat="server" />
<table class="table menu">
  <tr>
    <td><a href="?">选择题库</a></td>
  </tr>
</table>
<asp:Panel ID="PanelDefault" runat="server">
<table class="table">
<tr>
	<td style="background:#f1f1f1; width:100px; text-align:right;">请选择题库</td>
	<td><Cai:CDropDownList runat="server" ID="DDL_Class" Name="C_ExamClass" ControlType="TableName" Order="ordernum desc, id desc" /></td>
</tr>
<tr>
	<td colspan="2" align="center"><asp:Button ID="ButtonInsert" runat="server" Text=" 提 交 " onclick="Show_Click" />&nbsp;&nbsp;<input type="reset" value=" 重 置 " /></td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="PanelShow" runat="server">
<table class="table">
<thead>
<tr>
	<td style="font-size:14px;"><asp:Label ID="LabelAnswer" runat="server" CssClass="answer" style="float:right"></asp:Label>欢迎登陆到在线水平自测系统。&nbsp;&nbsp;</td>
</tr>
</thead>
<tr>
	<td>
	<asp:Repeater ID="RepeaterDanxuanShow" runat="server">
	<HeaderTemplate>
	<h1><img src="images/data.gif" />单选题</h1>
	</HeaderTemplate>
    <ItemTemplate>
	<h2><%#(this.RepeaterDanxuanShow.Items.Count + 1)%>. <%#Eval("Name") %></h2>
	<%# Eval("Pic").ToString() == "" ? "" : "<a href='../../" + Eval("Pic").ToString() + "' target='_blank'><img src='../../" + Eval("Pic").ToString() + "' class='exampic' /></a><br />" %>
	<Caicai:CExam ID="Danxuan" Name='<%#Eval("ID") %>' Text='<%#Eval("Content") %>' Type="DanXuan" runat="server" />
	<asp:Label ID="LabelResults" runat="server" CssClass="results" Visible="false"><span>正确答案为：<span title="Answer_Name_<%#Eval("ID") %>"><%#Eval("Answer") %></span></span>&nbsp;&nbsp;&nbsp;&nbsp;您的选择为：<script>var v= $("input[name=Answer_Name_<%#Eval("ID") %>]").attr("value"); if(v!=undefined) document.write(v);</script></asp:Label>
	</ItemTemplate>
    </asp:Repeater>
	<asp:Repeater ID="RepeaterDuoxuanShow" runat="server">
	<HeaderTemplate>
	<h1><img src="images/data.gif" />多选题</h1>
	</HeaderTemplate>
    <ItemTemplate>
	<h2><%#(this.RepeaterDuoxuanShow.Items.Count + 1)%>. <%#Eval("Name")%></h2>
	<%# Eval("Pic").ToString() == "" ? "" : "<a href='../../" + Eval("Pic").ToString() + "' target='_blank'><img src='../../" + Eval("Pic").ToString() + "' class='exampic' /></a><br />" %>
	<Caicai:CExam ID="DuoXuan" Name='<%#Eval("ID") %>' Text='<%#Eval("Content") %>' Type="DuoXuan" runat="server" />
	<asp:Label ID="LabelResults" runat="server" CssClass="results" Visible="false"><span>正确答案为：<span title="Answer_Name_<%#Eval("ID") %>"><%#Eval("Answer") %></span></span>&nbsp;&nbsp;&nbsp;&nbsp;您的选择为：<script>var v= $("input[name=Answer_Name_<%#Eval("ID") %>]").attr("value"); if(v!=undefined) document.write(v);</script></asp:Label>
	</ItemTemplate>
    </asp:Repeater>
	<asp:Repeater ID="RepeaterPanduanShow" runat="server">
	<HeaderTemplate>
	<h1><img src="images/data.gif" />判断题</h1>
	</HeaderTemplate>
    <ItemTemplate>
	<h2><%#(this.RepeaterPanduanShow.Items.Count + 1)%>. <%#Eval("Name")%></h2>
	<%# Eval("Pic").ToString() == "" ? "" : "<a href='../../" + Eval("Pic").ToString() + "' target='_blank'><img src='../../" + Eval("Pic").ToString() + "' class='exampic' /></a><br />" %>
	<Caicai:CExam ID="Panduan" Name='<%#Eval("ID") %>' Text='<%#Eval("Content") %>' Type="PanDuan" runat="server" /><br /><br />
	<asp:Label ID="LabelResults" runat="server" CssClass="results" Visible="false"><span>正确答案为：<span title="Answer_Name_<%#Eval("ID") %>"><%#Eval("Answer") %></span></span>&nbsp;&nbsp;&nbsp;&nbsp;您的选择为：<script>var v= $("input[name=Answer_Name_<%#Eval("ID") %>]").attr("value"); if(v!=undefined) document.write(v);</script></asp:Label>
	</ItemTemplate>
    </asp:Repeater>
	<asp:Repeater ID="RepeaterTiankongShow" runat="server">
	<HeaderTemplate>
	<h1><img src="images/data.gif" />填空题</h1>
	</HeaderTemplate>
    <ItemTemplate>
	<h2><%#(this.RepeaterTiankongShow.Items.Count + 1)%>. <%#Eval("Name").ToString().Replace("*", "<input type='text' name='"+ Eval("ID") +"' class='tiankong'>")%></h2>
	<%# Eval("Pic").ToString() == "" ? "" : "<a href='../../" + Eval("Pic").ToString() + "' target='_blank'><img src='../../" + Eval("Pic").ToString() + "' class='exampic' /></a><br />" %>
	<asp:Label ID="LabelResults" runat="server" CssClass="results" Visible="false"><span>正确答案为：<span title="Answer_Name_<%#Eval("ID") %>"><%#Eval("Answer") %></span></span>&nbsp;&nbsp;&nbsp;&nbsp;您的选择为：<script>document.write($("input[name=Answer_Name_<%#Eval("ID") %>]").attr("value"));</script></asp:Label>
	</ItemTemplate>
    </asp:Repeater>
	</td>
</tr>
<tr>
	<td><asp:Button ID="ButtonAnswer" runat="server" Text=" 提交试卷 " onclick="Answer_Click" />&nbsp;&nbsp;<asp:Button ID="ButtonReset" runat="server" Text=" 重新选择题库 " onclick="Reset_Click" />&nbsp;&nbsp;<input type="reset" value=" 重 置 " /></td>
</tr>
</table>
</asp:Panel>
</form>
</body>
</html>