<?php //echo 'download_page';//echo '<pre>';print_r($profile);exit;?>
<?php 
if(!isset($_GET['ispdf'])) {
 //$today=data('y/m/d');
 //$file='profiles.xls';
$filename = "profiles".'-'.$job_id.'-'.date("Y-m-d").".xls";


// header("Content-type: application/vnd.ms-excel");

 header('Content-Type:text/xls');
 header("Content-Disposition: attachment; filename=$filename");

 }
 ?>
<table  border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse;" bordercolor="#efefef">
    <tr style="background-color: #4fb81c;color:#fff">
        <td>job Code</td>
        <td>Entered Date</td>
        <td>First Name</td>
        <td>Last Name</td>
        <td>Date of Birth</td>
        <td>Contact</td>
        
        <td>Email</td>
        <td>Current Industry</td>
        <td>Current Location</td>
        <td>Resume</td>
        <td>Profile Image</td>
        
        <td>Class 10 school name</td>
        <td>Class 10 school city</td>
        <td>Class 10 year</td>
        <td>Class 10 percentage</td>
        
        
        <td>Class 12 collage name</td>
         <td>Class 12 collage city</td>         
        <td>Class 12 year</td>
        <td>Class 12 percentage</td>
        
       
        <td>Graduation University name</td>
        <td>Graduation University city</td>
         <td>Graduation year</td>
         <td>Graduation percentage</td>
       
        <td>Employer Name</td>
        <td>Roles and Responsibilities</td>
        <td>Since working from</td>
        <td>Total Experience</td>
        <td>Name Of Course</td>
        <td>Name Of Course1</td>
        <td>Name Of Course3</td>
        <td>Product Code</td>
         <td>Training Center</td>
        <td>Center Location</td>
        <td>Mode Of delivery</td>
       
        
<!--        <td>Name Of Course</td>-->
        
    </tr>
    <?php foreach($profile as $data) {?>
    <tr>
        <td><?php echo $data->job_code;?></td>
        <td><?php  $date=$data->entry_date;
        $entred_date=explode(' ',$date);
       echo $entred_date[0]; ?></td>
        <td><?php echo $data->fname;?></td>
        <td><?php echo $data->lname;?></td>
         <td><?php echo $data->dob;?></td>
        <td><?php echo $data->mobile;?></td>
       
        <td><?php echo $data->email;?></td>
        <td><?php echo $data->industry;?></td>
        <td><?php echo $data->current_location;?></td>
        <td><a href="<?php echo WEB_DIR;?>public/resumes/<?php echo $data->resume1;?>">View</a></td>
        <td> <?php if ($data->profile_pick_name!=''){?>
            <a href="<?php echo WEB_DIR;?>public/resumes/<?php echo $data->profile_pick_name;?>">View</a>
            <?php } else {?>
            <a>No Image</a>
            <?php }?>
        </td>
        
        <td><?php echo $data->school;?></td>
        <td><?php echo $data->school_city;?></td>        
        <td><?php echo $data->school_year;?></td>
        <td><?php echo $data->class10_p;?> %</td>
       
        <td><?php echo $data->college_name;?></td>
        <td><?php echo $data->college_city;?></td>
        <td><?php echo $data->college_year;?></td>
         <td><?php echo $data->class12_p;?> %</td>
        
        
        <td><?php echo $data->univercity_name;?></td>
        <td><?php echo $data->univercity_city;?></td>
        <td><?php echo $data->graduation_year;?></td>
        <td><?php echo $data->graduation_p;?>%</td>
        
        <td><?php echo $data->employer_name;?></td>
        <td><?php echo $data->roles_responsibilitie;?></td>
        <td><?php echo $data->datepickerexp_frm;?></td>
        <td><?php echo $data->total_exp_year;?> year<?php if ($data->total_exp_month!='0' && $data->total_exp_month=NUll){echo '/'.$data->total_exp_month.'months';}?></td>
        <td><?php echo $data->course_name;?></td>
        <td><?php echo $data->course_name1;?></td>
        <td><?php $course_name=$this->jodoffer->course_name($data->course_name2);
        echo $course_name[0]->solution_long_text;?></td>
        <td><?php echo $data->course_name3;?></td>
        <td><?php echo $data->training_center_name;?></td>
        <td><?php echo $data->center_location;?></td>
        <td><?php echo $data->modeofdelivery;?></td>
        
        
        
        
        
    </tr>
    <?php }?>
</table>