diff --git a/accounting.php b/accounting.php new file mode 100644 index 0000000..363ef2c --- /dev/null +++ b/accounting.php @@ -0,0 +1,146 @@ +prepare("SELECT * FROM user_permissions WHERE user_id = ? AND page = 'accounting' AND can_view = 1"); +$stmt->execute([$user_id]); +if (!$stmt->fetch()) { + echo "
| التاريخ | الوصف | المرجع | الحساب | مدين | دائن |
|---|---|---|---|---|---|
| = htmlspecialchars($row['date']) ?> | += htmlspecialchars($row['description']) ?> | += htmlspecialchars($row['reference']) ?> | += htmlspecialchars($row['account_name']) ?> | += number_format($row['debit'], 2) ?> | += number_format($row['credit'], 2) ?> | +
| الاسم | النوع |
|---|---|
| = htmlspecialchars($account['name']) ?> | += htmlspecialchars($account['type']) ?> | +