<?php $this->load->view('header_front'); 
 $this->load->view('security_front'); 
foreach($footer_data1 as $val_profile)
{
$can_image=$val_profile->image;
}
//get compnay name
foreach($profile as $val_employeeprofile)
{
$cname=$val_employeeprofile->cname;
}
?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/tcal.css" />
<script type="text/javascript" src="<?php echo base_url();?>assets/js/tcal.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.4.1.min.js"></script>
<script language="javascript" type="text/javascript">
function getvalue(country_id)
{

	if(country_id!="-1"){
		loadData('state',country_id);
		$("#city_dropdown").html("<option value='-1'>Select city</option>");	
	}else{
	
		$("#state_dropdown").html("<option value='-1'>Select state</option>");
		$("#city_dropdown").html("<option value='-1'>Select city</option>");		
	}
}

function selectCity(state_id){
	if(state_id!="-1"){
		loadData('city',state_id);
	
	}
	else{
		$("#city_dropdown").html("<option value='-1'>Select city</option>");		
	}
}

function loadData(loadType,loadId)
{
	var dataString = 'loadType='+ loadType +'&loadId='+ loadId;
	//alert(dataString);
	$("#"+loadType+"_loader").show();
    $("#"+loadType+"_loader").fadeIn(400).html('Please wait... <img src="<?php echo base_url();?>assets/images/loading.gif" />');
	$.ajax({
		type: "POST",
		url: "<?php echo base_url();?>manage/loadData?"+dataString,
		data: dataString,
		cache: false,
		success: function(result)
		{
			$("#"+loadType+"_loader").hide();
			$("#"+loadType+"_dropdown").html("<option value='-1'>Select "+loadType+"</option>");  
			$("#"+loadType+"_dropdown").append(result);  
		}
	});
}
</script>
  
		 
		 <div class="reports-section margin-top-30">
            	<div class="container">
                	<div class="activity-reports-section add-job">
                    	<h3>View Job Ad </h3>
                    </div>
                    <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left" action="<?php base_url();?>update_job_details" method="post" name="loginform" onSubmit="return add_job_details()"  enctype="multipart/form-data">
<?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;
}
?>
	<input type="hidden" name="image" id="image" value="<?php echo $can_image;?>" />
	<input type="hidden" value="<?php echo $val->job_id; ?>" name="job_id" id="job_id" >
                    <div class="row">
                    	<div class="col-md-6">
                            <div class="add-job-section">
                                <label><strong>Company Name:</strong></label>
                                <label><?php echo $cname;?></label><br />
								<label><?php
if($can_image!='')
{?>
		 <a href="#"><img src="<?php echo base_url();?>assets/upload/<?php echo $can_image;?>" style="width:195px;padding: 5px;"/></a>
										<?php }
										else
										{?>
		<!-- <a href="#"><img src="<?php echo base_url();?>assets_front/images/JNJUKWebLogo.png" alt="logo-image" style="width:195px;padding: 5px;" ></a>-->								
										<?php }
										?></label>
                            </div>
                        </div>
                        
                        
                    </div><br />
                    
                                            <div class="tab-recruiter margin-top-45 mobile-space" style="width:75% margin-top: auto">
                            <table width="100%" class="table">
                            	<tr>
                                <td style=" font-weight: bold; font-size: larger;">Job Details</td>
                                </tr>
                            	<tr>
                                <td ><strong>Job Title:</strong></td>
                                <td style="text-align:right"><?php echo $val->job_title;?></td>
                                </tr>
                                <tr>
                                <td ><strong>Job Details:</strong><br/><?php echo $val->job_des;?></td>
                                <td></td>
                                </tr>
                               
                                <tr>
                                <td ><strong>Job Type:</strong></td>
                                <td style="text-align:right"> <?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 ><strong>Gender:</strong></td>
                                <td style="text-align:right">	<?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 ><strong>Experience:</strong></td>
                                <td style="text-align:right"><?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 ><strong>Career Level:</strong></td>
                                <td style="text-align:right">
				<?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 ><strong>Total Positions:</strong></td>
                                <td style="text-align:right"><?php echo $val->total_postions." Position Available";?></td>
                                </tr>
                                <tr>
                                <td ><strong>Job Shift:</strong></td>
                                <td style="text-align:right"><?php if($val->job_shift==1){ ?>
                                                           
															<?php echo "First Shift (Day)";}
															if($val->job_shift==2){?>
                                                            
															<?php echo "Night Shift (Night)";
                                                            }?></td>
                                </tr>
                                <tr>
                                <td ><strong>Age:</strong></td>
                                <td style="text-align:right"><?php if($val->fage!=0){ echo 'Age '.' '.$val->fage.' ','To'.' '.$val->tage;}?></td>
                                </tr>
                                <tr>
                                <td ><strong>Degree Title:</strong></td>
                                <td style="text-align:right"><?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 ><strong>Job Exp Date:</strong></td>
                                <td style="text-align:right"><?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 style=" font-weight: bold; font-size: larger;">Salary Details</td>
                                <td></td>
                                </tr>
                                <tr>
                                <td ><strong>Salary Details:</strong></td>
