siddharth_application/application/views/payslipupload.php
venbatechnologies@gmail.com 3650012dcb capital po updates done
2017-06-30 20:49:26 +05:30

51 lines
1.3 KiB
PHP
Executable File

<?php
if(isset($Success)){
echo $Success;
}
if(isset($Fail)){
echo $Fail;
}
?>
<script>
function readURL(input) {
$('#FileName').val(input.files[0].name);
}
</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-8 col-md-offset-2" style="border:2px dotted;padding:2%;">
<form id="upload" action="<?php echo base_url() ?>FileUpload" method="post" role="form" enctype="multipart/form-data"> <div class="col-md-5 col-md-offset-2">
<span for="FileName">File Name</span>
<input type="text" class="form-control required" id="FileName" name="FileName" readonly>
</div>
<div class="box-header">
<input type="file" onchange="readURL(this);" id="userfile" name="userfile"/>
<label for="photo">Select Excel File to upload<br/>(only .xls)</label>
</div>
<div class="col-md-2 col-md-offset-2">
<input type="submit" class="btn btn-info" value="upload" />
</div>
</div>
</div>
</section>
</div>