78 lines
3.8 KiB
PHP
78 lines
3.8 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<?php
|
|
//include '../header.php';
|
|
include '../config.php';
|
|
$reqid=$_GET['reqid'];
|
|
$user_id = $_GET['user_id'];
|
|
$id = $_GET['doc_id'];
|
|
$uid = $_GET['uid'];
|
|
$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,documents.file
|
|
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'];
|
|
$file =$row['file'];
|
|
?>
|
|
<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 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 may view the approved documents by clicking this link: <?php echo $file; ?> </p> -->
|
|
<p>You may view the approved documents by clicking this link:
|
|
<a href="https://vault.obanana.com/viewdoc.php?user_id=<?php echo $user_id; ?>&doc_id=<?php echo $id; ?>&reqid=<?php echo $reqid; ?>&uid=<?php echo $uid; ?>">
|
|
https://vault.obanana.com/viewdoc.php</a></p>
|
|
<p>Note that the link will expire and can no longer be viewed after 24 hours upon receiving this email.</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>
|