
<?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 src="<?php echo base_url();?>assets/vendors/jquery/dist/jquery.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="section-welcome nav-welcome">
                 <ol class="breadcrumb">
                      <li><a href="<?php echo base_url();?>front_end/employee_dashboard">Dashboard</a></li>
                      <li><a href="<?php echo base_url();?>front_end/addjob">Add Job</a></li>
                    </ol>
                  
                </div>
                	<div class="users-reports-section">
                    	<h3>Add Job</h3>
                        <div class="job_expiry">
                        	<!--<span>job expiry reminder:</span>-->
                            <ol class="breadcrumb">
							
                             <!-- <li><a href="#">ON</a></li>
                              <li><a href="#">Turn off</a></li>-->
							  <!--<li><a href="<?php echo base_url();?>front_end/manage_users">Add user</a></li>-->
                            </ol>
                        </div>
                    </div>
                    
				 <form id="demo-form2"  class="form-horizontal"  action="<?php base_url();?>add_job_details" method="post" name="loginform" onSubmit="return add_job_details3()"  enctype="multipart/form-data">
	<input type="hidden" name="image" id="image" value="<?php echo $can_image;?>" />
	<input  name="company_name" id="company_name" type="hidden"  value="<?php echo $cname;?>">
					
        
        <div class="panel panel-default" id="profileBasicinfo">
          <h3 style="text-align:center">Job details</h3>
		  <div  id="recsucccessDiv" class="reg_error" style="margin-top: 0px;margin-bottom: 9px;padding-left: 9px;"></div> 
<div  id="recerrorDiv" class="reg_error"></div> 
<div  id="recsucccessDiv" class="reg_error"></div>
          <div class="row">
            <div class="col-sm-8 col-sm-push-1">
             <div class="form-group">
                <label class="col-sm-4 control-label" for="new-password">Company Name:</label>
                <div class="col-sm-8">
				
	<input  name="company_name33" id="company_name23" type="text" class="form-control" readonly="readonly" value="<?php echo $cname;?>">
                 
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 control-label" for="new-password">Job Title:</label>
                <div class="col-sm-8">
                <input placeholder="Job Title" class="form-control" name="job_title" id="job_title" type="text"> 
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Job Description:</label>
                <div class="col-sm-8">
                 <textarea name="job_des" id="job_des" placeholder="Job Description" class="form-control"></textarea></div>
              </div>
			  
			  
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Job Type:</label>
                <div class="col-sm-8">
                  <select name="job_type" class="form-control" id="job_type"  >
								<option value="5">Full Time</option>
								<option value="4">Part Time</option>
								<option value="2">Contract</option>
								<option value="3">Temporary</option>
								<option  value="7">Permanent</option>
								<option value="1">Volunteer</option>
								<option value="6">Other</option>
    							</select></div>
              </div>
			  
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Job Status</label>
                <div class="col-sm-8">
                 <select name="job_status" class="form-control" id="job_status">
								<option value="1">Active</option>
						        <option value="2">Deactivate</option>
						         </select></div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Gender:</label>
                <div class="col-sm-8">
                  <select name="gender" class="form-control" id="gender">
	                            <option value="1">Male</option>
	                           <option value="2">Female</option>
							   <option value="3">Doesn't matter</option>
							   
                               </select>
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Min Experience:</label>
                <div class="col-sm-8"><select name="exp" class="form-control" id="exp" >
								 <option class="black" value="">Select Min Experience</option>
	                            <option class="black" value="555">Fresh</option>
<option class="black" value="233">Less than 1 Year</option>
<?php
for($i=1;$i<=35;$i++)
{?>
<option class="black" value="<?php echo $i ?>"><?php echo $i ?> Years</option>
<?php }?>
<option class="black" value="36">More than 35 Years</option>
</select>
								</div>
              </div>
			 <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Max Experience:</label>
                <div class="col-sm-8">
                 <select name="exp1" class="form-control" id="exp1">
								  <option class="black" value="">Select Max Experience</option>
	                            <option class="black" value="555">Fresh</option>
<option class="black" value="233">Less than 1 Year</option>
<?php
for($i=1;$i<=35;$i++)
{?>
<option class="black" value="<?php echo $i ?>"><?php echo $i ?> Years</option>
<?php }?>
<option class="black" value="36">More than 35 Years</option>
</select>
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Career Level:</label>
                <div class="col-sm-8">
				<select name="carLevel" class="form-control" id="carLevel">
