<?php include("header.php"); ?>
<!-- upload -->
<script type="text/javascript" src="js/upload/jquery.form.js"></script>
<!-- upload -->
<?php $id = $_GET['id'];
?>
<title>Update Employee</title>
</head>
<body class="modify_user standard">
<div class="wrapper">

	<div class="header">
	<h1>Lifeguard Archangels Security Corportion</h1>
	</div>
<?php include("main_menu.php"); ?>
	<div class="right_nav">
	<h1>Profiles</h1>
<?php include("right_nav.php"); ?>
	</div>
	<div class="content">
	<div class="title_page">
	</div>
	
	<div class="actions">
	<div class="form label-inline uniform" id="shadow" style="width: 700px; margin:0 auto;" >
	<h2>Update Equipment Image</h2>
	</div>
<form id="imageform" class="uploadthis" method="post" enctype="multipart/form-data" action='save_emp_photo.php'>
Upload equipment image <input type="file" name="photoimg" id="photoimg" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
</form>
<div id='preview'>
</div>
	</div>
	</div>
<?php include("footer.php"); ?>
</div>
</body>
</html>

<!-- upload -->
<script type="text/javascript" >
jQuery(document).ready(function() { 
		
            jQuery('#photoimg').live('change', function()			{ 
			           jQuery("#preview").html('');
			   jQuery("#preview").html('<img src="images/loader.gif" alt="Uploading...."/>');
			jQuery("#imageform").ajaxForm({
						target: '#preview'
		}).submit();
		
			});
        }); 
</script>
<!-- upload end -->