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


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

    <div id="div_info" class="adaptiveWidth500">       
                
        <asp:GridView ID="gv_info" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="20"
            DataKeyNames="掲示NO" OnPageIndexChanging="gv_info_PageIndexChanging" OnSorting="gv_info_Sorting"
            CssClass="grv_info"
            BorderStyle="solid" CellPadding="1" GridLines="both"
        >        
        <Columns>
            <asp:TemplateField HeaderText="科目名" SortExpression="掲示件名略">      <%-- 2014.4.22 授業名⇒科目名 --%>
                <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="対象予定区分" runat="server" Text='<%# Bind("対象予定区分") %>'></asp:Label>
                                &nbsp;
                                <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="Label2" runat="server" Text='<%# Bind("期間") %>'></asp:Label>
                                <asp:Label ID="Label6" runat="server" Text='<%# Bind("曜日時限") %>'></asp:Label>
                                <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="Label4" runat="server" Text='<%# Bind("対象予定開始日", "{0:yyyy/MM/dd}") %>'></asp:Label>
                                <asp:Label ID="Label5" 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" />
                    <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>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("科目CD") %>'></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>

