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

<!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 id="Head1" runat="server">
    <title>选择简答题</title>
    <link href="../../StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .divContent
        {
             overflow:auto;
              width:320px;
              height:50px;
              margin:5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
      <div class="listAddLink">
                    <a href="../Subject/AddSubjectOfSimpleAnswer.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="5" Name="subjectType" Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource></div>
         </div>
               <asp:Repeater ID="rptSubjectOfSimpleAnswerList" runat="server" 
                    DataSourceID="ObjectDataSource1">
                <HeaderTemplate>
                     <table border="0" cellpadding="0" cellspacing="0" class="tableList" width="800">
                    <tr class="header">
                        <td >
                            问题</td>
                        <td class="style3">
                            答案</td>
                        <td style="width:100px;">
                            操 作</td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                     <tr class="body">
                        <td >
                        <div style="width:20px;  float:left; margin:0;margin-top:5px;">(<%#Eval("ID") %>)</div>
                        <div class="divContent">
                          <%#Eval("Question") %>
                            </div></td>
                        <td class="style3">
                        <div class="divContent" style="color:Red">
                            <%# Eval("Answer") %>
                            </div></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.BLLSubjectOfSimpleAnswer">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="drpSubjectTypeCategory" DefaultValue="-1" 
                            Name="cateID" PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
          </asp:ObjectDataSource>
    </form>
</body>
</html>
