diff --git a/.hta_slug/_home.php b/.hta_slug/_home.php index a9f36c3..fbcb2e8 100644 --- a/.hta_slug/_home.php +++ b/.hta_slug/_home.php @@ -1,7 +1,7 @@
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Quibusdam mollitia quidem sint dolores nostrum, similique nulla consequuntur. Animi neque labore praesentium ratione a? Facere, quasi ea reprehenderit eum tempora voluptatum. +

Welcome:

\ No newline at end of file diff --git a/.hta_slug/_nav.php b/.hta_slug/_nav.php index fd6367a..e47e7cc 100644 --- a/.hta_slug/_nav.php +++ b/.hta_slug/_nav.php @@ -9,15 +9,28 @@ - - - + + New Customer + + + + + '; + } elseif(isset($_SESSION['userType']) && $_SESSION['userType'] === 'user') + echo ' + '; + } + ?> diff --git a/my-account/.hta_slug/_home.php b/my-account/.hta_slug/_home.php index 9cd78f4..d9a0ccd 100644 --- a/my-account/.hta_slug/_home.php +++ b/my-account/.hta_slug/_home.php @@ -19,7 +19,6 @@ EMI Details - Print + Print No invoice available - EMI Details + EMI Details setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + +$stmt = $db->prepare("SELECT * FROM invoice WHERE customerId = :customerId AND invoiceId = :invoiceId"); +$stmt->bindParam(':customerId', $_GET['customerId']); +$stmt->bindParam(':invoiceId', $_GET['invoiceId']); +$stmt->execute(); +$invoiceInfo = $stmt->fetch(PDO::FETCH_ASSOC); + +$emiPlans = []; +if ($invoiceInfo['tenure'] > 1) { + $stmt = $db->prepare("SELECT * FROM emi WHERE customerId = :customerId AND invoiceId = :invoiceId ORDER BY emiDate ASC"); + $stmt->bindParam(':customerId', $_GET['customerId']); + $stmt->bindParam(':invoiceId', $_GET['invoiceId']); + $stmt->execute(); + $emiPlans = $stmt->fetchAll(PDO::FETCH_ASSOC); +} +?> + +
+
+

Invoice


+
+
+
Invoice ID:
+
Customer:
+

Address:

+
+
+
Invoice Date:
+
Payment Mode:
+

Agent:

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
ItemDescriptionQtyRateTax(%)TaxTotal
%
+ + + 1): ?> +

EMI Payment Plan

+ + + + + + + + + + + + + + + + + + + + + +
EMI No.EMI DateEMI AmountOutstandingStatus
+ Paid' : 'Pending' ?> +
+ + +

Admin Note:

+ + + +
+
+ +