62 lines
2.0 KiB
PHP
62 lines
2.0 KiB
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
header('Content-Type: application/force-download');
|
|
header('Content-disposition: attachment; filename=excel_opd_list.xls');
|
|
?>
|
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
|
|
|
<body>
|
|
<table width="100%">
|
|
<tr>
|
|
<div style="font-size:12px">
|
|
<td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
|
|
<td width="50%" align="center" style="font-size:12px"><strong>Mobile Dispensary / Weekly Clinic</strong></td>
|
|
<td width="25%" align="left"> User : <?php echo $username ?></td>
|
|
</tr>
|
|
</table>
|
|
<table border="1" width="100%">
|
|
<?php
|
|
|
|
//$sql_issue_items="select * from stock_issue_items inner join stock_issue on stock_issue_items.stock_issue_id = stock_issue.stock_issue_id ";
|
|
//$results_issue_items = mysql_query($sql_issue_items);
|
|
$sql = base64_decode($filterkey);
|
|
|
|
$results = mysqli_query($conn, $sql);
|
|
|
|
?>
|
|
<strong>
|
|
<tr bgcolor="#eeeeee">
|
|
<td valign="top" align="left" width="2%">Sr.</td>
|
|
<td valign="top" align="left" width="10%">Date</td>
|
|
<td valign="top" align="left" width="10%">Beneficiary Name</td>
|
|
<td valign="top" align="left" width="10%">Case No</td>
|
|
|
|
|
|
</strong></tr>
|
|
|
|
<?php
|
|
$count = 0;
|
|
while ($row1 = mysqli_fetch_assoc($results)) {
|
|
extract($row1);
|
|
|
|
?>
|
|
|
|
|
|
|
|
<tr>
|
|
<td><?php echo ++$count ?></td>
|
|
<td><?php echo date_format(date_create($row1['opd_date']), "d-M-Y ") ?></td>
|
|
<td><?php echo getFieldFromTable('patient_name', 'patient_master', 'id', $row1['beneficiary']); ?></td>
|
|
|
|
|
|
|
|
<td><?php echo $row1['case_no'] ?></td>
|
|
</tr>
|
|
<?php
|
|
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
</body>
|