<?php $this->load->view('security'); ?>
<?php $this->load->view('header'); ?>            <!-- sidebar menu -->
<?php $this->load->view('left_bar'); ?>
           
        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            

            <div class="clearfix"></div>

            <div class="row">
			<div class="col-md-4 col-sm-4 col-xs-12" style="width: 25%;">
              <div class="x_panel tile fixed_height_320 overflow_hidden" style="display:none;">
                <div class="x_title">
                  <h2>N-JOB-N Activity Graph</h2>
                  <ul class="nav navbar-right panel_toolbox">
                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                      <ul class="dropdown-menu" role="menu">
                        <li><a href="#">Settings 1</a>
                        </li>
                        <li><a href="#">Settings 2</a>
                        </li>
                      </ul>
                    </li>
                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                    </li>
                  </ul>
                  <div class="clearfix"></div>
                </div>
                <div class="x_content">
                  <table class="" style="width:100%">
                    <tr>
                      <th style="width:37%;">
                        <p></p>
                      </th>
                      <th>
                        <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                          <p class=""></p>
                        </div>
                        <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                          <p class=""></p>
                        </div>
                      </th>
                    </tr>
                    <tr>
                      <td>
                        <canvas id="canvas1" height="140" width="140" style="margin: 15px 10px 10px 0"></canvas>
                      </td>
                      <td>
                        <table class="tile_info">
                          <tr>
                            <td>
                              <p><i class="fa fa-square blue"></i>Total Jobs</p>
                            </td>
                            <td>30%</td>
                          </tr>
                          <tr>
                            <td>
                              <p><i class="fa fa-square green"></i>Active Jobs</p>
                            </td>
                            <td>10%</td>
                          </tr>
                          <tr>
                            <td>
                              <p><i class="fa fa-square purple"></i>Short Listed Jobs</p>
                            </td>
                            <td>20%</td>
                          </tr>
                          <tr>
                            <td>
                              <p><i class="fa fa-square aero"></i>Total Candidate's</p>
                            </td>
                            <td>15%</td>
                          </tr>
                          <tr>
                            <td>
                              <p><i class="fa fa-square red"></i>Total Recruiter's</p>
                            </td>
                            <td>30%</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </div>
              </div>
            </div>
			<div class="col-md-6 col-sm-6 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>View Job</h2>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <table class="table table-bordered" >
                      <tbody>
                  	<?php 
