<%@ Page Language="VB" MasterPageFile="~/portal.master" AutoEventWireup="false" CodeFile="Public.aspx.vb" Inherits="InfoPublic" title="連絡事項" %>
<%@ Register Src="~/uc/uc_TitleBar.ascx" TagPrefix="uc" TagName="TitleBar" %><%-- タイトルバー --%>

<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">
        <asp:SqlDataSource ID="sql_info_public" runat="server" ></asp:SqlDataSource>
        <div id="info_div_search_btn">
            <uc:TitleBar ID="uc_TitleBar_検索" Mode="search" Text="検索する・絞り込む" runat="server" />
        </div>
        <div id="info_div_search">
            <div style="vertical-align:middle; border:solid 1px #EEEEEE; padding-left:10px;">
                <asp:CheckBox ID="cb_自分宛て検索" runat="server" 
                    style="font-size: 8pt; color: #666666;" EnableViewState="False" Text="自分宛て" />
                <br />
                <asp:Label ID="Label7" runat="server"
                    Text="対象：" style="font-size: 8pt; color: #666666"></asp:Label>
                <asp:DropDownList ID="dd_対象検索" runat="server" BorderColor="#CCCCCC" BorderWidth="1px"  BackColor="#FFFFA2" 
                    style="font-size: 8pt; font-family: メイリオ" Width="200px" 
                    DataTextField="所属名略" DataValueField="掲示対象CD" 
                    ForeColor="#333333">
                </asp:DropDownList>
                <br />
                <asp:Label ID="Label6" runat="server"
                    Text="キーワード："  style="font-size: 8pt; color: #666666"></asp:Label>
                <asp:TextBox ID="tb_WORD検索" runat="server" 
                    BorderColor="#CCCCCC" BorderWidth="1px" style="font-size: 8pt; font-family: メイリオ" Width="200px" 
                    BackColor="#FFFFA2" MaxLength="25" EnableViewState="False" 
                    ForeColor="#333333"></asp:TextBox>
                <asp:Label ID="lb_キーワード補足" runat="server"
                    Text="※掲載者・タイトル・詳細から検索できます。"  style="font-size: 8pt; color: #666666"></asp:Label>
                <br />
                <asp:Button ID="btn_検索" runat="server" Text="検索する・絞り込む" ForeColor="#333333" 
                    style="font-size:9pt; font-family:メイリオ;margin-top:15px;margin-bottom:5px;" Width="125px" Height="25px" />
            </div>
            <br />
        </div>

        <asp:GridView ID="gv_info_public" runat="server" AutoGenerateColumns="False" 
            AllowSorting="True" Font-Names="メイリオ" Font-Size="8pt" 
            Width="870px" DataKeyNames="掲示NO" BorderStyle="None" CellPadding="1" 
            GridLines="Horizontal" EnableViewState="False" style="margin-right: 7px" 
            DataSourceID="sql_info_public" AllowPaging="True" PageSize="300">
            <RowStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="#D8D8D8" />
            <EmptyDataRowStyle BorderColor="White" BorderStyle="None" />
        <Columns>
            <asp:TemplateField HeaderText="掲示NO" Visible="False">
                <ItemTemplate>
                    &nbsp;&nbsp;
                    <asp:Label ID="Label1" runat="server" Font-Size="8pt" 
                        Text='<%# Bind("掲示NO") %>'></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>
                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" 
                    HorizontalAlign="Center" VerticalAlign="Middle" Width="20px" 
                    Font-Bold="False" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" 
                    Height="25px" />
            </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 BorderColor="White" BorderStyle="Solid" BorderWidth="1px" 
                    HorizontalAlign="Center" VerticalAlign="Middle" Width="20px" 
                    Font-Bold="False" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" 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 Font-Bold="False" Width="20px" HorizontalAlign="Center" 
                    VerticalAlign="Middle" BorderColor="White" BorderStyle="Solid" 
                    BorderWidth="1px" />
                <ItemStyle BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" 
                    Width="22px" />
            </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 HorizontalAlign="Center" VerticalAlign="Middle" 
                    BorderColor="White" BorderStyle="Solid" BorderWidth="1px" Width="20px" 
                    Font-Bold="False" />
                <ItemStyle BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" 
                    Width="20px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="タイトル" SortExpression="掲示件名">
                <ItemTemplate>
                    <asp:LinkButton ID="title" runat="server" CommandArgument="read" CommandName="select" 
                        Text='<%# Bind("掲示件名略") %>' ForeColor="#2E6CBA"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Font-Bold="False" HorizontalAlign="Left" VerticalAlign="Middle" 
                    Width="300px" BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                <ItemStyle BorderStyle="None" HorizontalAlign="Left" VerticalAlign="Middle" 
                    Width="300px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載者" SortExpression="掲示者">
                <ItemTemplate>
                    <asp:Label ID="Lb_掲示者" runat="server" Text='<%# Bind("掲示者略") %>' 
                        style="color: #333333"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="False" HorizontalAlign="Left" VerticalAlign="Middle" 
                    Width="200px" BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                <ItemStyle BorderStyle="None" HorizontalAlign="Left" VerticalAlign="Middle" 
                    Width="200px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載開始日" SortExpression="掲示開始日">
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" 
                        Text='<%# Bind("掲示開始日", "{0:yyyy/MM/dd}") %>' style="color: #333333"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Font-Bold="False" BorderColor="White" BorderStyle="Solid" 
                    BorderWidth="1px" />
                <ItemStyle BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" 
                    Width="75px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="掲載終了日" SortExpression="掲示終了日">
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" 
                        Text='<%# Bind("掲示終了日", "{0:yyyy/MM/dd}") %>' style="color: #333333"></asp:Label>
                </ItemTemplate>
                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" 
                    HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="False" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="未読処理" SortExpression="未読処理">
                <ItemTemplate>
                    <asp:LinkButton ID="lb_未読処理" runat="server" CommandArgument="Unread" CommandName="select" 
                        ForeColor="#2E6CBA" Text='<%# Bind("未読処理") %>'></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" 
                    Font-Bold="False" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
            </asp:TemplateField>
        </Columns>
            <EmptyDataTemplate>
                &nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label8" runat="server" style="color: #333333; font-size: 9pt" 
                    Text="表示する連絡事項はありません。"></asp:Label>
            </EmptyDataTemplate>
            <SelectedRowStyle BackColor="#EEEEEE" />
            <HeaderStyle BackColor="#616161" ForeColor="White" BorderStyle="None" />
            <AlternatingRowStyle BorderStyle="Solid" BorderWidth="1px" 
                BorderColor="#D8D8D8" />
        </asp:GridView>
       </div>
       
</asp:Content>

