<%@ 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.VIEW_APPLICANTS);
    String  secondTab       =   WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
    String  thirdTab        =   WebUtils.getSamePageInRenderMode(request, WebUtils.UNSUITABLE_APPS);
    int     closingInDays   =   DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), job.getApplyBy());

%>

<oneit:dynIncluded>

    <oneit:dynInclude   page="/extensions/applicantportal/inc/multifieldtext.jsp"   data="<%= CollectionUtils.EMPTY_MAP%>"/>
    
    <div class="first-part">
        
        <oneit:dynInclude   page="/extensions/adminportal/inc/job_title_bar.jsp"   data="<%= CollectionUtils.EMPTY_MAP%>"/>
        
        <div class="int-timeline">
            <ul>
                <li class="<%= tabNumber == "1" ? "active" : "" %>">
                    <oneit:button   value=" "   name="gotoPage" skin="link"
                                    requestAttribs="<%= CollectionUtils.mapEntry("nextPage", firstTab)
                                                                    .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                    .toMap() %>">
                        <span>
                            <oneit:toString value="<%= job.getNoOfCandidatesApplied() %>"   mode="Integer" />
                        </span>
                        Applicants
                    </oneit:button>
                </li>
                <li class="<%= tabNumber == "2" ? "active" : "" %>">
                    <oneit:button   value=" "   name="gotoPage" skin="link"
                                    requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
                                                                    .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                    .toMap() %>">
                        <span>
                            <oneit:toString value="<%= job.getNoOfCandidatesShortlisted() %>"   mode="Integer" />
                        </span>
                        Shortlist
                    </oneit:button>
                </li>
            </ul>
        </div>      
        <div class="unsutable <%= tabNumber == "3" ? "active" : "" %>">
            <oneit:button   value=" "   name="gotoPage" skin="link"
                            requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdTab)
                                                            .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                            .toMap() %>">
                <span>
                    <oneit:toString value="<%= job.getNoOfCandidatesUnsuitable() %>"   mode="Integer" />
                </span>
                Unsuitable
            </oneit:button>
        </div>      
    </div>
                            
</oneit:dynIncluded>

