<%@ Page Language="VB" AutoEventWireup="false" CodeFile="JobSP.aspx.vb" Inherits="mobile_recruit_JobSP" MasterPageFile="~/mobile.master" %>
<%@ 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">
    <%-- script Start --%>   
    <script>        
        $(document).ready(function () {
            $('div#div_Kyujin_Schedule').css("cursor", "pointer");
            $("div#div_Kyujin_Schedule").click(function () {
                window.open('./ScheduleSP.aspx');
            });
        });
    </script>      
    <%-- script End --%>

    <%-- SqlDataSource Start --%>
    <asp:SqlDataSource ID="sds_求人一覧" runat="server"></asp:SqlDataSource>            
    <%-- SqlDataSource End --%>    

    <%-- ボタン --%>
    <div id="div_search_btn" class="buttonBig buttonBig-brown" style="width:110px; height:25px; padding-top:5px;">        
        <asp:Image ID="img_title" ImageUrl="~/img/search.png" ImageAlign="AbsMiddle" Width="20" runat="server" />
        <asp:Label ID="lbl_title" Text ="詳細検索" ClientIDMode="Static" runat="server" />        
        &nbsp;
        <asp:Image ID="Image1" ImageUrl="~/img/arrow_show_white.png" ImageAlign="AbsMiddle" Width="10" runat="server" />
    </div>
    
    <div id="div_Kyujin_Schedule" class="buttonBig buttonBig-brown" style="width:150px; height:25px; padding-top:5px;">
        <asp:Label ID="Label8" Text ="求人スケジュール" ClientIDMode="Static" runat="server" />
        &nbsp;
        <asp:Image ID="Image2" ImageUrl="~/img/popup_white.png" ImageAlign="AbsMiddle" Width="14" runat="server" />
    </div>
    
    <%-- 検索条件 Start --%>
    <div id="div_search_area" style="display:none;">
        <table class="sheet adaptiveWidth500" border="1">
            <col width="25%" />
            <col width="75%" />        
            <tr>
                <td class="header">
                    求人年度
                </td>
                <td class="detail">
                    <asp:DropDownList ID="ddl_求人年度検索" CssClass="input" Width="85" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    業種
                </td>
                <td class="detail">
                    <asp:DropDownList ID="ddl_業種CD検索" CssClass="input" Width="80%" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    職種
                </td>
                <td class="detail">
                    <asp:Listbox
                        ID="lb_職種CD検索" CssClass="input" Rows="5"
                        Width="80%" SelectionMode="Multiple" runat="server"
                    />
                    <asp:HiddenField ID="hf_職種検索" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    勤務地
                </td>
                <td class="detail">
                    <asp:Listbox
                        ID="lb_勤務地検索" CssClass="input" Rows="5"
                        Width="80%" SelectionMode="Multiple" runat="server"
                    />
                    <asp:HiddenField ID="hf_勤務地検索" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    企業名/ふりがな
                </td>
                <td class="detail">
                    <asp:TextBox ID="txt_企業名検索" Width="80%" CssClass="input" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    休日
                </td>
                <td class="detail">
                    <asp:DropDownList ID="ddl_休日検索" Width="80%" CssClass="input" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    給与
                </td>
                <td class="detail">
                    月給&nbsp;<asp:TextBox ID="txt_給与検索" Width="80" CssClass="input" style="text-align:right;" runat="server" />&nbsp;万円以上
                </td>
            </tr>
            <tr>
                <td class="header">
                    募集対象
                </td>
                <td class="detail">
                    <asp:DropDownList
                        ID="ddl_募集対象" CssClass="input" Width="80%"
                        AppendDataBoundItems="True" runat="server"
                    >
                        <asp:ListItem Value="">
                            --未指定--
                        </asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="header">
                    新着
                </td>
                <td class="detail">
                    <asp:CheckBox ID="cb_新着検索" Text="直近1週間" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    寮
                </td>
                <td class="detail">
                    <asp:CheckBox ID="cb_寮検索" Text="有り" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="header">
                    加入保険
                </td>
                <td class="detail">
                    <asp:CheckBox ID="cb_加入保険検索_健康保険" Text="健康保険" runat="server" />
                    <asp:CheckBox ID="cb_加入保険検索_厚生年金" Text="厚生年金" runat="server" />
                    <asp:CheckBox ID="cb_加入保険検索_労災保険" Text="労災保険" runat="server" />
                    <asp:CheckBox ID="cb_加入保険検索_雇用保険" Text="雇用保険" runat="server" />
                </td>
            </tr>
        </table>
        
        <table border="0" class="adaptiveWidth500">
            <tr>
                <td align="center">
                   <asp:Button ID="btn_検索" Text="&nbsp;&nbsp;検&nbsp;&nbsp;&nbsp;索&nbsp;&nbsp;" CssClass="button" runat="server" />
                   &nbsp;&nbsp;&nbsp;&nbsp;
                   <asp:Button ID="btn_クリア" Text="&nbsp;&nbsp;クリア&nbsp;&nbsp;" CssClass="button" runat="server" />
                </td>
            </tr>
        </table>        

        <hr />
    </div>
    <%-- 検索条件 End --%>
    
    <%-- エラーメッセージ Start --%>
    <asp:Label ID="lbl_Error" CssClass="error" runat="server" />
    <%-- エラーメッセージ End --%>

    <div class="vertical_space"></div>

    <%-- 並び順 Start --%>
    <div style="text-align:right;" class="adaptiveWidth500">
        <span class="bold">
            並び順：
        </span>
        <asp:DropDownList ID="ddl_SORT" Width="150" CssClass="input" AutoPostBack="True" runat="server" />
    </div>
    <%-- 並び順 End --%>
    
    <div class="vertical_space"></div>

    <%-- 求人一覧 Start --%>
    <div class="adaptiveWidth500">
        <asp:ListView ID="lsv_求人一覧" DataSourceID="sds_求人一覧" runat="server">
            <LayoutTemplate>
                <table class="list2" style="width:100%;" rules="all">
                    <colgroup style="width:20%;"></colgroup>
                    <colgroup style="width:25%;"></colgroup>
                    <colgroup style="width:35%;"></colgroup>
                    <colgroup style="width:20%;"></colgroup>
                    <tr>
                        <th>
                            <asp:Label ID="Label1" runat="server" Text="求人票"></asp:Label>
                        </th>
                        <th>
                            <asp:Label ID="Label2" runat="server" Text="求人登録日"></asp:Label>
                        </th>
                        <th>
                            <asp:Label ID="Label3" runat="server" Text="企業名"></asp:Label>
                        </th>
                        <th>
                            <asp:Label ID="Label4" runat="server" Text="募集対象"></asp:Label>
                        </th>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label ID="Label5" runat="server" Text="業種"></asp:Label>
                        </th>
                        <th colspan="2">
                            <asp:Label ID="Label6" runat="server" Text="職種"></asp:Label>
                        </th>
                        <th>
                            <asp:Label ID="Label7" runat="server" Text="給与"></asp:Label>
                        </th>
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>                    
                </table>
                <div class="vertical_space"></div>
                    <div>
                        <asp:DataPager ID="pager" runat="server" PageSize="10">
                            <Fields>
                                <asp:NumericPagerField NumericButtonCssClass="ListViewPager" CurrentPageLabelCssClass="ListViewPager" NextPreviousButtonCssClass="ListViewPager" 
                                    ButtonCount="10" ButtonType="Button" />
                            </Fields>
                        </asp:DataPager>
                    </div> 
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td class="middle center">                        
                        <%-- 求人票 --%>
                        <asp:Button ID="btn_求人票_Web" Text="Web" class="buttonBig buttonBig-blue" Width="60" Height="30" CommandName="求人票_Web" runat="server" />
                        <asp:Button ID="btn_求人票_PDF" Text="PDF" class="buttonBig buttonBig-blue" Width="60" Height="30" CommandName="求人票_PDF" runat="server" />
                    </td>
                    <td class="middle center">
                        <%-- 求人登録日 --%>
                        <asp:Label ID="lbl_登録日" Text='<%# Eval("登録日", "{0:yyyy/MM/dd}")%>' runat="server" />
                    </td>
                    <td class="middle">
                        <%-- 企業名 --%>
                        <asp:Label ID="lbl_企業名" Text='<%# Eval("企業名")%>' Visible ="False" runat="server" />
                        <asp:HyperLink ID="link_企業名" Text='<%# Bind("企業名")%>' NavigateUrl ='<%# Bind("企業HP")%>' Target="_blank" runat="server" />
                    </td>
                    <td class="middle center">
                        <%-- 募集対象 --%>
                        <asp:Label ID="lbl_募集対象" Text='<%# Eval("募集対象")%>' runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="middle center" style="border-bottom:double 3px;">
                        <%-- 業種 --%>
                        <asp:Label ID="lbl_業種" Text='<%# Eval("業種")%>' runat="server" />
                    </td>
                    <td colspan="2" class="middle" style="border-bottom:double 3px;">
                        <%-- 職種 --%>
                        <asp:Label ID="lbl_職種" Text= '<%# Eval("職種")%>' runat="server" />
                    </td>
                    <td class="middle" style="border-bottom:double 3px;">
                        <%-- 給与 --%>
                        <asp:Label ID="lbl_月給" runat="server" Text="月給" />                
                        <asp:Label ID="lbl_給与" runat="server" Text='<%# Eval("給与")%>' width="100%" style="text-align:right;" />
                        <%-- (非表示) --%>
                        <asp:Label ID="lbl_企業CD" Text='<%# Eval("企業CD")%>' Visible="False" runat="server" />
                        <asp:Label ID="lbl_拠点CD" Text='<%# Eval("拠点CD")%>' Visible="False" runat="server" />
                        <asp:Label ID="lbl_求人年度" Text='<%# Eval("求人年度")%>' Visible="False" runat="server" />
                        <asp:Label ID="lbl_枝NO" Text='<%# Eval("枝NO")%>' Visible="False" runat="server" />
                        <asp:Label ID="lbl_PDF名" Text='<%# Eval("PDF名")%>' Visible="False" runat="server" />
                    </td>
                </tr>
            </ItemTemplate>
            
            <EmptyDataTemplate>
                <asp:Label ID="lbl_empty" runat="server" class="accent" Text="該当する求人票はありません。" />
            </EmptyDataTemplate>
        </asp:ListView>
    </div>
    <%-- 求人一覧 End --%>
</asp:Content>
