-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoticelist.aspx
More file actions
50 lines (48 loc) · 3.47 KB
/
Noticelist.aspx
File metadata and controls
50 lines (48 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<%@ Page Title="" Language="C#" MasterPageFile="~/Community.master" AutoEventWireup="true" CodeFile="Noticelist.aspx.cs" Inherits="Noticelist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width:100%">
<tr>
<td style="text-align:left; vertical-align:top" colspan="2">
<asp:Label runat="server" ID="lblTitle" BackColor="#F78181" Font-Size="24px" Text="공지사항" Width="100%" Height="35px" style="font-family:'맑은 고딕'; font-weight: 700; text-align:center"></asp:Label>
</td>
</tr>
<tr>
<td style="text-align:left; vertical-align:top" colspan="2">
<asp:GridView runat="server" ID="grvBoard" AllowPaging="true" AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333"
GridLines="None" CaptionAlign="Bottom" style="font-family:'맑은 고딕'; font-size:small; width:100%" OnPageIndexChanging="grvBoard_PageIndexChanging" OnSelectedIndexChanged="grvBoard_SelectedIndexChanged">
<Columns>
<asp:BoundField DataField="no" HeaderText="번호" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center" />
<asp:HyperLinkField HeaderText="제목" DataNavigateUrlFields="no" DataNavigateUrlFormatString="Noticeshow.aspx?no={0}" DataTextField="title"
ItemStyle-Width="50%" />
<asp:BoundField DataField="name" HeaderText="이름" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="글쓴 날짜" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
<ItemTemplate> <%# Eval("uploadTime", "{0:yyyy년 MM달 dd일}") %></ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="hits" HeaderText="조회" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
</Columns>
<RowStyle BackColor="#F6CECE" />
<FooterStyle BackColor="#CCCC99" />
<PagerStyle BackColor="#F78181" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="true" ForeColor="White" />
<HeaderStyle BackColor="#F78181" Font-Bold="true" ForeColor="black" />
<AlternatingRowStyle BackColor="White" />
<SortedAscendingCellStyle BackColor="#FBFBF2" />
<SortedAscendingHeaderStyle BackColor="#848384" />
<SortedDescendingCellStyle BackColor="#EAEAD3" />
<SortedDescendingHeaderStyle BackColor="#575357" />
</asp:GridView>
</td>
</tr>
<tr>
<td style="width:80%; text-align:right; vertical-align:middle; background-color:#FBF2EF">
<asp:Label runat="server" ID="lblMessage" ForeColor="Red" Width="300px"></asp:Label>
</td>
<td style="width:20%; text-align:center; vertical-align:middle; background-color:#FBF2EF">
<asp:Button runat="server" ID="ibtnWrite" Width="130px" Height="31px" Text="작성" OnClick="ibtnWrite_Click" Visible="false" CssClass="btn btn-danger"/>
</td>
</tr>
<tr>
<td style="width:100%; height:5px; background-color:#F6CECE; text-align:center" colspan="8"></td>
</tr>
</table>
</asp:Content>