<%@ Page Language="VB" MasterPageFile="~/portal.master" AutoEventWireup="false" CodeFile="Class.aspx.vb" Inherits="InfoClass" 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">
            <link rel="stylesheet" type="text/css" href="<%=CssPath.Info%>" />
    <div id="div_info">       
        
        <div id="info_div_search_btn">
            <uc:TitleBar ID="uc_TitleBar_検索" Mode="search" Text="検索条件で絞り込む" runat="server" />             
        </div>        
        <div id="info_div_search">
            <div style="height:30px; vertical-align:middle; border-bottom: solid 1px #CCCCCC">
                <asp:Label ID="Label2" runat="server" Text="自分宛て検索："></asp:Label>
                
                <asp:CheckBox ID="cb_自分宛て検索" runat="server" EnableViewState="False" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                
                <asp:Label ID="Label6" runat="server" Text="ワード検索："></asp:Label>
                <asp:TextBox ID="tb_WORD検索" runat="server" CssClass="input" Width="200px" MaxLength="25"></asp:TextBox>
            </div>
            <asp:Button ID="btn_検索" runat="server" Text="検索・絞り込み" CssClass="input_button" Width="125px" Height="25px" />
        </div>
        
        <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>
                </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="掲示レベル" Visible="False">
                <ItemTemplate>
                    <asp:Image ID="img_lv" runat="server" Width="13px" ImageAlign="Middle" />
                    <asp:Label ID="lb_img_path" runat="server" Text='<%# Bind("IMG_PATH") %>' Visible="False"></asp:Label>
                </ItemTemplate>                
                <ItemStyle Width="15px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="添付" SortExpression="添付有無" Visible="False">
                <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:Label ID="対象予定区分" runat="server" Text='<%# Bind("対象予定区分") %>'></asp:Label>
                </ItemTemplate>                
                <ItemStyle Width="60px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="科目CD" SortExpression="科目CD">
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("科目CD") %>'></asp:Label>
                </ItemTemplate>                
                <ItemStyle Width="45px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="回" SortExpression="掲示件名略">      <%-- 2014.4.22 授業名⇒科目名 --%>
                <ItemTemplate>
                    <asp:LinkButton ID="title" runat="server" CommandArgument="read" CommandName="select" Text='<%# Bind("掲示件名略") %>' ></asp:LinkButton>
                </ItemTemplate>                
                <ItemStyle HorizontalAlign="Left" Width="200px" />
            </asp:TemplateField>
<%--            <asp:TemplateField HeaderText="期間" SortExpression="期間">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("期間") %>'></asp:Label>
                </ItemTemplate>               
                <ItemStyle Width="35px" />
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="主担当教員" SortExpression="掲示者略" Visible="False">
                <ItemTemplate>
                    <asp:Label ID="Lb_掲示者" runat="server" Text='<%# Bind("掲示者略") %>'></asp:Label>
                </ItemTemplate>                
                <ItemStyle HorizontalAlign="Left" Width="100px"/>
            </asp:TemplateField>
<%--            <asp:TemplateField HeaderText="曜日時限" SortExpression="曜日時限">
                <ItemTemplate>
                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("曜日時限") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
            </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: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>