<td style="text-align:right"><?php echo 'From'.' '.$val->job_salary_from.' '.$currency,'To'.' '.$val->job_salary_to.' '.$currency.' '.$perday;?></td>
                                </tr>
                                <tr>
                                <td ><strong>Additional Salary Info:</strong></td>
                                <td style="text-align:right"><?php echo $val->job_salary_info;?></td>
                                </tr>
                                <tr>
                                <td style=" font-weight: bold; font-size: larger;">Job Location</td>
                                <td></td>
                                </tr>
                                <tr>
                                <td ><strong>Country:</strong></td>
                                <td style="text-align:right"><?php
	echo $val->job_location_id;
	?></td>
                                </tr>
                                <tr>
                                <td ><strong>State:</strong></td>
                                <td style="text-align:right">
	<?php
	echo $val->state;
	?>
	</td>
                                </tr>
                                <tr>
                                <td ><strong>City:</strong></td>
                                <td style="text-align:right"><?php
	echo $val->city;
	?></td>
                                </tr>
                                <tr>
                                <td ><strong>Postalcode:</strong></td>
                                <td style="text-align:right"><?php echo $val->job_postalcode;?></td>
                                </tr>
                                <tr>
                                <td style=" font-weight: bold; font-size: larger;">Contact details</td>
                                <td></td>
                                </tr>
                                <tr>
                                <td ><strong>First Name:</strong></td>
                                <td style="text-align:right"><?php echo $val->job_contact_fname;?></td>
                                </tr>
                                <tr>
                                <td ><strong>Last Name:</strong></td>
                                <td style="text-align:right"><?php echo $val->job_contact_lname;?></td>
                                </tr>
                                <tr>
                                <td ><strong>Email:</strong></td>
                                <td style="text-align:right"><?php echo $val->job_refernce;?></td>
                                </tr>
                                <tr>
                                <td ><strong>Telephone:</strong></td>
                                <td style="text-align:right"><?php echo $val->telephone;?></td>
                                </tr>
                                <tr>
                                <td ><strong>Address:</strong></td>
                                <td style="text-align:right"><?php echo $val->address;?></td>
                                </tr>
                                <tr>
                                <td style=" font-weight: bold; font-size: larger;">Sectors</td>
                                <td></td>
                                </tr>
                                <tr>
                                <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))
	{
	//get names indutereos
	$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 $fethch_induteries['jobs_category_title'].', ';
	}
	?></td>
                                <td style="text-align:right"></td>
                                </tr>
                                
                            </table>
                    </div>
                </div>
                
                
                
<?php
}
?>
          
                </form>
            </div>
         </div>
            </div></br>

<?php $this->load->view('footer_front'); ?>