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

📄 xzmanage.aspx

📁 本系统实现了网上考试的目的
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="XZManage.aspx.cs" Inherits="SubjectManage" %>

<!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>
</head>
<body style="font-size: 12pt">
    <form id="form1" runat="server">
    <div style="text-align: center">
        <span style="font-size: 24pt"><strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 选择题管理
        </strong>
        </span>&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;<br />
        <br />
        <table style="width: 721px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
            <tr>
                <td colspan="3" style="width: 688px; height: 50px; border-bottom-style: solid;">
                    &nbsp;请选择查询条件:<asp:DropDownList ID="DropDownList1" runat="server" Width="96px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True">
                        <asp:ListItem Value="XZName">题目</asp:ListItem>
                        <asp:ListItem Value="IfIssue">是否发布</asp:ListItem>
                    </asp:DropDownList>&nbsp;<asp:DropDownList ID="DropDownList2" runat="server" Visible="False">
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:DropDownList>&nbsp;
                    <asp:TextBox ID="tbSearch" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="imbtnSearch" runat="server" ImageUrl="~/images/btn_search_11.png" OnClick="imbtnSearch_Click" /><span
                        style="font-size: 10pt">(注:如果为空则显示所有试题)</span></td>
            </tr>
            <tr>
                <td colspan="3" style="width: 688px; height: 10px; text-align: center; border-bottom-style: solid;">
                    &nbsp;&nbsp;
                    添加试题信息 &nbsp;
                    <asp:ImageButton ID="imbtnAdd" runat="server" ImageUrl="~/images/btn_new_a1.gif" OnClick="imbtnAdd_Click" />
                    <asp:TextBox ID="tbClassifyID" runat="server" ReadOnly="True" Visible="False"></asp:TextBox></td>
            </tr>
            <tr style="font-size: 12pt">
                <td colspan="3" style="width: 688px; height: 292px; text-align: center; border-bottom-style: none;">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ID" ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging" Width="876px">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                SortExpression="ID" />
                            <asp:BoundField DataField="XZName" HeaderText="题目" SortExpression="XZName" />
                            <asp:BoundField DataField="A" HeaderText="选项A" SortExpression="A" />
                            <asp:BoundField DataField="B" HeaderText="选项B" SortExpression="B" />
                            <asp:BoundField DataField="C" HeaderText="选项C" SortExpression="C" />
                            <asp:BoundField DataField="D" HeaderText="选项D" SortExpression="D" />
                            <asp:BoundField DataField="Answer" HeaderText="答案" SortExpression="Answer" />
                            <asp:BoundField DataField="IfIssue" HeaderText="是否发布" SortExpression="IfIssue" />
                            <asp:BoundField DataField="Score" HeaderText="分值" SortExpression="Score" />
                            <asp:BoundField DataField="ClassifyID" HeaderText="分类" SortExpression="ClassifyID" />
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ModifyXZ.aspx?ID={0}"
                                Text="查看/修改" />
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="DeleteXZ.aspx?ID={0}"
                                Text="删除" />
                        </Columns>
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <EditRowStyle BackColor="#999999" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    &nbsp;
                    <asp:Label ID="lbl_noResult" runat="server" ForeColor="Red" Visible="False">没有满足要求的记录</asp:Label></td>
            </tr>
            <tr style="font-size: 12pt">
                <td colspan="3" style="width: 688px; height: 30px; text-align: left; border-top-style: solid;">
                    共有<asp:Label ID="lblCount" runat="server" ForeColor="Red"></asp:Label>条数据</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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