diff --git a/portal/document.php b/portal/document.php new file mode 100644 index 00000000..519b0bf1 --- /dev/null +++ b/portal/document.php @@ -0,0 +1,78 @@ +set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]); +$purifier = new HTMLPurifier($purifier_config); + + +// Check for a document ID +if (!isset($_GET['id']) && !intval($_GET['id'])) { + header("Location: documents.php"); + exit(); +} + +$document_id = intval($_GET['id']); +$sql_document = mysqli_query($mysqli, "SELECT document_id, document_name, document_content FROM documents WHERE document_id = $document_id AND document_client_id = $session_client_id AND document_template = 0 LIMIT 1"); + +$row = mysqli_fetch_array($sql_document); + +$document_id = intval($row['document_id']); +$document_name = htmlentities($row['document_name']); +$document_content = $purifier->purify($row['document_content']); + +?> + +
+
+ + " alt="..." height="50" width="50" class="img-circle img-responsive"> + + + + + + +
+ +
+

Welcome, !

+
+
+ +
+ +
+ +
+ +
+ +
+
+

+ +
+
+ +
+ +
+ + + + +
+
+ + " alt="..." height="50" width="50" class="img-circle img-responsive"> + + + + + + +
+ +
+

Welcome, !

+
+
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + +
NameCreated
+ + +
+ +
+ +
+ + + " href="invoices.php">Invoices + + + + diff --git a/portal/quotes.php b/portal/quotes.php new file mode 100644 index 00000000..61db7b36 --- /dev/null +++ b/portal/quotes.php @@ -0,0 +1,112 @@ + + +
+
+ + " alt="..." height="50" width="50" class="img-circle img-responsive"> + + + + + + +
+ +
+

Welcome, !

+
+
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
#ScopeAmountDateStatus
"> + + + +
+ +
+ +
+ + +