89 lines
3.3 KiB
PHP
89 lines
3.3 KiB
PHP
<?php include('pdf_header.php');
|
|
// include('includes/config/config.php');
|
|
//include('includes/functions.php')
|
|
//include('pop_up_top.php');
|
|
?>
|
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
|
|
|
<body>
|
|
<?php include('list_pdf_header.php'); ?>
|
|
|
|
|
|
<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:20px"><strong>Cancers Awarenes List</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%"><b>Id.</b></td>
|
|
<td valign="top" align="left" width="10%"><b>Date</td>
|
|
<td valign="top" align="left" width="10%"><b>Beneficiary</td>
|
|
|
|
<td align="left" width="10%"><b>Mobile No</td>
|
|
<td align="left" width="10%"><b>Village</td>
|
|
<td align="left" width="10%"><b>Feedback</td>
|
|
|
|
</strong></tr>
|
|
|
|
<?php
|
|
$count = 0;
|
|
while ($row1 = mysqli_fetch_assoc($results)) {
|
|
extract($row1);
|
|
$item_desc = "";
|
|
$item_qty = "";
|
|
$sql_q = "select * from indent_items where indent_id='" . $row1['indent_id'] . "'";
|
|
error_log("indent sql" . $sql_q);
|
|
$result = mysqli_query($conn, $sql_q);
|
|
$indent_ref_no = $row1['indent_ref_no'];
|
|
//$rows_count = mysql_num_rows($result);
|
|
?>
|
|
<?php
|
|
|
|
while ($row2 = mysqli_fetch_assoc($result)) {
|
|
$item_desc = $item_desc . ' <p> ' . getItemWithFormName($row2['item_id']) . '</p><br>';
|
|
$item_unit_id = getTableFieldValue('tbl_items', 'unit_id', 'item_id', $row2['item_id']);
|
|
$item_unit = getTableFieldValue(' unit_master', 'unit_name', 'unit_id', $item_unit_id);
|
|
$item_qty = $item_qty . ' <p> ' . $row2['indent_qty'] . ' ' . $item_unit . '</p><br>';
|
|
}
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<tr>
|
|
<td><?php echo ++$count ?></td>
|
|
<td><?php echo date_format(date_create($row1['date']), "d-M-Y") ?></td>
|
|
<td><?php echo getFieldFromTable('patient_name','patient_master','id',$row1['beneficiary']) ?></td>
|
|
<td><?php echo getFieldFromTable('aadhar_phone','patient_master','id',$row1['beneficiary']) ?></td>
|
|
<?php
|
|
$village = getFieldFromTable('village','patient_master','id',$row1['beneficiary']);
|
|
$village_name = getFieldFromTable('village','village','id',$village);
|
|
?>
|
|
<td><?php echo $village_name?></td>
|
|
<td><?php echo $row1['feedback'] ?></td>
|
|
</tr>
|
|
<?php
|
|
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
</body>
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|