44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
//include('pop_up_top.php');
|
|
header('Content-Type: application/force-download');
|
|
header('Content-disposition: attachment; filename=parents_meeting_list_excel.xls');
|
|
?>
|
|
|
|
<table class="col-sm-offset-5" border="1">
|
|
<?php
|
|
$sql = "SELECT * FROM primary_parents_meeting where ohc_type_id = '".$_SESSION['current_ohcttype']."'";
|
|
$result = mysqli_query($conn, $sql);
|
|
?>
|
|
<tr class="highlight">
|
|
<th width="5%">Sr.</th>
|
|
<th width="10%">Batch Name</th>
|
|
<th width="10%">Teacher Name</th>
|
|
<th width="10%">Meeting Date</th>
|
|
|
|
</tr>
|
|
<?php
|
|
$count = 1;
|
|
while ($rowOfrecord = mysqli_fetch_array($result)) {
|
|
$batch_name = getFieldFromTable('batch_name', 'training_batch_master', 'batch_id', $rowOfrecord['batch_name']);
|
|
$staff_name = getCommaSeperatedValuesForInClause("SELECT staff_name FROM staff_master", "staff_id", $rowOfrecord['teacher_name']);
|
|
|
|
|
|
?>
|
|
<tr>
|
|
<td><?php echo $count; ?></td>
|
|
<td><?php echo htmlspecialchars($batch_name); ?></td>
|
|
<td><?php echo htmlspecialchars($staff_name); ?></td>
|
|
<td><?php echo htmlspecialchars(date('d-m-Y', strtotime($rowOfrecord['meeting_date']))); ?></td>
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|