<%@ 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" %>

<oneit:dynIncluded>
<%
    ObjectTransaction   objTran     =   process.getTransaction ();
    Job[]               jobs        =   Job.SearchByAll().search(transaction);
    String              nextPage    =   WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
    String              homePage    =   WebUtils.getSamePageInRenderMode(request, WebUtils.ADMIN_HOME);
%>
    <div class="dashboard-content-area second-part">
        <div class="jobs-list-shorting">
            <div class="d-job-title all-jobs-title">All Jobs</div>
            <div class="job-filter">
                <ul class="">
                    <li class="lable-job-shorting">showing</li>
                    <li class="active"><a href="#">ALL JOBS</a></li>
                    <li><a href="#">OPEN</a></li>
                    <li><a href="#">COMPLETE</a></li>
                    <li><a href="#">DRAFT</a></li>
                </ul>
            </div>
            <div class="shorting-dropdown">
                <span class="order-label">order by</span>
                <select class="form-control select2-hidden-accessible" tabindex="-1" aria-hidden="true">
                    <option>Alphabetical (A-Z)</option>
                    <option>Alphabetical (Z-A)</option>
                </select><span class="select2 select2-container select2-container--default select2-container--below" dir="ltr" style="width: 159px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-ujdo-container"><span class="select2-selection__rendered" id="select2-ujdo-container" title="Alphabetical (A-Z)">Alphabetical (A-Z)</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
            </div>
        </div>
        <div class="main-job-list">
        <%
            for(Job job: jobs)
            {
        %>
                <div class="job-list">
                    <div class="job-post jl-c eq-second-height" style="height: 107px;">
                        <div class="job-post-name"><oneit:toString value="<%= job.getJobTitle() %>" mode="EscapeHTML" /></div>
                        <div class="job-company-name">
                            <span class="superlaw">SUPERLAW</span>
                            <span class="calendar"><oneit:toString value="<%= job.getDaysTillClose() %>"    mode="EscapeHTML"/></span>
                        </div>
                    </div>
                    <div class="job-application jl-c eq-second-height" style="height: 107px;">
                        <div class="ja-icon"><img src="images/job-list-user.png"></div>
                        <div class="ja-count">
                            <oneit:toString value="<%= job.getNoOfCandidatesApplied() %>"   mode="EscapeHTML"   nullValue="0"/>
                            <span>Applicants</span>
                        </div>
                    </div>
                    <div class="job-shortlisted jl-c eq-second-height" style="height: 107px;">
                        <div class="ja-icon"><img src="images/circle.png"></div>
                        <div class="ja-count">
                            2/5
                            <span>shortlisted</span>
                        </div>
                    </div>
                    <div class="job-states jl-c">
                        <select class="form-control status-img select2-hidden-accessible" tabindex="-1" aria-hidden="true">
                            <option data-image="images/active.png">Active</option>
                            <option data-image="images/complete.png">Completed</option>
                            <option data-image="images/shortlisted.png">Shortlisted</option>
                        </select>
                    </div>
                </div>
        <%
            }
        %>
        </div>
    </div>
</oneit:dynIncluded>
