⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_select.aspx

📁 基于WEB的在线考试系统建立在系统后台的数据库的基础上
💻 ASPX
字号:
<%@ Page Language="C#"  CodeFile="Add_Select.aspx.cs" Inherits="Teacher_Add_Select" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >


<html>
<head id="Head1" runat="server">
    <title>Add_</title>
    <link href="Style/css.css" rel="stylesheet"
        type="text/css" />
    <script language="javascript" src="../Script/Common.js"></script>  
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div id="HC" style="width: 911px">
                            <table border="0" cellpadding="0" cellspacing="0" style="height: 351px; width: 907px;" >
                                <tr>
                                    <td align="center" style="height: 372px">
                                        
                                      <div class="HC1">
                                          添加选择题:</div>
                                        <div class="HC3">
                                            <ul class="FS12">
                                                &nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
                                                </asp:ScriptManager>
                                                
                                                
                                                <table height="100" border="0" style="width: 833px">
                                                <tr>
                                                  <td style="width: 955px; height: 228px"><img src=
                                                      "Images/dot3.gif" border=0 />请写内容和答案&nbsp;<br />
                                                      <input runat="server" type="hidden" name="content" id="content" value="">
                                                      <iframe ID="eWebEditor1" src="../ewebeditor/ewebeditor.asp?id=content&style=s_mini" frameborder="0" scrolling="no" width="700" HEIGHT="300" style="width: 644px"></iframe>
                              
                                                      </td>
                                                  <td style="width: 325px; height: 228px">
                                                      <asp:Image ID="Image1" runat="server" ImageUrl="~/Teacher/Images/param.gif" /><br />
                                                      &nbsp;<asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>已经添加:<asp:Label
                                                          ID="TatolNum" runat="server" ForeColor="Green" Text="0"></asp:Label>
                                                      <table style="width: 175px; height: 226px" id="TABLE1">
                                                          <tr>
                                                              <td style="width: 70px">
                                                                  科目:</td>
                                                              <td style="width: 85px">
                                                                  <asp:DropDownList ID="subject" runat="server" DataSourceID="ObjectDataSource1" DataTextField="SubjectName" DataValueField="SubjectID"
                                                                     >
                                                                  </asp:DropDownList>&nbsp;
                                                              </td>
                                                          </tr>
                                                          <tr>
                                                              <td style="width: 70px">
                                                                  标准答案</td>
                                                              <td style="width: 85px">
                                                                  <asp:DropDownList ID="Keys" runat="server">
            <asp:ListItem Value="A">A</asp:ListItem>
            <asp:ListItem Value="B">B</asp:ListItem>
            <asp:ListItem Value="C">C</asp:ListItem>
            <asp:ListItem Value="D">D</asp:ListItem>
            <asp:ListItem Value="AB">AB</asp:ListItem>
            <asp:ListItem Value="AC">AC</asp:ListItem>
            <asp:ListItem Value="AD">AD</asp:ListItem>
            <asp:ListItem Value="BC">BC</asp:ListItem>
            <asp:ListItem Value="BD">BD</asp:ListItem>
            <asp:ListItem Value="CD">CD</asp:ListItem>
            <asp:ListItem Value="ABC">ABC</asp:ListItem>
            <asp:ListItem Value="ABD">ABD</asp:ListItem>
            <asp:ListItem Value="ACD">ACD</asp:ListItem>
            <asp:ListItem Value="BCD">BCD</asp:ListItem>
            <asp:ListItem Value="ABCD">ABCD</asp:ListItem>
                                                                  </asp:DropDownList></td>
                                                          </tr>
                                                          <tr>
                                                              <td style="width: 70px; height: 48px;">
                                                                  难度系数</td>
                                                              <td style="height: 48px; width: 85px;">
                                                                  <asp:ListBox ID="DifficultLevel" runat="server" Height="48px" Width="72px">
                                                                      <asp:ListItem Selected="True" Value="1">简单</asp:ListItem>
                                                                      <asp:ListItem Value="0">困难</asp:ListItem>
                                                                  </asp:ListBox></td>
                                                          </tr>
                                                          <tr>
                                                              <td style="width: 70px; height: 61px;">
                                                                  单/多选</td>
                                                              <td style="width: 85px; height: 61px">
                                                                  <asp:ListBox ID="SelectType" runat="server" Height="49px" Width="69px">
                                                                      <asp:ListItem Selected="True">单选</asp:ListItem>
                                                                      <asp:ListItem>多选</asp:ListItem>
                                                                  </asp:ListBox></td>
                                                          </tr>
                                                      </table>
                                                      <br />
                                        <asp:Button ID="subdata" runat="server" Height="38px"  Text="提 交"
                                                          Width="139px" CssClass="subbutton" OnClick="subdata_Click" /></td>
                                                </tr>
                                              </table>
                                                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                                                        SelectMethod="GetSubjectForTeacher" TypeName="BLL.Subject">
                                                        <SelectParameters>
                                                            <asp:SessionParameter Name="TeacherID" SessionField="TeacherID" Type="String" />
                                                        </SelectParameters>
                                                    </asp:ObjectDataSource>
                                                
                                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
                                            </ul>
                                        </div>
                                        <div class="HC2" style="background: #e2eaf7">
                                            &nbsp;</div>
                                        <!--Comments End -->
                                  </td>
                                </tr>
      </table>
      </div>
      
      <div id="Div1" style="width: 911px">
          <br />
          <asp:UpdatePanel ID="UpdatePanel2" runat="server">
              <ContentTemplate>
                  <br />
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  &nbsp; &nbsp;&nbsp;<asp:Button ID="FindData" runat="server" Text="按当前科目查询" Width="178px" CssClass="subbutton" OnClick="FindData_Click" />
                  <br />
                            <table border="0" cellpadding="0" cellspacing="0" style="height: 351px; width: 907px;" >
                                <tr>
                                    <td align="center" style="height: 372px">
                                        
                                      <div class="HC1">
                                          我的选择题:</div>
                                        <div class="HC3">
                                            <ul class="FS12"><asp:GridView ID="SelectInfo" runat="server" EmptyDataText="没有选择数据" AutoGenerateColumns="False" Width="832px" AllowSorting=true DataKeyNames="ID" Height="28px" AllowPaging="True" GridLines="Vertical" PageSize="12" OnPageIndexChanging="SelectInfo_PageIndexChanging" >
                                                    <Columns>
                                                    <asp:TemplateField HeaderText="选取">
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" BorderColor="#003399" BorderWidth="1px" />
                                </ItemTemplate>
                                                        <ItemStyle Width="40px" />
                            </asp:TemplateField>
                                                        <asp:BoundField DataField="SubjectID" HeaderText="科目编号" >
                                                            <ItemStyle Width="90px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="内容">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Texts") %>'></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Texts") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField HeaderText="类型" DataField ="SelectType" >
                                                            <ItemStyle Width="80px" />
                                                        </asp:BoundField>
                                                        <asp:HyperLinkField Text="&lt;img src=../Admin/Images/Edit.gif border=0 /&gt;"  Target=_blank  DataNavigateUrlFields="ID,Sign" DataNavigateUrlFormatString="Edit.aspx?ID={0}&amp;Type={1}" >
                                                            <ItemStyle Width="30px" />
                                                        </asp:HyperLinkField>
                                                    </Columns>
                                                    
                                                    <RowStyle ForeColor="#003399" />
                                    <HeaderStyle BackColor="#003399" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="#EFEFFF" BorderColor="#003399" />
                                                </asp:GridView> &nbsp; &nbsp;
                    &nbsp; &nbsp;&nbsp; <asp:CheckBox ID="selectAll"
                        runat="server" Text="全选 / 全不选"  Height="19px" Width="113px" AutoPostBack="True" OnCheckedChanged="selectAll_CheckedChanged"/>&nbsp; <asp:Button ID="delete" runat="server" Text="删除" Width="57px" Height="23px" OnClick="delete_Click" CssClass="subbutton"/>&nbsp;
                    &nbsp;第 <asp:Label ID="NumPage" runat="server" Font-Bold="False" Font-Italic="False"
                        ForeColor="Red" Text="1"></asp:Label>&nbsp; 页 共
                    <asp:Label ID="totalNumber" runat="server" Font-Bold="False" Font-Italic="False"
                        ForeColor="Red" Text="Label"></asp:Label>
                    &nbsp;页 &nbsp; &nbsp;<asp:Button ID="firstPage" runat="server" Text="首页" Width="57px" Height="23px" OnClick="firstPage_Click" CssClass="subbutton"/>
                    <asp:Button ID="upPage" runat="server" Text="上一页" Width="57px" Height="23px" OnClick="upPage_Click" CssClass="subbutton"/>
                    &nbsp; &nbsp;&nbsp;
                    <asp:Button ID="downPage" runat="server" Text="下一页"  Width="57px" Height="23px" OnClick="downPage_Click" CssClass="subbutton"/>&nbsp;
                    <asp:Button ID="lastPage" runat="server" Text="末页"  Width="57px" Height="23px" OnClick="lastPage_Click" CssClass="subbutton"/>
                                                &nbsp; &nbsp; &nbsp; 
                                            </ul>
                                            <ul class="FS12">
                                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
                                            </ul>
                                            
                                        </div>
                                        <div class="HC2" style="background: #e2eaf7">
                                            &nbsp;</div>
                                        <!--Comments End -->
                                  </td>
                                </tr>
      </table>
              </ContentTemplate>
          </asp:UpdatePanel>
          <br />
      </div>
    
    </div>
    </form>
    
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -