?? 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 + -