<%@ Page Language="VB" MasterPageFile="~/mobile.master" AutoEventWireup="false" CodeFile="PublicSP.aspx.vb" Inherits="mobile_info_PublicSP" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="msp_asp_cph1" Runat="Server">

    <div id="div_info_public" class="adaptiveWidth500">                       

        <asp:GridView ID="gv_info_public" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="20"
            DataKeyNames="掲示NO" OnPageIndexChanging="gv_info_public_PageIndexChanging" OnSorting="gv_info_public_Sorting"
            CssClass="grv_info"
            BorderStyle="solid" CellPadding="1" GridLines="Both"  
        >            
        <Columns>
            <asp:TemplateField HeaderText="タイトル" SortExpression="掲示件名">
                <ItemTemplate>
                    <table Class="grv_info">
                        <tr>
                            <td>
                                <asp:Image ID="img_new" runat="server" ImageUrl="~/img/bbs/new.png" Width="28px" ImageAlign="Middle" />
                                <asp:Image ID="img_添付" runat="server" ImageUrl="~/img/bbs/tenpu.png" Width="20px" ImageAlign="Middle" />
                                <asp:Label ID="lb_レベル" runat="server" Text='<%# Bind("掲示レベル") %>'></asp:Label>
                                <asp:LinkButton ID="title" runat="server" CommandArgument="read" CommandName="select" Text='<%# Bind("掲示件名略") %>'></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:right;height:22px;">
                                 <asp:Label ID="Lb_掲示者" runat="server" Text='<%# Bind("掲示者略") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>                    
                </ItemTemplate>                
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載日" SortExpression="掲示開始日">
                <ItemTemplate>
                    <table Class="grv_info">
                        <tr>
                            <td style="vertical-align:top;">
                                <asp:Label ID="lbl_掲示開始日" runat="server" Text='<%# Bind("掲示開始日", "{0:yyyy/MM/dd}") %>'></asp:Label>
                                <asp:Label ID="lbl_掲示終了日" runat="server" Text='<%# Bind("掲示終了日", "{0:～yyyy/MM/dd}")%>'></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:right;height:22px;">
                                <asp:LinkButton ID="lb_未読処理" runat="server" CommandArgument="Unread" CommandName="select" 
                                    Text='<%# Bind("未読処理") %>'></asp:LinkButton>
                            </td>
                        </tr>
                    </table>      
                </ItemTemplate>                
            </asp:TemplateField>
            <asp:TemplateField Visible="False">
                <ItemTemplate>     
                    <%-- 非表示 --%>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("掲示NO") %>'></asp:Label>
                    <asp:Label ID="lb_new" runat="server" Text='<%# Bind("新着掲示") %>' Visible="False"></asp:Label>
                    <asp:Image ID="img_未読" runat="server" ImageUrl="~/img/bbs/midoku.png" Width="20px" ImageAlign="Middle" />
                    <asp:Label ID="lb_未読" runat="server" Visible="False" Text='<%# Bind("既読掲示") %>'></asp:Label>  
                    <asp:Image ID="img_lv" runat="server" Width="13px" ImageAlign="Middle" Visible="False"/>                  
                    <asp:Label ID="lb_img_path" runat="server" Text='<%# Bind("IMG_PATH") %>' Visible="False"></asp:Label>                    
                    <asp:Label ID="lb_添付" runat="server" Text='<%# Bind("添付有無") %>' Visible="False"></asp:Label>
                </ItemTemplate>                
            </asp:TemplateField>            
        </Columns>
            <EmptyDataTemplate>
                &nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label8" runat="server" Text="表示する連絡事項はありません。"></asp:Label>
            </EmptyDataTemplate>
            <HeaderStyle CssClass="info_header"/>
            <RowStyle CssClass="info_row" Height="25px"/>
            <EmptyDataRowStyle CssClass="info_empty"/>
            <SelectedRowStyle BackColor="#EEEEEE" />            
            <PagerStyle CssClass="GridViewPager" />
            <AlternatingRowStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="#D8D8D8" />
        </asp:GridView>
       </div>
       
</asp:Content>
