93 lines
2.4 KiB
PHP
93 lines
2.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<?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);
|
|
}
|
|
|
|
?>
|
|
<!-- test -->
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Company Header</title>
|
|
<style>
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 3rem;
|
|
|
|
}
|
|
|
|
.border-line {
|
|
|
|
width: 100%;
|
|
border-bottom: 1px solid black;
|
|
z-index: 200;
|
|
|
|
}
|
|
|
|
.company-name {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #0550a4;
|
|
}
|
|
|
|
.company-logo img {
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 10px;
|
|
mix-blend-mode: darken;
|
|
}
|
|
|
|
.ohc-details {
|
|
font-size: 15px;
|
|
color: grey;
|
|
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div>
|
|
<div class="header-container">
|
|
<div class="company-name"><?php echo $row_for_company['company_name'] ?></div>
|
|
<div class="company-logo">
|
|
<?php if ($row_for_company['company_logo'] != "" || $row_for_company['company_logo'] != null) { ?>
|
|
<img src="data:image/jpeg;base64,<?php echo base64_encode($row_for_company['company_logo']) ?>" alt="Company Logo">
|
|
<?php } ?>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="border-line"></div>
|
|
<div class="ohc-details">
|
|
<div>
|
|
<?php echo $row_for_ohc['address']; ?> <?php echo $row_for_ohc['primary_phone']; ?>
|
|
</div>
|
|
<div>
|
|
<?php echo $row_for_ohc['primary_email']; ?>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|