ESH/pdf_ohc_header.php
2024-10-23 18:28:06 +05:30

68 lines
2.3 KiB
PHP

<?php
include_once('includes/config/config.php');
include_once('includes/functions.php');
ini_set('pcre.backtrack_limit', 10000000);
ini_set('memory_limit', '-1');
$query_for_company = "select company_name, company_logo,right_com_logo, image_type,address ,ohc_details from company_profile ";
//echo $query_for_company;
$result_for_company = @mysqli_query($conn, $query_for_company);
if ($row_for_company = @mysqli_fetch_array($result_for_company)) {
@extract($row_for_company);
}
$query_for_ohc = "SELECT * FROM ohc_type WHERE ohc_type_id = '" . $_SESSION['current_ohcttype'] . "'";
//echo $query_for_ohc;
$result_for_ohc = @mysqli_query($conn, $query_for_ohc);
if ($row_for_ohc = @mysqli_fetch_array($result_for_ohc)) {
@extract($row_for_ohc);
}
?>
<table cellspacing="0" width="100%">
<tr>
<td width="20%">
<?php if($row_for_company['company_logo']!="" || $row_for_company['company_logo']!=null){ ?>
<center><img src="data:image/jpeg;base64,<?php echo base64_encode($row_for_company['company_logo']) ?>"
style="width: 100px; height: 100px; border-radius: 10px;" /></center>
<?php } ?>
</td>
<td width="60%">
<div style="text-align: center;">
<b style="font-size:20px;font-weight: 800;color:red">
<?php echo $row_for_company['company_name'] ?>
</b>
</div>
<div style="text-align: center; margin-top:10px">
<b style="color:black;font-size:13px;">
<?php echo $row_for_ohc['billing_address'] ?>
</b>
</div>
</td>
<td width="20%">
<?php if(isset($row_for_company['right_com_logo']) && $row_for_company['right_com_logo']!=null){?>
<center><img src="data:image/jpeg;base64,<?php echo base64_encode($row_for_company['right_com_logo']) ?>"
style="width: 100px; height: 100px;border-radius: 10px;" /></center>
<?php } ?>
</td>
</tr>
</table>
<!-- <br>
<table cellspacing="0" width="100%">
<tr>
<td width="25%" align="left"> Run Date : <?php echo date("d-M-Y");
?>
<td width="75%" align="right"> User : <?php echo $username
?></td>
</tr>
</table>
<br> -->