<option  value="1">Not Applicable</option>
<option  value="2">Internship/Apprenticeship/Graduate</option>
<option  value="3" selected="">Entry Level/Associate</option>
<option  value="4">Mid-Senior Level</option>
<option  value="5">Director</option>
<option  value="6">Executive</option>

</select>
		
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Total Positions:</label>
                <div class="col-sm-8">
				
				 <select name="total_postions" class="form-control" id="total_postions">
	                           <?php
for($p=1;$p<=30;$p++)
{?>
<option  value="<?php echo $p ;?>"><?php echo $p ;?> Postions</option>
<?php }?>
                               </select>
				
				
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Job Shift:</label>
                <div class="col-sm-8">
				
				 <select name="job_shift" class="form-control" id="job_shift">
<option value="">Select</option>
<option  value="1">First Shift (Day)</option>
<option  value="2">Night Shift (Night)</option>
                               </select>
				
				
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Age(From):</label>
                <div class="col-sm-8">
				
				 <select class="form-control"  name="fage" id="fage">
							   <option value="">Select</option>
<?php
for($fage=20;$fage<=60;$fage++)
{?>
<option  value="<?php echo $fage ?>"><?php echo 'From'.' '.$fage;?></option>
<?php }?>
</select>	
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Age(To):</label>
                <div class="col-sm-8">
				
<select class="form-control"  name="tage" id="tage">
<option value="">Select</option>
<?php
for($tage=20;$tage<=60;$tage++)
{?>
<option  value="<?php echo $tage;?>"><?php echo 'To'.' '.$tage;?></option>
<?php }?>
</select>
				
				
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Degree Title:</label>
                <div class="col-sm-8">
				
				 <select  class="form-control"  name="degreetitle" id="degreetitle">
<option value="">Select</option>
	<option value="1">GCSE/GNVQ/O levels</option>
	<option value="2">A levels/advanced GNVQ</option>
	<option value="3">HND/HNC</option>
	<option value="4">University degree</option>
	<option value="5">Masters degree or higher</option>
	<option value="6">BTEC</option>
	<option value="7">City & Guides</option>
	<option value="8">Diploma</option>
	<option value="9">Senior business or technical qualification</option>
	<option value="10">PhD</option>
</select>
				
				
								</div>
              </div>
			  
<div class="form-group">
<label class="col-sm-4 control-label" for="confirm-password">Job reference:</label>
<div class="col-sm-8">

<input type="text"  name="job_refernce" class="form-control"  id="job_refernce" placeholder="Enter job reference number"  >
</div>
</div>

<div class="form-group">
<label class="col-sm-4 control-label" for="confirm-password">Job Exp Date:</label>
<div class="col-sm-8">

<input type="text" name="exp_date"   class="tcal form-control"  value="" id="exp_date"  placeholder="mm-dd-yyyy" onfocus="this.placeholder = ''" onblur="this.placeholder = 'mm-dd-yyyy'" >
</div>
</div>
			  
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password"><strong>Salary Details:</strong></br></label>
                <div class="col-sm-8">
				
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Salary From:</label>
                <div class="col-sm-8">
				
				<input type="text" class="form-control"  name="job_salary_from" id="job_salary_from" placeholder="From" onkeyup="javascript:this.value=Comma(this.value);">
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Salary To:</label>
                <div class="col-sm-8">
				
				<input type="text"  name="job_salary_to"  class="form-control" id="job_salary_to" style="vertical-align:top;" placeholder="To" onkeyup="javascript:this.value=Comma(this.value);" />
				
				
								</div>
              </div>
			  
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Currency:</label>
                <div class="col-sm-8">
				
				<select  name="currency" class="form-control">