foreach($query as $val)
{
if($val->perday==1)
{
$perday='Per Day';
}
if($val->perday==2)
{
$perday='Per Week';
}
if($val->perday==3)
{
$perday='Per Annum';
}
$currency_value=$val->currency;
$this->db->where('skill_id',$currency_value);
$querycurrency=$this->db->get('currency');
$resultscurrency = $querycurrency->result();
foreach ($resultscurrency as $rowcurrency)
{
$currency=$rowcurrency->skill_code;
}
?>
                            <tr>
                                <td width="26%">Company Name</td>
                                <td width="74%"><?php echo $val->company_name; ?></td>
							</tr>
						  <tr>
                              <td>Company Logo</td>
							    <td><img src="<?php echo base_url();?>assets/upload/<?=$val->comapny_image;?>" width="100" height="80" /></td>
                            </tr>
						
					  <tr>
                                <td width="26%">Job Title</td>
                                <td width="74%"><?php echo $val->job_title; ?></td>
							</tr>
							<tr>
                                <td width="26%">Job Description</td>
                                <td width="74%"><?php echo $val->job_des; ?></td>
							</tr>
							<tr>
                                <td width="26%">Job Type</td>
                                <td width="74%"> <?php if($val->job_type==5){ echo "Full Time";}?>
								                 <?php if($val->job_type==4){ echo "Part Time";}?>
												 <?php if($val->job_type==2){ echo "Contract";}?>
												 <?php if($val->job_type==3){ echo "Temporary";}?>
												 <?php if($val->job_type==7){ echo "Permanent";}?>	
												 <?php if($val->job_type==1){ echo "Volunteer";}?>
												  <?php if($val->job_type==6){ echo "Other";}?>
												 							  </td>
							</tr>
                            <tr>
                              <td><b>Salary Details</b></td>
   <td> <?php echo 'From'.' '.$val->job_salary_from.' '.$currency,'To'.' '.$val->job_salary_to.' '.$currency.' '.$perday;?></td>
  </tr>
                            </tr>
							 <tr>
                              <td>Additional Salary Info</td>
                              <td><?php echo $val->job_salary_info;?></td>
                            </tr>
							 <tr>
                              <td><b>Job Location</b></td>
                              <td></td>
                            </tr>
							 <tr>
                              <td>Job Reference</td>
                              <td><?php echo $val->job_refernce;?></td>
                            </tr>
							 <tr>
                              <td>Country</td>
                              <td><?php
	echo $val->job_location_id;
	?></td>
                            </tr>
							 
							 <tr>
                              <td>State</td>
                              <td>
	<?php
	echo $val->state;
	?>
	</td>
                            </tr>
								 <tr>
                              <td>City</td>
                              <td><?php
	echo $val->city;
	?></td>
                            </tr>
							 <tr>
                              <td>Job Status</td>
                              <td><?php if($val->job_status==1){echo "Active";}?>
							      <?php if($val->job_status==2){echo "Deactivate";}?></td>
                            </tr>
							 <tr>
                              <td>PostalCode</td>
                              <td><?php echo $val->job_postalcode;?></td>
                            </tr>
							 <tr>
                              <td><b>Information About Job</b></td>
                              <td>&nbsp;</td>
                            </tr>
							 <tr>
                              <td>Gender</td>
                              <td>
								  <?php
									$get_gender = $val->gender;
									if ($get_gender == 1) 
									{ //its male ?> 
										
										<?php echo "Male"; 
									}
									elseif ($get_gender == 2) 
									{ //female ?>
										
										<?php echo "Female"; 
									}
									else
									{?>
									
									<?php echo "Doesn't matter";
									}?>
								  
								  
								  </td>
                            </tr>
							<tr>
                              <td>Min Experience</td>
                              <td><?php 
							    echo $val->exp.' '.'Years';
								if($val->exp==0){ echo "Fresh";}
                                if($val->exp==233){ echo "Less than 1 Year";}
								 if($val->exp==36){ echo "More than 35 Years ";}?></td>
                            </tr>
							<tr>
                              <td>Max Experience</td>
                              <td><?php 
							    echo $val->exp1.' '.'Years';
								if($val->exp1==0){ echo "Fresh";}
                                if($val->exp1==233){ echo "Less than 1 Year";}
								 if($val->exp1==36){ echo "More than 35 Years ";}?></td>
                            </tr>
							 <tr>
                              <td>Career Level</td>
                              <td>
		<?php 
			  if($val->carLevel==1){ echo "Not Applicable";}
              if($val->carLevel==2){echo "Internship/Apprenticeship/Graduate";}
              if($val->carLevel==3){ echo "Entry Level/Associate";}
              if($val->carLevel==4){echo "Mid-Senior Level";}
              if($val->carLevel==5){echo "Director";}
			   if($val->carLevel==6){echo "Executive";}?>
							   </td>
                            </tr>
							 <tr>
                              <td>Total Positions</td>
                              <td>
							  <?php
                             echo $val->total_postions;?></td>
                            </tr>
							 <tr>
                              <td>Job Shift</td>
                              <td> <?php if($val->job_shift==1){ echo "First Shift (Day)";}?>
							  <?php if($val->job_shift==2){ echo "Night Shift (Night)";}?></td>
                            </tr>
							 <tr>
                              <td>Age</td>
                              <td><?php if($val->fage!=0){  echo 'From'.' '.$val->fage.' ','To'.' '.$val->tage;}?></td>
                              
							  
							  </tr>
							   <tr>
                              <td>Degree Title</td>
                              <td><?php if($val->degreetitle==1){ echo "CSE/GNVQ/O levels";}
	                                    if($val->degreetitle==2){echo "A levels/advanced GNVQ";}
										if($val->degreetitle==3){echo "HND/HNC";}
										if($val->degreetitle==4){echo "University degree";}
										if($val->degreetitle==5){echo "Masters degree or higher";}
										if($val->degreetitle==6){echo "BTEC";}
										if($val->degreetitle==7){echo "City & Guides";}
										if($val->degreetitle==8){echo "Diploma";}
										if($val->degreetitle==9){echo "Senior business or technical qualification";}
										if($val->degreetitle==10){echo "PhD";}
										?></td>
                              </tr>
							<tr>
                              <td><b>Contact details</b></td>
                              <td>&nbsp;</td>  
							  </tr>
							<tr>
                              <td>First Name</td>
                              <td><?php echo $val->job_contact_fname;?></td>  
							  </tr>
							  <tr>
                              <td>Last Name</td>
                              <td><?php echo $val->job_contact_lname;?></td>  
							  </tr>
							 <tr>
                              <td>Email</td>
                              <td><?php echo $val->job_contact_email;?></td>  
							  </tr>
							  <tr>
                              <td><b>Telephone and/or Address</b></td>
                              <td>&nbsp;</td>  
							  </tr>
							  <tr>
                              <td>Telephone</td>
                              <td><?php echo $val->telephone;?></td>  
							  </tr>
							  <tr>
                              <td>Address</td>
                              <td><?php echo $val->address;?></td>  
							  </tr>
							 <tr>
                              <td>City</td>
                              <td><?php echo $val->city;?></td>  
							  </tr>
							   <tr>
                              <td>Postalcode</td>
                              <td><?php echo $val->postcode;?></td>  
							  </tr>
							   <tr>
                              <td>Expiry Date</td>
                              <td>
							  <?php 
								$date_get=$val->exp_date;
								$datearray=explode("-", $date_get);
								$year=$datearray[0];
								$month=$datearray[1];
								$day=$datearray[2];
								$orginal_date=$month."-".$day."-".$year;
								echo $orginal_date;
			 				  ?>
							  </td>  
							  </tr>
							   <tr>
                              <td>Industry Sectors</td>
                              <td>
							  <?php
							  //select catgeiries id
	$sel_catids=mysql_query("select * from njobn_industeries where job_id='".$val->job_id."'");
	while($fatch_arrya_data=mysql_fetch_array($sel_catids))
	{
	$sel_industeries=mysql_query("select * from njobn_jobs_category where jobs_category_id='".$fatch_arrya_data['industeries_id']."'");
    $fethch_induteries=mysql_fetch_array($sel_industeries);
	echo'</br>';
echo $fethch_induteries['jobs_category_title'];
	}
	?>
							  </td>  
							  </tr>
							
           <?php }?>
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
<?php $this->load->view('footer'); ?>