<%@ Page Language="VB" MasterPageFile="~/portal.master" AutoEventWireup="false" CodeFile="AttendClass.aspx.vb" Inherits="AttendClass" %>
<%@ Register Src="~/uc/uc_InfoClass.ascx" TagPrefix="uc" TagName="InfoClass" %><%-- 授業情報 --%>

<%-- [Webフォーム]head Start --%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<%-- [Webフォーム]head End --%>

<%-- [Webフォーム]body Start --%>
<asp:Content ID="Content2" ContentPlaceHolderID="msp_asp_cph1" runat="server">
<%-- SqlDataSource Start --%>
<asp:SqlDataSource ID="sql_page" runat="server" />
<asp:SqlDataSource ID="sql_出席簿" runat="server" />
<%-- SqlDataSource End --%>
<%-- 授業情報 Start --%>
<uc:InfoClass id="uc_InfoClass" runat="server" />
<%-- 授業情報 End --%>
<%-- 出席簿 Start --%>
<div id="div_attend_pager">
    <asp:GridView
        ID="gv_Page" AllowPaging="True" AutoGenerateColumns="False"
        BorderStyle="None" DataSourceID="sql_page" EnableModelValidation="True"
        PageSize="1" ShowHeader="False" Width="193"
        runat="server"
    >
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="lb_PageNO" Visible="False" runat="server" />
                </ItemTemplate>
                <ItemStyle BorderStyle="None" />
            </asp:TemplateField>
        </Columns>
        <PagerStyle Font-Size="Larger" BorderColor="White" />
    </asp:GridView>
    <span style="clear:both;" />
</div>
<asp:GridView
    ID="gv_出欠一覧" AutoGenerateColumns="False" CellPadding="0"
    GridLines="None" style="font-size:8pt; text-align:center; clear:both;" ShowFooter="True" Width="980"
    DataSourceID="sql_出席簿" EnableViewState="False" EnableModelValidation="True" runat="server"
