<%@ page extends="oneit.servlets.jsp.JSPInclude" %>

<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>

<%
    Job     job         =   (Job) process.getAttribute("Job");
    String  tabNumber   =   (String)  getData(request, "TabNumber");
    String  firstTab    =   WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
    String  secondTab   =   WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_GRID);
%>

<oneit:dynIncluded>
    <script language="Javascript">
        function updateOrder(s) {
            alert(s.value);
//            $('#changeJobStatu
//            
//            sBtn').click();
        }
    </script>
    <div class="main-applicants-filter main-shortlist-filter">
        <div class="appli-list-shorting main-shortlist">
            <div class="appli-shorting-dropdown appli-left">
                <span class="appli-order-label">Bulk Update</span>
                <select class="form-control">
                    <option>Interview</option>
                </select>
            </div>
            <div class="appli-filter">
                <ul class="">
                    <li class="lable-appli-shorting">View</li>
                    <li class="<%= (tabNumber == "1" ? "active" : "" ) + " short-list"%>">
                            <oneit:button   value="List"   name="gotoPage" skin="link"
                            requestAttribs="<%= CollectionUtils.mapEntry("nextPage", firstTab)
                                                            .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                            .toMap() %>"/>
                    </li>
                    <li class="<%= (tabNumber == "2" ? "active" : "" ) + " grid-list"%>">
                            <oneit:button   value="Grid"   name="gotoPage" skin="link"
                            requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
                                                            .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                            .toMap() %>"/>
                    </li>
                </ul>
            </div>
            <div class="appli-shorting-dropdown">
                <span class="appli-order-label">Export</span>
                <select class="form-control">
                    <option>PDF</option>
                    <option>CSV</option>
                    <option>XML</option>
                </select>
            </div>
            <div class="appli-shorting-dropdown">
                <span class="appli-order-label">order by</span>
                <select onChange="updateOrder(this)" class="form-control"   id="sortOrder">
                    <option>Suitability</option>
                    <option>Newest</option>
                    <option>Oldest</option>              
                </select>
            </div>
        </div>
    </div>
</oneit:dynIncluded>

