<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SubjectOfSingleSelectionList.aspx.cs" Inherits="Admin_Paper_SubjectOfSingleSelection" %>

<!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">
    <title>选择单选题</title>
<link href="../../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
       <div class="listAddLink">
                    <a href="../Subject/AddSubjectOfSingleSelection.aspx">添加题目</a>
                     | <a href="javascript:history.go(-1)">返回</a></div>
                <div class="listTop">
                    <div style="text-align:left; float:left; width:200px"><span class="title">选择单选题</span></div>
    
                 <div style="text-align:right; width:580px;"> <span style="color:White;">题型分类：</span><asp:DropDownList 
                       ID="drpSubjectTypeCategory" runat="server" 
                    DataSourceID="objSubjectTypeCategory" DataTextField="CateName" 
                    DataValueField="CateID" AutoPostBack="True" 
                       onselectedindexchanged="drpSubjectTypeCategory_SelectedIndexChanged">
                </asp:DropDownList>
            <asp:ObjectDataSource ID="objSubjectTypeCategory" runat="server" 
        SelectMethod="GetListBySubjectType" TypeName="BLL.BLLSubjectTypeCategory">
        <SelectParameters>
            <asp:Parameter DefaultValue="3" Name="subjectType" Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource></div>
                </div>
               <asp:Repeater ID="rptSubjectOfSingleSelectionList" runat="server" 
                    DataSourceID="ObjectDataSource1">
               <HeaderTemplate>
                     <table border="0" cellpadding="0" cellspacing="0" class="tableList" width="800">
                    <tr class="header">
                        <td class="style2">
                            问题和答案</td>
                        <td style="width:150px;">
                            操 作</td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                     <tr class="body">
                        <td >
                        <b>
                         (<%#Eval("ID")%>)  <%#Eval("Question") %> (<span style="color:Red;"><%# Eval("Answer") %></span>)
                         </b><br />
                           <table width="100%" class="tableList2">
                           <tr align="left"><td style="width:50%">A:<%#Eval("SelectA") %></td><td>B:<%#Eval("SelectB") %></td></tr>
                            <tr align="left"><td style="width:50%">C:<%#Eval("SelectC") %></td><td>D:<%#Eval("SelectD") %></td></tr>
                           </table>
                            </td>
                        <td>
                            <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("ID") %>' />
                            <asp:CheckBox ID="CheckBox1" runat="server" Text="选择" TextAlign="Left" /></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                <div class="listBottom">
                    <span class="content">总共<asp:Label ID="lblRecorderSum" runat="server" Text="0"></asp:Label>
                    条记录</span>
                     <span style="margin-right: 10px"><asp:Button ID="btnSave" runat="server" Text="保 存"  CssClass="btn" 
                         Width="80px" onclick="btnSave_Click"/>
                         </span>
                    </div>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    onselected="ObjectDataSource1_Selected" SelectMethod="GetSubjectList" 
                    TypeName="BLL.BLLSubjectOfSingleSelection">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="drpSubjectTypeCategory" DefaultValue="-1" 
                            Name="cateID" PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
           </asp:ObjectDataSource>
    </form>
</body>
</html>