>
    <Columns>
        <%-- 学年 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Height="36" />
            <ItemTemplate>
                <asp:Label ID="lb_学年" Text='<%# Bind("学年") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" />
        </asp:TemplateField>
        <%-- 所属 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="65" />
            <ItemTemplate>
                <asp:Label ID="lb_所属" Text='<%# Bind("学科名") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" HorizontalAlign="Left" />
        </asp:TemplateField>
        <%-- 学籍番号 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="50" />
            <ItemTemplate>
                <asp:Label ID="lb_学籍NO" Text='<%# Bind("学籍NO") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" HorizontalAlign="Left" />
        </asp:TemplateField>
        <%-- 氏名 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="100" />
            <ItemTemplate>
                <asp:Label ID="lb_氏名" Text='<%# Bind("氏名") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" HorizontalAlign="Left" />
        </asp:TemplateField>
        <%-- ふりがな --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="140" />
            <ItemTemplate>
                <asp:Label ID="lb_ふり" Text='<%# Bind("ふり") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" HorizontalAlign="Left" />
        </asp:TemplateField>
        <%-- 在籍区分 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="45" />
            <ItemTemplate>
                <asp:Label ID="lb_区分" Text='<%# Bind("在籍区分") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" />
        </asp:TemplateField>
        <%-- 出席率 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="35" />
            <ItemTemplate>
                <asp:Label ID="lb_出席率" Text='<%# Bind("出席率") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" />
        </asp:TemplateField>
        <%-- 欠席数 --%>
        <asp:TemplateField>
            <HeaderStyle BackColor="White" Width="35" />
            <ItemTemplate>
                <asp:Label ID="lb_欠席数" Text='<%# Bind("欠席数") %>' runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" />
        </asp:TemplateField>
        <%-- 回数1列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集1" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="1" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授1" Text='<%# Bind("授1")%>' runat="server" />
                <asp:Label ID="出1" Text='<%# Bind("出1")%>' runat="server" />
                <asp:Label ID="色1" Text='<%# Bind("色1")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数2列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集2" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="2" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授2" Text='<%# Bind("授2")%>' runat="server" />
                <asp:Label ID="出2" Text='<%# Bind("出2")%>' runat="server" />
                <asp:Label ID="色2" Text='<%# Bind("色2")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数3列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集3" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="3" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授3" Text='<%# Bind("授3")%>' runat="server" />
                <asp:Label ID="出3" Text='<%# Bind("出3")%>' runat="server" />
                <asp:Label ID="色3" Text='<%# Bind("色3")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数4列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集4" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="4" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授4" Text='<%# Bind("授4")%>' runat="server" />
                <asp:Label ID="出4" Text='<%# Bind("出4")%>' runat="server" />
                <asp:Label ID="色4" Text='<%# Bind("色4")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数5列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集5" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="5" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授5" Text='<%# Bind("授5")%>' runat="server" />
                <asp:Label ID="出5" Text='<%# Bind("出5")%>' runat="server" />
                <asp:Label ID="色5" Text='<%# Bind("色5")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数6列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集6" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="6" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授6" Text='<%# Bind("授6")%>' runat="server" />
                <asp:Label ID="出6" Text='<%# Bind("出6")%>' runat="server" />
                <asp:Label ID="色6" Text='<%# Bind("色6")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数7列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集7" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="7" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授7" Text='<%# Bind("授7")%>' runat="server" />
                <asp:Label ID="出7" Text='<%# Bind("出7")%>' runat="server" />
                <asp:Label ID="色7" Text='<%# Bind("色7")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数8列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集8" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="8" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授8" Text='<%# Bind("授8")%>' runat="server" />
                <asp:Label ID="出8" Text='<%# Bind("出8")%>' runat="server" />
                <asp:Label ID="色8" Text='<%# Bind("色8")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数9列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集9" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="9" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授9" Text='<%# Bind("授9")%>' runat="server" />
                <asp:Label ID="出9" Text='<%# Bind("出9")%>' runat="server" />
                <asp:Label ID="色9" Text='<%# Bind("色9")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数10列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集10" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="10" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授10" Text='<%# Bind("授10")%>' runat="server" />
                <asp:Label ID="出10" Text='<%# Bind("出10")%>' runat="server" />
                <asp:Label ID="色10" Text='<%# Bind("色10")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数11列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集11" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="11" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授11" Text='<%# Bind("授11")%>' runat="server" />
                <asp:Label ID="出11" Text='<%# Bind("出11")%>' runat="server" />
                <asp:Label ID="色11" Text='<%# Bind("色11")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数12列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集12" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="12" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授12" Text='<%# Bind("授12")%>' runat="server" />
                <asp:Label ID="出12" Text='<%# Bind("出12")%>' runat="server" />
                <asp:Label ID="色12" Text='<%# Bind("色12")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数13列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集13" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="13" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授13" Text='<%# Bind("授13")%>' runat="server" />
                <asp:Label ID="出13" Text='<%# Bind("出13")%>' runat="server" />
                <asp:Label ID="色13" Text='<%# Bind("色13")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数14列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集14" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="14" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授14" Text='<%# Bind("授14")%>' runat="server" />
                <asp:Label ID="出14" Text='<%# Bind("出14")%>' runat="server" />
                <asp:Label ID="色14" Text='<%# Bind("色14")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
        <%-- 回数15列目 --%>
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="編集15" Text="編集" CssClass="button" CommandName="edit_cst" CommandArgument="15" runat="server" />
            </HeaderTemplate>
            <HeaderStyle Width="30" />
            <ItemTemplate>
                <asp:Label ID="授15" Text='<%# Bind("授15")%>' runat="server" />
                <asp:Label ID="出15" Text='<%# Bind("出15")%>' runat="server" />
                <asp:Label ID="色15" Text='<%# Bind("色15")%>' Visible="False" runat="server" />
            </ItemTemplate>
            <ItemStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1" VerticalAlign="Top" />
        </asp:TemplateField>
    </Columns>
    <HeaderStyle BackColor="#6B696B" />
    <FooterStyle BackColor="#6B696B" />
</asp:GridView>
<div class="vertical_space"></div>
<asp:Panel ID="pnl_empty_出席簿" Width="980" runat="server">
    <span class="accent">
        該当する出席簿は存在しません。
    </span>
</asp:Panel>
<%-- 出席簿 End --%>
</asp:Content>
<%-- [Webフォーム]body End --%>