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

📄 strategymanager.aspx

📁 本在线考试系统采用了面向对象的分析和设计
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StrategyManager.aspx.cs" Inherits="Teacher_Default"  EnableEventValidation="false" %>

<!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 type="text/css" rel="stylesheet" href="../Style/StrategyManager.css" />
    <link href="../Style/GridView.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div id="Head">
        在线考试考试系统<div class="BackLink"><a href="Subject.aspx">回到管理页面</a></div></div>
             <div class="Line"></div>
            <div id="Main">


    <div id="ChapterTree">题型:<asp:DropDownList ID="questionTypeDD" runat="server" AutoPostBack="True" OnSelectedIndexChanged="questionTypeDD_SelectedIndexChanged">
            <asp:ListItem Selected="True" Value="DanXuan">单选题</asp:ListItem>
            <asp:ListItem Value="DuoXuan">多选题</asp:ListItem>
            <asp:ListItem Value="PanDuan">判断题</asp:ListItem>
            <asp:ListItem Value="TianKong">填空题</asp:ListItem>
            <asp:ListItem Value="JianDa">简答题</asp:ListItem>
        </asp:DropDownList>
        &nbsp;&nbsp;
        难度:<asp:DropDownList ID="hardDD" runat="server" AutoPostBack="True" OnSelectedIndexChanged="hardDD_SelectedIndexChanged">
            <asp:ListItem Selected="True" Value="1">1</asp:ListItem>
            <asp:ListItem Value="2">2</asp:ListItem>
            <asp:ListItem Value="3">3</asp:ListItem>
        </asp:DropDownList>
        <br />
         <asp:TreeView ID="TreeView1" runat="server" Height="208px" Width="204px" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" ForeColor="White">
        </asp:TreeView>
    </div>
    <div id="Middle">
    <div id="QuestionList">
    <asp:GridView ID="QuestionGridView" runat="server" AutoGenerateColumns="False" CssClass="GridView">
        <Columns>
            <asp:BoundField DataField="QuestionType" HeaderText="题型" />
            <asp:BoundField DataField="Content" HeaderText="内容" />
            <asp:TemplateField HeaderText="题号">
            <ItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server"  Checked="true" Text='<%#Eval("ID")%>'/>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        </asp:GridView>
     </div>
   <div id="Button">
   <asp:Button ID="SelectButton" runat="server" Text="添加备选题目" OnClick="SelectButton_Click"  />
    <asp:Button ID="RemoveSeletedButton" runat="server"  Text="删除备选题目"  OnClick="RemoveSeletedButton_Click" />
    </div>
    
<div id="SelectedQuestionList">
    <asp:GridView ID="SelectedQuestionGridView" runat="server"  AutoGenerateColumns="False" CssClass="GridView" >
        <Columns>
            <asp:TemplateField HeaderText="题号">          
              <ItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server" Text='<%#Eval("ID")%>'/>
            </ItemTemplate></asp:TemplateField>
            <asp:TemplateField>
            <ItemTemplate><a target="_blank" href='<%#Eval("QuestionType")%>.aspx?Action=View&QuestionId=<%#Eval("ID")%>'>查看</a>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</div>
</div>
 
<div id="StrategyList" style="width: 19%">
    <asp:Button ID="AddStrategyButton" runat="server"  OnClick="AddStrategyButton_Click"  Text="添加策略" Width="74px" ValidationGroup="1"  />
    <asp:TextBox ID="StrategyTextBox" runat="server" Width="111px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="StrategyTextBox"
        ErrorMessage="RequiredFieldValidator" ValidationGroup="1">*</asp:RequiredFieldValidator><br />
    <asp:Button ID="AddStrategyContainerButton" runat="server" Text="添加题型" OnClick="AddStrategyContainerButton_Click" Width="74px" ValidationGroup="2" />
    <asp:TextBox ID="StrategyContainerTextBox" runat="server" Width="112px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="StrategyContainerTextBox"
        ErrorMessage="RequiredFieldValidator" ValidationGroup="2">*</asp:RequiredFieldValidator><br />
    <asp:Button ID="AddStrategyItemButton" runat="server" Text="添加策略项" Width="74px" OnClick="AddStrategyItemButton_Click" ValidationGroup="3" />
    <asp:TextBox ID="StrategyItemTextBox" runat="server" Width="112px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="StrategyItemTextBox"
        ErrorMessage="RequiredFieldValidator" ValidationGroup="3">*</asp:RequiredFieldValidator><br />
    <asp:DropDownList ID="StrategyDropDownList" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="StrategyDropDownList_SelectedIndexChanged" Height="24px" Width="146px">
    </asp:DropDownList>
    <asp:Button
        ID="DeleteStrategyButton" OnClientClick="return confirm('真的要删除考试策略,注意使用着的策略不能删除!')" runat="server" Text="删除策略" OnClick="DeleteStrategyButton_Click" CausesValidation="False" /><br />
    <asp:DropDownList ID="StrategyContainerDropDownList" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="StrategyContainerDropDownList_SelectedIndexChanged" Height="22px" Width="145px">
    </asp:DropDownList>
    <asp:Button ID="DeleteStrategyContainerButton" runat="server" Text="删除题型" OnClick="DeleteStrategyContainerButton_Click" CausesValidation="False" /><br />
    <asp:ListBox ID="StrategyItemListBox" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="StrategyItemListBox_SelectedIndexChanged" Height="190px" Width="148px"></asp:ListBox>
    <br />
    分 &nbsp; &nbsp; 值:<asp:TextBox ID="ScoreValueTextBox" runat="server" Width="72px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ScoreValueTextBox"
        ErrorMessage="RequiredFieldValidator" ValidationGroup="4">*</asp:RequiredFieldValidator>
    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ScoreValueTextBox"
        ErrorMessage="CompareValidator" Operator="GreaterThan" Type="Integer" ValidationGroup="4"
        ValueToCompare="0">>0</asp:CompareValidator><br />
    选取题数:<asp:TextBox ID="QuestionCountTextBox" runat="server" Height="15px" Width="70px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="QuestionCountTextBox"
        ErrorMessage="RequiredFieldValidator" ValidationGroup="4">*</asp:RequiredFieldValidator>
    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="QuestionCountTextBox"
        ErrorMessage="CompareValidator" Operator="GreaterThan" Type="Integer" ValidationGroup="4"
        ValueToCompare="0">>0</asp:CompareValidator><br />
    <asp:Button ID="SaveStrategyItemBT" runat="server"  Text="保存策略项" Width="69px" OnClick="SaveStrategyItemBT_Click" ValidationGroup="4" />&nbsp;
    <asp:Button ID="DeleteStrategyItemButton" runat="server" Text="删除策略项" Width="74px" OnClick="DeleteStrategyItemButton_Click" />
    <br />
    <asp:Label ID="Label1" runat="server"  EnableViewState="False" CssClass="Message"></asp:Label>
    </div>
</div>
      

     <div class="Line"></div>
            <div id="Bottom">
            版权所有 2008</div>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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