<?php
$GetPayInfo = mysql_query("SELECT * FROM `step4_challan` WHERE `sid` = '$_GET[sid]'");
$GetPayInfo1 = mysql_fetch_assoc($GetPayInfo);

$GetStInfo = mysql_query("SELECT * FROM `step1_perosonal` WHERE `sid` = '$_GET[sid]'");
$GetStInfo1 = mysql_fetch_assoc($GetStInfo);

?>

<table cellpadding="0" cellspacing="0" width="70%">
<tr height="40"><td width="40%">SID</td><td><?php echo $_GET['sid']; ?></td></tr>
<tr height="40"><td width="40%">Student Name</td><td><?php echo $GetStInfo1['firstname'].'&nbsp;'.$GetStInfo1['middlename'].'&nbsp;'.$GetStInfo1['lastname'];?></td></tr>
<tr height="40"><td width="40%">Father's Name</td><td><?php echo $GetStInfo1['father_name']; ?></td></tr>
<tr height="40"><td width="40%">Challan No.</td><td><?php echo $GetPayInfo1['challan']; ?></td></tr>
<tr height="40"><td width="40%">Challan Amount</td><td><?php echo $GetPayInfo1['challan_amount']; ?></td></tr>
<tr height="40"><td width="40%">Challan Date</td><td><?php echo $GetPayInfo1['challan_date']; ?></td></tr>
<tr height="40"><td width="40%">Bank Name</td><td><?php echo $GetPayInfo1['bank_name']; ?></td></tr>
<tr height="40"><td width="40%">Challan</td><td><a href="../../sgvu-admission/uploads/<?php echo $GetPayInfo1['image']; ?>" target="_blank"><img src="../../sgvu-admission/uploads/<?php echo $GetPayInfo1['image']; ?>" class="img-thumbnail" style="width:150px; height:150px"/></a></td></tr>
<tr height="40"><td width="40%"></td><td>
<div class="col-md-3"><form action="action-pages/finance/clear-form-action.php" method="post">
<input type="hidden" name="sid" value="<?php echo $_GET['sid']; ?>" />
<input type="hidden" name="challan_id" value="<?php echo $GetPayInfo1['challan_id']; ?>" />
<input type="hidden" name="role" value="<?php echo $GetUserDetails1['role']; ?>" />

<button class="btn-primary btn" type="submit">Clear</button>	
</form></div>
<div class="col-md-6"><form action="#">
<input type="hidden" name="sid" value="<?php echo $_GET['sid']; ?>" />
<input type="hidden" name="challan_id" value="<?php echo $GetPayInfo1['challan_id']; ?>" />
<input type="hidden" name="role" value="<?php echo $GetUserDetails1['role']; ?>" />

<button class="btn-primary btn" type="submit">Spam</button>	
</form></div>
</td></tr>


</table>