+
+
+
+
+
+
+ | Agent ID |
+ Agent Name |
+ Total Collection |
+ Total Commission |
+
+
+ ';
+
+ $grandTotalCommission = 0;
+ $grandTotalCollection = 0;
+
+ if ($result && $result->num_rows > 0) {
+ while($row = $result->fetch_assoc()) {
+ $collection = $row["total_amount"];
+ $commission = ($collection * $row["comi_rate"]) / 100;
+
+ $grandTotalCollection += $collection;
+ $grandTotalCommission += $commission;
+
+ echo "
+
+ | ".$row["user_id"]." |
+ ".$row["user_name"]." |
+ ".number_format($collection,2)." |
+ ".number_format($commission,2)." |
+
";
+ }
+ } else {
+ echo "| No agents found |
";
+ }
+
+ echo '
+
+
';
+
+ // ---- if admin/bm then show grand total ----
+ if ($loginType !== 'agent') {
+ echo '
+ Grand Total Collection : '.number_format($grandTotalCollection,2).'
+ Grand Total Commission : '.number_format($grandTotalCommission,2).'
+
';
+ }
+
+ echo '
+
+
+
+ ';
+
+ $conn->close();
+}
+
+// ---- Call commission function ----
+commission_report($dFrom, $dTo);
?>
diff --git a/CONTENT/ROOT_URI/Admin/edit_user.php b/CONTENT/ROOT_URI/Admin/edit_user.php
index 43094ed..fd86b3f 100644
--- a/CONTENT/ROOT_URI/Admin/edit_user.php
+++ b/CONTENT/ROOT_URI/Admin/edit_user.php
@@ -1,10 +1,5 @@
prepare($sql);
- $stmt->bind_param("sssssi", $user_id, $user_name, $user_phone, $type, $password, $id);
+ $stmt->bind_param("ssssssi", $user_id, $user_name, $user_phone, $type, $password, $profilePicPath, $id);
} else {
- // Update without password
- $sql = "UPDATE `".$GLOBALS['arif_users']."` SET
- user_id = ?,
- user_name = ?,
- user_phone = ?,
- type = ?
+ $sql = "UPDATE `".$GLOBALS['arif_users']."`
+ SET user_id = ?, user_name = ?, user_phone = ?, type = ?, profile_pic = ?
WHERE id = ?";
$stmt = $conn->prepare($sql);
- $stmt->bind_param("ssssi", $user_id, $user_name, $user_phone, $type, $id);
+ $stmt->bind_param("sssssi", $user_id, $user_name, $user_phone, $type, $profilePicPath, $id);
}
if ($stmt->execute()) {
@@ -99,7 +106,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-
@@ -133,21 +148,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-
-
-
-
-
- Password must be at least 8 characters long
-
-
+
+
+
+ Password must be at least 8 characters long
-
-
+
@@ -165,19 +174,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
});
-
-close(); ?>
\ No newline at end of file
+close(); ?>
diff --git a/CONTENT/ROOT_URI/Admin/login.php b/CONTENT/ROOT_URI/Admin/login.php
index d6916d2..c4344b8 100644
--- a/CONTENT/ROOT_URI/Admin/login.php
+++ b/CONTENT/ROOT_URI/Admin/login.php
@@ -27,6 +27,7 @@
$_SESSION['user_id'] = $user['user_id'];
$_SESSION['type'] = $user['type'];
$_SESSION['name'] = $user['user_name'];
+ $_SESSION['profile_pic'] = $user['profile_pic'] ?? '';
echo "
Login successful. Redirecting...
";
echo "";
diff --git a/CONTENT/ROOT_URI/Admin/picture/1756899147_new_logo2.jpg b/CONTENT/ROOT_URI/Admin/picture/1756899147_new_logo2.jpg
new file mode 100644
index 0000000..3f47010
Binary files /dev/null and b/CONTENT/ROOT_URI/Admin/picture/1756899147_new_logo2.jpg differ
diff --git a/CONTENT/ROOT_URI/Admin/picture/1756900298_passport-photo-333.jpg b/CONTENT/ROOT_URI/Admin/picture/1756900298_passport-photo-333.jpg
new file mode 100644
index 0000000..d29158f
Binary files /dev/null and b/CONTENT/ROOT_URI/Admin/picture/1756900298_passport-photo-333.jpg differ
diff --git a/CONTENT/ROOT_URI/Admin/picture/1756901024_gratisography-augmented-reality-800x525.jpg b/CONTENT/ROOT_URI/Admin/picture/1756901024_gratisography-augmented-reality-800x525.jpg
new file mode 100644
index 0000000..e46e22c
Binary files /dev/null and b/CONTENT/ROOT_URI/Admin/picture/1756901024_gratisography-augmented-reality-800x525.jpg differ
diff --git a/pma/tmp/twig/cf/cf151a987d451dbed37630dfabb6c91d.php b/pma/tmp/twig/cf/cf151a987d451dbed37630dfabb6c91d.php
new file mode 100644
index 0000000..e46a196
--- /dev/null
+++ b/pma/tmp/twig/cf/cf151a987d451dbed37630dfabb6c91d.php
@@ -0,0 +1,119 @@
+source = $this->getSourceContext();
+
+ $this->parent = false;
+
+ $this->blocks = [
+ ];
+ }
+
+ protected function doDisplay(array $context, array $blocks = [])
+ {
+ $macros = $this->macros;
+ // line 1
+ echo "
+";
+ }
+
+ public function getTemplateName()
+ {
+ return "table/insert/continue_insertion_form.twig";
+ }
+
+ public function isTraitable()
+ {
+ return false;
+ }
+
+ public function getDebugInfo()
+ {
+ return array ( 93 => 18, 88 => 16, 86 => 15, 84 => 14, 81 => 13, 78 => 12, 70 => 10, 66 => 9, 61 => 8, 59 => 7, 54 => 5, 50 => 4, 46 => 3, 42 => 2, 37 => 1,);
+ }
+
+ public function getSourceContext()
+ {
+ return new Source("", "table/insert/continue_insertion_form.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/insert/continue_insertion_form.twig");
+ }
+}