<table class="table table-bordered responsive">
<thead>
<tr>
<th>Session</th>
<th>Bus Route</th>
<th>Charges</th>
<th>Action</th>
</tr>
</thead>
<?php foreach ($fetchbus as $busfee){?>
<tbody>
<form action="#" method="post">
<tr>
<td> <?php echo $busfee->Session; ?> </td>
<td> <?php echo $busfee->Route; ?> </td>
<td> <?php echo $busfee->Charges; ?> </td>
<td><a href="/go.html?url=#" id="<?php echo $row->Route_Id;?>" onClick="getbusdetailsforedit(this.id)" class="">Edit</a></td>
</tr>
<script type="text/javascript">
function getbusdetailsforedit(id)
{
ajaxRequest = new XMLHttpRequest();
ajaxRequest.onreadystatechange = function()
{
if(ajaxRequest.readyState == 4)
{
var ajaxDisplay = document.getElementById('getbusdetailsforeditview');
ajaxDisplay.innerHTML = ajaxRequest.responseText;
}
}
ajaxRequest.open("GET", "<?php echo base_url();?>account/SetFee/getbusdetailsforedit/" +id, true);
ajaxRequest.send();
}
</script>
</form>
</tbody>
<?php } ?>
</table>
<table class="table table-bordered responsive">