43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<script>
|
|
function readURL(input) {
|
|
if (input.files && input.files[0]) {
|
|
var reader = new FileReader();
|
|
|
|
reader.onload = function (e) {
|
|
$('#salaryexcele')
|
|
.attr('src', e.target.result)
|
|
};
|
|
|
|
reader.readAsDataURL(input.files[0]);
|
|
}
|
|
}
|
|
</script>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
<center>Siddharth Industries PaySlip Upload</center>
|
|
|
|
</h1>
|
|
</section>
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3" style="border:2px dotted; padding:5%">
|
|
<center>
|
|
<div class="box-header">
|
|
|
|
<input type='file' onchange="readURL(this);" id="salaryexcel" name="salaryexcel"/>
|
|
<label for="photo">Select Excelsheet Only<br/></label>
|
|
|
|
</div>
|
|
</center>
|
|
<div class="row" align="right">
|
|
<button type="button" class="btn btn-info">Submit</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
</div>
|
|
|