<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Calendar.aspx.vb" Inherits="Calendar" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%-- head Start --%>
<head id="page_header" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>
    求人カレンダー
</title>
<link href="../css/common.css" rel="stylesheet" type="text/css">
</head>
<%-- head End --%>

<%-- body Start --%>
<body>
<%-- SqlDataSource Start --%>
<asp:SqlDataSource
    ID="sql_カレンダ" ConnectionString="<%$ ConnectionStrings:ConStr_PT %>" 
    SelectCommand="SPカレンダ" SelectCommandType="StoredProcedure" runat="server"
>
    <SelectParameters>
        <asp:SessionParameter SessionField="年" Name="年" ConvertEmptyStringToNull="False" Type="String" />
        <asp:SessionParameter SessionField="月" Name="月" ConvertEmptyStringToNull="False" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource
    ID="sql_カレンダ項目" ConnectionString="<%$ ConnectionStrings:ConStr_PT %>" 
    SelectCommand="SPカレンダ項目" SelectCommandType="StoredProcedure" runat="server"
>
    <SelectParameters>
        <asp:SessionParameter SessionField="年" Name="年" ConvertEmptyStringToNull="False" Type="String" />
        <asp:SessionParameter SessionField="月" Name="月" ConvertEmptyStringToNull="False" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
<%-- SqlDataSource End --%>
<form id="formC" runat="server">
    <div id="msp_div_content">
        <table>
            <tr>
                <td align="center" colspan="2">
                    <asp:Button ID="前月" Text="&nbsp;＜&nbsp;" CssClass="button" runat="server" />
                    <asp:Button ID="今月" Text="今月" CssClass="button" runat="server" />
                    <asp:Button ID="来月" Text="&nbsp;＞&nbsp;" CssClass="button" runat="server" />
                    <asp:Label ID="年月表示" Width="200px" CssClass="accent" runat="server" />
                    <asp:TextBox ID="年" Width="90" Visible = "False" runat="server" />
                    <asp:TextBox ID="月" Width="90" Visible = "False" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <span class="bold">【凡例】(応)：応募締切日　(説)：説明会実施日　(試)：試験実施日</span>
                </td>
                <td align="right">
                    <input type="button" value="&nbsp;&nbsp;閉じる&nbsp;&nbsp;" onclick="javascript: window.close();" class="button" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView
                        ID="GridView1" DataSourceID="sql_カレンダ" AutoGenerateColumns="False"
                        CssClass="timetable" runat="server"
                    >
                        <Columns>
                            <asp:TemplateField HeaderText="日">
                                <HeaderStyle ForeColor="Pink" />
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="月" >
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="火" >
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="水" >
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="木" >
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView6" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="金" >
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView7" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="土">
                                <HeaderStyle ForeColor="#66ccff" />
                                <ItemTemplate>
                                    <div id="freezingDiv" style="OVERFLOW: auto; WIDTH: 150px; HEIGHT: 130px">
                                        <asp:GridView ID="GridView8" runat="server" AutoGenerateColumns = "false" BorderWidth = "0px" >
                                            <Columns>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </ItemTemplate>
                                </asp:TemplateField>
                        </Columns>
                        <HeaderStyle BackColor="#000080" ForeColor="#FFFFFF" />
                        <RowStyle VerticalAlign="Top" />
                        <AlternatingRowStyle CssClass="alt-row" />
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Center" Font-Size="Larger" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</form>
</body>
<%-- body End --%>

</html>
