91 lines
4.5 KiB
PHP
91 lines
4.5 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<?php
|
|
//include '../header.php';
|
|
include '../config.php';
|
|
$user_id = $_GET['user_id'];
|
|
$id = $_GET['doc_id'];
|
|
$role=$_GET['role'];
|
|
$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'];
|
|
|
|
$sql = "SELECT request.id,request.type, request.reason,request.document,
|
|
request.user_id,request.name,request.date, type.name as doc_type,
|
|
documents.number, documents.description
|
|
FROM `request` LEFT JOIN documents on documents.id = request.document
|
|
LEFT JOIN type on type.id = documents.type ORDER BY id desc limit 1";
|
|
$result = $conn->query($sql);
|
|
$row = $result->fetch_assoc();
|
|
$id = $row['id'];
|
|
//$rtype = $row['type'];
|
|
if($row['type']==0){
|
|
$rtype='View';
|
|
}
|
|
else if($row['type']==1){
|
|
$rtype='Copy';
|
|
}else if ($row['type']==2){
|
|
$rtype='Original Copy';
|
|
}
|
|
$reason = $row['reason'];
|
|
$requestor = $row['name'];
|
|
$document = $row['document'];
|
|
$doc_type = $row['doc_type'];
|
|
$number = $row['number'];
|
|
$description =$row['description'];
|
|
?>
|
|
<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 sorry to inform you that your document request has been disapproved!</p>
|
|
<p>After careful review and consideration, we have decided not to grant your request for the following document:</p>
|
|
<table class="table table-bordered table-striped">
|
|
<tr><th>Request ID</th><td><?php echo $id; ?></td></tr>
|
|
<tr><th>Request Type</th><td><?php echo $rtype; ?></td></tr>
|
|
<tr><th>Requestor</th><td><?php echo $requestor; ?></td></tr>
|
|
<tr><th>Reason</th><td colspan=2><?php echo $reason; ?></td></tr>
|
|
<tr><th>Document ID</th><td><?php echo $document; ?></td></tr>
|
|
<tr><td><b>Document Type</b></td><td> <?php echo $doc_type;?></td></tr>
|
|
<tr><td><b>Document Number</b></td><td><?php echo $number; ?></td></tr>
|
|
<tr><td><b>Document Description</b></td><td> <?php echo $description; ?></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 disapproved 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>
|