<%@ Page Language="VB" MasterPageFile="~/portal.master" AutoEventWireup="false" CodeFile="Personal.aspx.vb" Inherits="InfoPersonal" title="個人へのお知らせ" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="msp_asp_cph1" Runat="Server">
        <link rel="stylesheet" type="text/css" href="<%=CssPath.Info%>" />
    <div id="div_info">  
        <asp:GridView ID="gv_info" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="50"
            DataKeyNames="掲示NO" OnPageIndexChanging="gv_info_PageIndexChanging" OnSorting="gv_info_Sorting"
            Width="870px" CssClass="info_Gridview"
            BorderStyle="None" CellPadding="1" GridLines="Horizontal"
        >        
        <Columns>
            <asp:TemplateField HeaderText="掲示NO" Visible="False">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("掲示NO") %>'></asp:Label>
                    <asp:Label ID="lbl_掲示種別CD" runat="server" Text='<%# Bind("掲示種別CD")%>' Visible="false"></asp:Label>
                </ItemTemplate>                
            </asp:TemplateField>
            <asp:TemplateField HeaderText="新着" SortExpression="新着掲示">
                <ItemTemplate>
                    <asp:Image ID="img_new" runat="server" ImageUrl="~/img/bbs/new.png" Width="28px" ImageAlign="Middle" />
                    <asp:Label ID="lb_new" runat="server" Text='<%# Bind("新着掲示") %>' Visible="False"></asp:Label>
                </ItemTemplate>                
                <ItemStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="未読" SortExpression="既読掲示">
                <ItemTemplate>
                    <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>
                </ItemTemplate>  
                <HeaderStyle Width="20px" />              
                <ItemStyle Width="20px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Lv" SortExpression="掲示レベル">
                <ItemTemplate>
                    <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("掲示レベル") %>'></asp:Label>
                </ItemTemplate>    
                <HeaderStyle Width="20px" />             
                <ItemStyle Width="20px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="添付" SortExpression="添付有無">
                <ItemTemplate>
                    <asp:Image ID="img_添付" runat="server" ImageUrl="~/img/bbs/tenpu.png" Width="20px" ImageAlign="Middle" />
                    <asp:Label ID="lb_添付" runat="server" Text='<%# Bind("添付有無") %>' Visible="False"></asp:Label>
                </ItemTemplate>     
                <HeaderStyle Width="20px" />           
                <ItemStyle Width="20px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="タイトル" SortExpression="掲示件名">
                <ItemTemplate>
                    <asp:LinkButton ID="title" runat="server" CommandArgument="read" CommandName="select" 
                        Text='<%# Bind("掲示件名略") %>' ToolTip='<%# Eval("掲示件名")%>'></asp:LinkButton>
                    <asp:Label ID="lb_ページ遷移_PATH" runat="server" Text='<%# Bind("ページ遷移_PATH")%>' Visible="False"></asp:Label>
                    <asp:Label ID="lb_ページ遷移_機能CD" runat="server" Text='<%# Bind("ページ遷移_機能CD")%>' Visible="False"></asp:Label>
                    <asp:Label ID="lb_ページ遷移_KEYCD" runat="server" Text='<%# Bind("ページ遷移_KEYCD")%>' Visible="False"></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" Width="300px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載者" SortExpression="掲示者略">
                <ItemTemplate>
                    <asp:Label ID="lb_掲示者" runat="server" Text='<%# Bind("掲示者略") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" Width="200px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載開始日" SortExpression="掲示開始日">
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("掲示開始日", "{0:yyyy/MM/dd}") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="75px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載終了日" SortExpression="掲示終了日">
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("掲示終了日", "{0:yyyy/MM/dd}") %>'></asp:Label>
                </ItemTemplate>                
                <ItemStyle Width="75px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="未読処理" SortExpression="未読処理">
                <ItemTemplate>
                    <asp:LinkButton ID="lb_未読処理" runat="server" CommandArgument="Unread" CommandName="select" Text='<%# Bind("未読処理") %>'></asp:LinkButton>
                </ItemTemplate>                 
                <ItemStyle Width="60px" />
            </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>

