csrtechnew.ohctech.in/pdf_manage_item.php

85 lines
3.4 KiB
PHP
Raw Permalink Normal View History

2025-04-14 13:28:09 +05:30
<?php include('pdf_header_reverse.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:20"><strong>Item List</strong></td>
<td width="25%" align="left"> User :
<?php echo $username ?>
</td>
</tr>
</table>
<table border="1">
<?php
$sql=base64_decode($filterkey);
$result = mysqli_query($conn,$sql);
$count=0;
?>
<tr bgcolor='#eeeeee'>
<th width="5%">Sr.
<th width="8%">Item Code</th>
<th width="10%">Item Name</th>
2025-10-16 15:19:10 +05:30
<th width="10%">Activity</th>
2025-04-14 13:28:09 +05:30
<th width="10%">Agency</th>
2025-10-16 15:19:10 +05:30
<th width="10%">Specifications</th>
<th width="10%">Make</th>
2025-04-14 13:28:09 +05:30
<th width="10%">Item Form</th>
<!-- <th width="10%">Usage Category</th> -->
<th width="10%">Category</th>
<th width="8%">Status</th>
<!-- <th width="10%">Is Prescription</th> -->
<th width="10%">Reorder Qty</th>
</tr>
<?php
while($row1=mysqli_fetch_array($result)){
extract($row1);
$item_id=$row1['item_id'];
$cat=getTableFieldValue('tbl_categories','cat_name','cat_id',$row1['cat'],'');
$item_form=getTableFieldValue('medicine_form','form_name','form_id',$row1['item_form_id'],'');
$medicine_usage_cat=getTableFieldValue('medicine_usage_cat','medicine_usage_cat_name','medicine_usage_cat_id',$row1['medicine_usage_cat_id'],'');
//$subcat=getTableFieldValue('sub_category','sub_cat_name','sub_cat_id',$row1['subcat'],'');
$unit=getTableFieldValue('unit_master','unit_name','unit_id',$row1['unit_id'],'');
// $reorder_stock_level=getTableFieldValue('unit_master','unit_name','unit_id',$row1['unit_id'],'');
/*$item_ingredients =getCommaSeperatedValuesForInClause("select ingredient_name from ingredient ","ingredient_id",$row1['active_ingredients']);*/
$item_ailment_systems = getCommaSeperatedValuesForInClause("select ailment_sys_name from ailment_system ","ailment_sys_id",$row1['ailments']);
$agency=getTableFieldValue('agency','agency_name','id',$row1['agency']);
2025-10-16 15:19:10 +05:30
$activity_name=getTableFieldValue('program_master','program_name','program_id',$row1['activity']);
2025-04-14 13:28:09 +05:30
$count=$count+1;
?>
<tr>
<td><?php echo $count?></td>
<td><?php echo $item_code ?></td>
<td><?php echo $item_name?></td>
2025-10-16 15:19:10 +05:30
<td><?php echo $activity_name?></td>
2025-04-14 13:28:09 +05:30
<td><?php echo $agency?></td>
2025-10-16 15:19:10 +05:30
<td><?php echo $specifications?></td>
<td><?php echo $make?></td>
2025-04-14 13:28:09 +05:30
<td><?php echo $item_form?></td>
<!-- <td><?php echo $medicine_usage_cat?></td> -->
<td> <?php echo $cat?></td>
<td> <?php echo $status==1?'Active':'Inactive'?></td>
<!-- <td><?php echo $is_prescription==1?'Yes':'No' ?></td> -->
<td><?php echo $reorder_stock_level?>
</tr>
<?php
}
?>
</table>
<?php
include('pdf_footer.php');
?>