<?php
session_start();
?>

<!DOCTYPE html>
<html>
    <head>
 <?php include("header-js.php");?>	
		
<!-----hrm-------------->		
<script type="text/javascript" src="js/jquery.min.js"></script>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/jquery-ui.css" />
<!-- Responsive -->
<script language="javascript" src="js/css3-mediaqueries.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/responsive.css" />
<!-- /Responsive -->
<!-- FORM -->
<link rel="stylesheet" href="css/form-slide.css" type="text/css" media="screen"/>
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/sliding.form.js"></script>
<script type="text/javascript" src="js/insert.js"></script>
<script src="js/jquery.form.js"></script>
<script type="text/javascript" >
$('#recdate').live('click',function(){
		 $(this).datepicker({dateFormat:"dd-mm-yy"}).focus();	
	});

function costratio(){
	//alert(document.getElementById("recost").value);
	var costratio = 0;
	var recselcand = document.getElementById('recselcand').value;
	var recost = document.getElementById('recost').value;
	costratio = recost/recselcand;
	document.getElementById('recostratio').value = costratio;
	//recselcand
	//alert(myTextField);
}
</script>

<!-----hrm-------------->
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    </head>


    <body class="skin-blue"> <?php 
	include("header.php");
?>

                    <!-- Small boxes (Stat box) -->
                    

                    <!-- Main row -->
                    <div class="row">
                    
					<div id="wrapper">



<div class="content">

<div id="form-content">
            <div id="form-wrapper">
                <div id="steps">
				
                     <form action="" method="post" enctype="multipart/form-data" id="refrm1" name="refrm1" onSubmit="return false;" >
<!-- Recruitment ////////////////////////////////////////////////////////////////////// -->		
				
                        <fieldset class="step">
                            <legend><translate>Recruitment Form</translate></legend>
							<!--<p class="heading01">Reference</p>-->
                           <!-- <p>
                                <label for="Date">Date</label>
                               <input type="text" name="recdate" id="recdate"  AUTOCOMPLETE=OFF />
                            </p>-->
                            <p>
                                <label for="Source"><translate>Source</translate></label>
                                <input type="text" name="recsource" id="recsource" AUTOCOMPLETE=OFF />
                            </p>
                            <p>
                                <label for="noofresumes"><translate>No of Resumes</translate></label>
                                <input type="text" name="noresumes" id="noresumes"  AUTOCOMPLETE=OFF />
                            </p>
                  
							<p>
                                <label for="website"><translate>Department</translate></label>
								<select name="department" id="department" onChange="loadDesignation();" >
								</select>
                            </p>
                            <p>
                                <label for="website"><translate>Type of Designation</translate></label>
								<select name="recdesg" id="recdesg" >
								<option value=""><translate>Select Designation</translate></option>
								</select>
                            </p>
                            <p>
                                <label for="username"><translate>Upload Resume</translate></label>
								<input type="file" name="resume[]" id="resume"  multiple ><br />
                            </p>
							<div class="page-p" >
							<div  id="progressbox" style="display:none;">
							<div  id="progressbar"></div ><div id="statustxt">0%</div></div>
							<div id="output"></div>
							</div>
						
					   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
	
	<table width="225" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td width="91"><button id="registerButton2" type="button" onClick="fnRecruitmentPage()" style="float:left;" >Finish</button></td>
							<td width="134"><button id="registrationCancel" type="button" style="float:left;" >Back to List</button></td>
						  </tr>
					</table>
	
	</td>
  </tr>
</table>

					
                        </fieldset>
						
                    </form>
                </div>
                
            </div>
    </div>

<div class="clear-float"></div>
</div><!-- /content -->
<!--<div id="busy"><translate>Loading...</translate></div>-->
<div class="footer">
<strong>© add-HRM</strong><br />
<span>Developed by <a href="http://www.aadhocc.com" target="_blank">Aadhocc</a></span></div><!-- /footer -->

</div>
					
					
                    </div><!-- /.row (main row) -->

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->
<script>


$('#registrationCancel').click(function(){
	window.location = "recruitment-list.php";
});

var userid = <?php echo $_SESSION['admin_id']; ?>;
<?php $userdetails = $db->fetchQuery("SELECT * FROM file where e_id='$userid'"); ?>
var userimage = "<?php echo $userdetails[0]['photo']; ?>";
</script>

        <!-- jQuery 2.0.2 -->
               <?php 
	include("footer-js.php");
?>
	
			
		<!--------------scripts for employee list-------------->

	<!--------------scripts for employee list-------------->
    </body>
</html>