57 lines
2.1 KiB
PHP
57 lines
2.1 KiB
PHP
<?php //include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
include ('includes/functions.php');
|
|
|
|
|
|
|
|
//include('pop_up_top.php');
|
|
header('Content-Type: application/force-download');
|
|
header('Content-disposition: attachment; filename=excel_fee_collection.xls');
|
|
?>
|
|
|
|
|
|
<table border="1">
|
|
<?php
|
|
$sql = "select * from fee_collection";
|
|
//echo $sql;
|
|
$result = mysqli_query($conn, $sql);
|
|
?><tr>
|
|
|
|
<th>Sr. </th>
|
|
<th>Batch Name </th>
|
|
<th>Fee Schedule Name</th>
|
|
<th>Beneficiary Name</th>
|
|
<th>Collection Date</th>
|
|
<th>Fees Receipt No</th>
|
|
<th>Fee Amount</th>
|
|
<th>Collection Status</th>
|
|
<th>Payment Mode</th>
|
|
<th>Payment Remark</th>
|
|
<th>Modified By</th>
|
|
|
|
</tr><?php
|
|
while ($row = mysqli_fetch_array($result)) {
|
|
$batch_name = getFieldFromTable('batch_name', 'training_batch_master', 'batch_id', $row['batch_name']);
|
|
$beneficiary_name = getFieldFromTable('patient_name', 'patient_master', 'id', $row['beneficiary_name']);
|
|
$schedule_name = getFieldFromTable('schedule_name', 'batch_fee_schedule', 'fee_schedule_id', $row['fee_schedule_id']);
|
|
$date = date_format(date_create($row1['collection_date']),"d-m-Y");
|
|
?>
|
|
<tr>
|
|
<td><?php echo $sr; ?></td>
|
|
<td><?php echo htmlspecialchars($batch_name); ?></td>
|
|
<td><?php echo htmlspecialchars($beneficiary_name); ?></td>
|
|
<td><?php echo htmlspecialchars($schedule_name); ?></td>
|
|
<td><?php echo $date; ?></td>
|
|
<td><?php echo htmlspecialchars($row['fee_collection_id']); ?></td>
|
|
<td><?php echo htmlspecialchars($row['fee_amount']); ?></td>
|
|
<td><?php echo htmlspecialchars($row['payment_mode']); ?></td>
|
|
<td><?php echo htmlspecialchars($row['remarks']); ?></td>
|
|
</tr>
|
|
<?php
|
|
$sr++;
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|