📄 homebadlist.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="homebadlist.aspx.cs" Inherits="homebadlist" Title="学生寝室管理系统" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" style="width: 964px">
<tr>
<td nowrap="nowrap">
<div align="center" style="font-weight: bold; font-size: 15px; color: black">
学生寝室管理系统->寝室损坏信息</div>
</td>
</tr>
<tr>
<td nowrap="nowrap" style="font-size: 14px">
请输入要搜索的内容:<asp:TextBox ID="txtcontent" runat="server"></asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtcontent" Display="Dynamic"
ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator><asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtcontent"
Display="Dynamic" ErrorMessage="RegularExpressionValidator" ValidationExpression="^[\u4E00-\u9FA50-9]{1,3}">请输入整数和汉字(1-3)为数之间</asp:RegularExpressionValidator>搜索的范围:<asp:DropDownList
ID="DropDownList1" runat="server" Style="background-color: gainsboro">
<asp:ListItem>请选择搜索的范围</asp:ListItem>
<asp:ListItem>几栋</asp:ListItem>
<asp:ListItem>几号</asp:ListItem>
<asp:ListItem>通过审核</asp:ListItem>
<asp:ListItem>没有审核</asp:ListItem>
</asp:DropDownList> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
Text="搜索" /></td>
</tr>
<tr>
<td nowrap="nowrap" style="height: 23px">
<asp:Label ID="labmessage" runat="server" Style="font-weight: bold; font-size: 14px;
color: red"></asp:Label>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/homebadlist.aspx" Style="font-size: 15px;
color: black; text-decoration: none" Visible="False">返回首页</asp:HyperLink> <br />
<asp:Panel ID="Panel2" runat="server" Height="50px" Width="125px">
<asp:DataGrid ID="mydatagrid" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
CellPadding="3" ForeColor="Black" GridLines="Vertical" Height="84px"
PageSize="15" Style="font-size: 13px" Width="960px" OnPageIndexChanged="mydatagrid_PageIndexChanged">
<FooterStyle BackColor="#CCCCCC" />
<SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" NextPageText="下一页"
PrevPageText="下一页" />
<AlternatingItemStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundColumn DataField="homesex" HeaderText="寝室类别">
<HeaderStyle Width="60px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homeflood" HeaderText="几栋">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homehao" HeaderText="几号">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homephone" HeaderText="寝室电话">
<HeaderStyle Width="60px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homecount" HeaderText="几人间">
<HeaderStyle Width="45px" />
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="内容">
<ItemTemplate>
<div align="center">
<table border="0" style="width: 196px">
<tr>
<td nowrap="nowrap" style="width: 400px">
<div align="center">
<%#DataBinder.Eval(Container.DataItem, "content")%>
/<%#DataBinder.Eval(Container.DataItem, "datatime","{0:d}")%>-<font color="#000033">[<%#DataBinder.Eval(Container.DataItem, "username")%>]</font>书写
</div>
</td>
</tr>
</table>
</div>
</ItemTemplate>
<EditItemTemplate>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="shenhe" HeaderText="是/否审核">
<HeaderStyle Width="60px" />
</asp:BoundColumn>
</Columns>
</asp:DataGrid></asp:Panel>
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<asp:DataGrid ID="mydatagrid4" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
CellPadding="3" ForeColor="Black" GridLines="Vertical" Height="84px" OnSelectedIndexChanged="mydatagrid4_SelectedIndexChanged"
PageSize="15" Style="font-size: 13px" Width="960px" OnPageIndexChanged="mydatagrid4_PageIndexChanged">
<FooterStyle BackColor="#CCCCCC" />
<SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" NextPageText="下一页"
PrevPageText="下一页" />
<AlternatingItemStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundColumn DataField="homesex" HeaderText="寝室类别">
<HeaderStyle Width="60px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homeflood" HeaderText="几栋">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homehao" HeaderText="几号">
<HeaderStyle Width="30px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homephone" HeaderText="寝室电话">
<HeaderStyle Width="60px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="homecount" HeaderText="几人间">
<HeaderStyle Width="45px" />
</asp:BoundColumn>
<asp:TemplateColumn HeaderText="内容">
<ItemTemplate>
<div align="center">
<table border="0" style="width: 196px">
<tr>
<td nowrap="nowrap" style="width: 400px">
<div align="center">
<%#DataBinder.Eval(Container.DataItem, "content")%>
/<%#DataBinder.Eval(Container.DataItem, "datatime","{0:d}")%>-<font color="#000033">[<%#DataBinder.Eval(Container.DataItem, "username")%>]</font>书写
</div>
</td>
</tr>
</table>
</div>
</ItemTemplate>
<EditItemTemplate>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="shenhe" HeaderText="是/否审核">
<HeaderStyle Width="60px" />
</asp:BoundColumn>
</Columns>
</asp:DataGrid></asp:Panel>
<br />
<br />
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -