<%@ Page language="c#" Codebehind="List.aspx.cs" AutoEventWireup="false" Inherits="SampleCS.Reply.List" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>List</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body leftMargin="0" topMargin="0" MS_POSITIONING="FlowLayout">
<form id="List" method="post" runat="server">
<h3>답변 게시판</h3>
<FONT face="굴림">
<P><FONT style="FONT-SIZE: 9pt; COLOR: #ff0000">글 목록 - Q&A 게시판입니다. 자유롭게
의견을 나눠주세요.</FONT>
<HR width="100%" SIZE="1">
<P align="center">
</FONT>
<asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False" BorderStyle="None" PageSize="5"
AllowPaging="True" CellPadding="4" BackColor="White" BorderWidth="1px" BorderColor="#3366CC">
<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" BackColor="#003399"></HeaderStyle>
<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="제 목">
<HeaderStyle Width="350px"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
<ItemTemplate>
<%#funcStep(DataBinder.Eval(Container.DataItem, "Step"))%>
<asp:HyperLink ID="linkTitle" Runat="server" NavigateUrl='<%#funcLink(DataBinder.Eval(Container.DataItem, "Num"))%>' Text='<%#DataBinder.Eval(Container.DataItem, "Title")%>'>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="Name" HeaderText="작성자">
<HeaderStyle Width="70px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="PostDate" HeaderText="작성일" DataFormatString="{0:yyyy-MM-dd (tt hh:mm)}">
<HeaderStyle Width="150px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ReadCount" HeaderText="읽음">
<HeaderStyle Width="50px"></HeaderStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<P align="center"><FONT face="굴림"> </FONT>
<asp:dropdownlist id="SearchField" runat="server">
<asp:ListItem Value="Name">이름</asp:ListItem>
<asp:ListItem Value="Title">제목</asp:ListItem>
<asp:ListItem Value="Content">내용</asp:ListItem>
</asp:dropdownlist>
<asp:textbox id="SearchQuery" runat="server" BorderWidth="1px" BorderStyle="Solid" Height="21px"
Width="200px"></asp:textbox>
<asp:button id="btnSearch" runat="server" Text="검 색" BorderWidth="1px" BorderStyle="Solid"></asp:button></P>
<P align="center"><asp:button id="btnWrite" runat="server" BorderStyle="Groove" BorderWidth="1px" BorderColor="#404040"
Text="글쓰기" CausesValidation="False"></asp:button></P>
<P align="center"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="SearchField" Display="None"
ErrorMessage="검색할 단어를 입력하세요."></asp:requiredfieldvalidator></P>
<P align="center"><asp:validationsummary id="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"></asp:validationsummary></P>
<P><FONT face="굴림"></FONT> </P>
</FONT></FONT></form>
</body>
</HTML>