<?php $this->load->view('header');?>
<?php //echo'<pre>';print_r($job_code);exit;?>
<script>
    function validate_frm(){
       job_code=eval("document.jobfrom.job_code.value");
       if (trim(job_code)==""){
               
                alert("Please select job code");
                eval("document.detailsForm.job_code.focus()");
                return false;                
       }
            $('#jobfrom').submit();
            
    }
    function download_excel(){
        alert(document.f1.download.length());
    }
    
	
</script>
<div>
    <table border="1" cellspacing="3" cellpadding="1" align="center" style="border-collapse:collapse;margin-top:100px" bordercolor="#9E9A9F" width="1000">
<tr>
    <td align="center" colspan="2" bgcolor="#827D83" height="40">
        <div style="font-size:21px;color:#ffffff"><strong>HOME</strong>
        </div>
    </td>
</tr>
</table>
<br><br>
<div style="padding-left: 31%">
<div style="padding-left: 9.6%;padding-bottom: 2%"><h4>Select the job code and click download to download the profiles</h4></div>
 <form method="post" name="jobfrom" id="jobfrom" action="<?php echo WEB_URL;?>login/download_excel">
<table border="0" cellspacing="0" cellpadding="0" width="700" align="center" >
 
    <tr>

    <td width="30"> <select name="job_code" style="background:#efefef;border:1px solid #cccccc;width:auto;">
            <option value="">Job Code..</option>
            <?php foreach  ($job_code as $code){?>
            <option value="<?php echo $code->job_name;?>"><?php echo $code->job_name;?></option>
            <?php }?>
        </select> </td>
        <td> &nbsp;&nbsp;</td>
        <td>                                                           
       <a id="" class="btn-cta" onclick="return validate_frm()" href="javascript:void(0)"><span>Download</span></a>                                                        
      </td>


</tr>

</table>
     </form>
</div>
</div>