query("SELECT COUNT(*) FROM charity_plans WHERE created_by IS NULL OR updated_by IS NULL")->fetchColumn() > 0) { db()->query("UPDATE charity_plans SET created_by = 1 WHERE created_by IS NULL"); db()->query("UPDATE charity_plans SET updated_by = 1 WHERE updated_by IS NULL"); } } catch (Exception $e) {} if (!isAdmin() && !canView('charity_plans')) { echo "
إجمالي المحقق: = $total_achieved ?> من = $total_target ?>
خطط مكتملة: = $completed_plans ?> من = $total_plans ?>
| عنوان الخطة / الهدف | الفترة | المستهدف | المحقق | النسبة | الحالة | أضيف بواسطة | عُدل بواسطة | الإجراءات |
|---|---|---|---|---|---|---|---|---|
|
= htmlspecialchars($plan['title'] ?? '') ?>
= htmlspecialchars($plan['description'] ?? '') ?>
|
من: = $plan['start_date'] ?>
إلى: = $plan['end_date'] ?>
|
= number_format($plan['target_value']) ?> | = number_format($plan['achieved_value']) ?> |
= $plan_rate ?>%
|
= $status_labels[$plan['status']] ?> | = htmlspecialchars(getAuditUserName($plan['created_by'] ?? $plan['updated_by'] ?? null)) ?> | = htmlspecialchars(getAuditUserName($plan['updated_by'] ?? null)) ?> | |
| لا توجد خطط مضافة حتى الآن | ||||||||