66 lines
3.7 KiB
PHP
66 lines
3.7 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<?php
|
|
//include '../header.php';
|
|
include '../config.php';
|
|
$user_id = $_GET['user_id'];
|
|
$id = $_GET['doc_id'];
|
|
$url = "../actions/qrcode.php?id=$id";
|
|
$sql = "SELECT * FROM vault_users WHERE id=$user_id";
|
|
$result = $conn->query($sql);
|
|
$row = $result->fetch_assoc();
|
|
$user_name = $row['name'];
|
|
$sql = "SELECT documents.id,documents.number,type.name as doc_type,
|
|
documents.description,department.name as department,company.name as company,
|
|
city.name as city,province.name as province,documents.vault,documents.folder
|
|
FROM documents
|
|
LEFT JOIN type on type.id = documents.type
|
|
LEFT JOIN department on department.id = documents.department
|
|
LEFT JOIN company on company.id = documents.company
|
|
LEFT JOIN city on city.id = documents.city
|
|
LEFT JOIN province on province.id = documents.province
|
|
WHERE documents.id = $id;";
|
|
$result = $conn->query($sql);
|
|
$row = $result->fetch_assoc();
|
|
$doc_no = $row['number'];
|
|
$doc_type = $row['doc_type'];
|
|
$description = $row['description'];
|
|
$department = $row['department'];
|
|
$company = $row['company'];
|
|
$city = $row['city'];
|
|
$province = $row['province'];
|
|
$folder = $row['folder'];
|
|
$vault = $row['vault'];
|
|
?>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
|
</head>
|
|
<body class="dt-example dt-example-bootstrap">
|
|
<div class="container">
|
|
<p>Dear <?php echo $user_name; ?>,</p><br>
|
|
<p>I hope this email finds you well. I am pleased to inform you that the document request has been approved and released.</p>
|
|
<p>After careful review and consideration, we are happy to grant your request for the original copy of the following document:</p>
|
|
<table class="table table-bordered table-striped">
|
|
<tr><th>Document_Number</th><td><?php echo $doc_no; ?></td></tr>
|
|
<tr><th>Folder / Vault</th><td><?php echo $folder." / ".$vault; ?></td></tr>
|
|
<tr><th>Document_Type</th><td><?php echo $doc_type; ?></td></tr>
|
|
<tr><th>Description</th><td colspan=2><?php echo $description; ?></td></tr>
|
|
<tr><th>City</th><td><?php echo $city; ?></td></tr>
|
|
<tr><th>Province</th><td colspan=2><?php echo $province; ?></td></tr>
|
|
<tr><th>Department</th><td><?php echo $department; ?></td></tr>
|
|
<tr><th>Company</th><td colspan=2><?php echo $company; ?></td></tr>
|
|
</table>
|
|
<p>You can collect the approved documents from [Company/Organization Name] office located at [Address]. Our office hours are [Office Hours]. Please bring a valid form of identification for verification purposes.</p>
|
|
<p>We kindly request you to make the necessary arrangements to pick up the documents within [Timeframe]. In case you are unable to collect the documents in person, please let us know, and we will make alternative arrangements for delivery or provide further instructions.</p>
|
|
<p>If you have any questions or need any further assistance regarding your approved document request, please don't hesitate to contact our dedicated customer support team at [Contact Details]. Our team is always ready to help you.</p>
|
|
<p>Thank you for choosing [Company/Organization Name] for your document needs. We appreciate your cooperation and look forward to serving you in the future.</p>
|
|
<br><p>Best regards,</p>
|
|
<p>The Vault Management Team</p>
|
|
</div>
|
|
</body>
|
|
</html>
|