📄 question.ascx
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Question.ascx.cs" Inherits="modules_Question" %>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td height="5">
</td>
</tr>
<tr>
<td align="left">
<span style="font-size: 14pt"><strong>试题信息查询: </strong><span style="font-size: 12pt;width:400">
</span></span> <asp:HyperLink ID="hlkAdd11" runat="server" NavigateUrl="~/EditQuestion.aspx?action=add">添加试题</asp:HyperLink></td>
</tr>
<tr>
<td valign="bottom">
<hr size="3" />
</td>
</tr>
<tr style="font-size: 12pt">
<td colspan="2" style="height: 22px" align="left">
科目:<asp:DropDownList ID="ddlCourse" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged" Width="200px">
</asp:DropDownList>
章目:<asp:DropDownList ID="ddlChapter" runat="server" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged"
Width="200px">
</asp:DropDownList> </td>
</tr>
<tr style="font-size: 12pt">
<td colspan="2" style="height: 19px" align="left">
题型:<asp:DropDownList ID="ddlType" runat="server" AppendDataBoundItems="True" Width="200px">
</asp:DropDownList><span style="font-size: 10pt"> </span><span>难度:</span><asp:DropDownList
ID="ddlDifficult" runat="server" Width="200px">
</asp:DropDownList>
</td>
</tr>
<tr style="font-size: 12pt">
<td colspan="2" style="height: 22px" align="left">
<span>关键词:</span>
<asp:TextBox ID="tbxKey1" runat="server" Width="165px"></asp:TextBox> <span
style="font-size: 10pt"> </span><asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" Width="100px" /></td>
</tr>
<tr>
<td colspan="2" style="height: 7px">
<hr size="3" width="100%" />
</td>
</tr>
<tr>
<td align="left" colspan="3" style="height: 19px">
<asp:Label ID="lblEmptyMessge" runat="server" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2" style="height: 19px">
<asp:DataList ID="gvQuestion" runat="server" DataKeyField="TQ_QuestionID" OnItemCommand="gvQuestion_ItemCommand"
Width="100%" OnItemCreated="gvQuestion_ItemCreated" OnItemDataBound="gvQuestion_ItemDataBound">
<ItemTemplate>
<table width="100%">
<tr>
<td align="left" rowspan="2" style="width: 50px" valign="top">
<asp:CheckBox ID="chkQuestion" runat="server" />
<asp:Label ID="id" runat="server" Font-Bold="False"></asp:Label></td>
<td align="left" rowspan="2" valign="top" width="500">
<asp:Label ID="TQ_QuestionIDLabel" runat="server" Text='<%# Eval("TQ_QuestionID") %>' Visible="False" Font-Size="12pt"></asp:Label>
<asp:Label
ID="TQ_QuestionContentLabel" runat="server" Text='<%# TQMS.BusinessLogicHelper.HtmlCode.TextEncodeToHtml(Eval("TQ_QuestionContent").ToString() )%>'></asp:Label>
</td>
<td rowspan="2">
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("TQ_ImageUrl", "~/upload/{0}") %>'
Target="_blank" Visible='<%# Eval("TQ_ImageUrl").ToString()=="default.jpg"?false:true %>'>
<asp:Image ID="Image2" runat="server" AlternateText='<%# "文件名称:" + Eval("TQ_ImageUrl", "~/upload/{0}") %>'
ImageUrl='<%# "~/Handler.ashx?filename="+Server.UrlEncode( Eval("TQ_ImageUrl").ToString()) %>' /></asp:HyperLink></td>
</tr>
<tr>
</tr>
<tr>
<td colspan="3" align="left">
<asp:Label ID="TQ_RightAnserLabel" runat="server" Text='<%# "答案"+Eval("TQ_RightAnser") %>'
Visible="False">
<span style="color: darkgray"><span style="font-size: 10pt">
</asp:Label>
<span style="font-size: 10pt">题型:</span><asp:Label ID="TQ_TypeLabel"
runat="server" Font-Size="10pt" ForeColor="Black" Text='<%# Eval("TQ_Type") %>'></asp:Label><span><span
style="font-size: 10pt; color: black">难度:</span><asp:Label ID="TQ_DifficultyLevelLabel"
runat="server" Font-Size="10pt" ForeColor="Black" Text='<%# Eval("TQ_DifficultyLevel") %>'></asp:Label></span> <span style="font-size: 10pt; color: darkgray">
<asp:LinkButton ID="lbtnDelete" runat="server" CommandArgument='<%# Eval("TQ_QuestionID") %>'
CommandName="Delete" OnClientClick="javascript:return confirm('你确定要删除吗?');" Visible='<%# (Eval("TQ_UserID").ToString()==Session["userID"].ToString()||Session["UserType"].ToString() == "admin")?true:false %>'>删除</asp:LinkButton>
<asp:LinkButton ID="lbtnEdit" runat="server" CommandArgument='<%# Eval("TQ_QuestionID") %>'
CommandName="Edit" Visible='<%# (Eval("TQ_UserID").ToString()==Session["userID"].ToString()||Session["UserType"].ToString() == "admin")?true:false %>'>编辑</asp:LinkButton>
</span>
</td>
</tr>
</table>
</ItemTemplate>
<SeparatorStyle BorderColor="#FFC0C0" />
<SeparatorTemplate>
<table border="0" height="1" style="border-bottom: gray thin dashed" width="100%">
<tr>
<td height="1" style="width: 100px">
</td>
</tr>
</table>
</SeparatorTemplate>
<FooterTemplate>
<asp:Button ID="btnAllSelect" runat="server" OnClick="btnAllSelect_Click" Text="全选" />
<asp:Button ID="btnCancelSelect" runat="server" Text="反选" Visible="False" />
<asp:Button ID="btnDeleteAll" runat="server" OnClick="btnDeleteAll_Click" Text="删除" />
</FooterTemplate>
<HeaderTemplate>
<asp:Button ID="btnShowAnswer" runat="server" OnClick="showAnswer_Click" Text="显示答案" />
</HeaderTemplate>
</asp:DataList></td>
</tr>
<tr>
<td colspan="2" width="100%">
<table width="100%">
<tr>
<td align="center">
<asp:HyperLink ID="hlkFirst" runat="server" Visible="False"><<</asp:HyperLink>
<asp:HyperLink ID="hlkPre" runat="server" Visible="False">上一页</asp:HyperLink>
<asp:HyperLink ID="hlkNext" runat="server" Visible="False">下一页</asp:HyperLink>
<asp:HyperLink ID="hlkLast" runat="server" Visible="False">>></asp:HyperLink>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" style="height: 19px">
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -