Add documents

This commit is contained in:
Marcus Hill 2022-01-24 20:51:29 +00:00
parent 75757bf0df
commit b63169c09d
2 changed files with 26 additions and 5 deletions

10
db.sql
View File

@ -969,6 +969,16 @@ CREATE TABLE IF NOT EXISTS `service_contacts` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_documents`
--
DROP TABLE IF EXISTS `service_documents`;
CREATE TABLE IF NOT EXISTS `service_documents` (
`service_id` int(11) NOT NULL,
`document_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_domains`
--

View File

@ -236,14 +236,25 @@
<li>Asset - Coming soon!</li>
</ul>
<h5><i class="nav-icon fas fa-file-alt"></i> Documents</h5>
<ul>
<li>SOP: New user for client finance app</li>
</ul>
<!-- Documents -->
<?php
if($sql_docs){ ?>
<h5><i class="nav-icon fas fa-file-alt"></i> Documents</h5>
<ul>
<?php
while($row = mysqli_fetch_array($sql_docs)){
echo "<li><a href=\"client.php?client_id=$client_id&tab=documents&q=$row[document_name]\">$row[document_name]</a></li>";
}
?>
</ul>
<?php
}
?>
<h5><i class="nav-icon fas fa-file-alt"></i> Services</h5>
<ul>
<li>Related Service</li>
<li>Related Service - Coming soon!</li>
</ul>