<?php
$querycurrency=$this->db->get('currency');
$resultscurrency = $querycurrency->result();
foreach ($resultscurrency as $rowcurrency)
{?>
<option value="<?php echo $rowcurrency->skill_id;?>" ><?php echo $rowcurrency->skill_code;?></option>
<?php }?>
</select>
				
				
								</div>
              </div>
			  
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Per Day ,Per Week,Per Annum:</label>
                <div class="col-sm-8">
							
	<select  id="perday" name="perday" class="form-control">
     <option value="1">Per Day</option>
	 <option value="2">Per Week</option> 
	 <option value="3">Per Annum</option> 
     </select>
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Display salary figure on the job ad</label>
                <div class="col-sm-8">
				
			
                              <input type="checkbox" name="displaySalary" id="displaySalary" value="1"/>
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Additional salary info:</label>
                <div class="col-sm-8">
				
				<input type="text" class="form-control"  name="job_salary_info" id="job_salary_info" placeholder="Max 70 characters." >
				
				
								</div>
              </div>
			    <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password"><strong>Job Location:</strong></br></label>
                <div class="col-sm-8">
				
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Country:</label>
                <div class="col-sm-8">
			
			<input type="text"  name="job_location_id" id="job_location_id" placeholder="Enter Country Name" class="form-control"/>
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">State/Region:</label>
                <div class="col-sm-8">
				
			<input type="text"  name="state" id="state_dropdown" placeholder="Enter Country Name" class="form-control"/>
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">City:</label>
                <div class="col-sm-8">
				
				<input type="text"  name="city" id="city_dropdown" placeholder="Enter Country Name" class="form-control"/>
				
				
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Postal code:</label>
                <div class="col-sm-8">
				
				<input type="text" class="form-control"   name="job_postalcode" id="job_postalcode" placeholder="Enter Postal code" >
				
				
								</div>
              </div>
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password"><strong>Contact details:</strong></br></label>
                <div class="col-sm-8">
				
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">First Name:</label>
                <div class="col-sm-8">
	<input type="text"  name="job_contact_fname" id="job_contact_fname" placeholder="Enter First Name"  class="form-control"  />
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Last Name:</label>
                <div class="col-sm-8">
<input type="text"  name="job_contact_lname" id="job_contact_lname" placeholder="Enter Last Name"  class="form-control"/>
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Emai:</label>
                <div class="col-sm-8">
 <input type="text"  name="job_contact_email" id="job_contact_email" placeholder="Enter Email" class="form-control" />
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Telephone</label>
                <div class="col-sm-8">
<input type="text"  name="telephone" id="telephone" placeholder="Enter Telephone Number" class="form-control" >
				
				
								</div>
              </div>
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Address</label>
                <div class="col-sm-8">
				  <input type="text"  name="address" id="address" placeholder="Enter Address" class="form-control"  >
				
				
								</div>
              </div>
<div class="form-group">
<label class="col-sm-4 control-label" for="confirm-password"><strong>Sectors:</strong></br></label>
<div class="col-sm-8">



</div>
</div>
			  
			  
			  <div class="form-group">
                <label class="col-sm-4 control-label" for="confirm-password">Choose up to 2 sectors that are most relevant to this job</label>
                <div class="col-sm-8">
				 <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/prism.css">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/chosen.css">
  <style>
  .chosen-container-multi .chosen-choices {
    width: 487px!important;
	}
  </style>
 <select name="secters[]" data-placeholder="Choose Industry sectors..." class="chosen-select form-control" multiple="multiple" style="width:525px;"  id="secters" >
            <option value=""></option>
			 <?php
  $sel_industeries=mysql_query("select * from njobn_jobs_category");
  while($fethch_induteries=mysql_fetch_array($sel_industeries))
	{
	?>
            <option value="<?php echo $fethch_induteries['jobs_category_id'];?>"><?php echo $fethch_induteries['jobs_category_title'];?></option>
     <?php }?>
          
          </select>
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>-->
  <script src="<?php echo base_url();?>assets/docsupport/chosen.jquery.js" type="text/javascript"></script>
  <script src="<?php echo base_url();?>assets/docsupport/prism.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript">
    var config = {
      '.chosen-select'           : {},
      '.chosen-select-deselect'  : {allow_single_deselect:true},
      '.chosen-select-no-single' : {disable_search_threshold:10},
      '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
      '.chosen-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }
  </script>
				
								</div>
              </div>
              <br>
              <div class="form-group">
                <label class="col-sm-4 control-label">&nbsp;</label>
                <div class="col-sm-8">
                  <button type="submit" class="btn btn-primary btn-block" name="update">Add Job</button>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </form>
				
					
                    
					
                </div>
		 
            </div></br>

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