= h(current_lang() === 'ar' ? $course['name_ar'] : $course['name_en']) ?>
+ = h(format_price((float)$course['price'])) ?> += h(current_lang() === 'ar' ? $course['description_ar'] : $course['description_en']) ?>
+diff --git a/admin_courses.php b/admin_courses.php index 3809899..2b51bd1 100644 --- a/admin_courses.php +++ b/admin_courses.php @@ -142,6 +142,7 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC); + @@ -227,6 +228,7 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC); +
diff --git a/cookie.txt b/cookie.txt index 80908d5..5140534 100644 --- a/cookie.txt +++ b/cookie.txt @@ -2,4 +2,4 @@ # https://curl.se/docs/http-cookies.html # This file was generated by libcurl! Edit at your own risk. -127.0.0.1 FALSE / FALSE 0 PHPSESSID 69opohn4d8347kh0d07rl59f2n +localhost FALSE / FALSE 0 PHPSESSID tf03tbhu7e9rjeotatir4nlali diff --git a/courses.php b/courses.php new file mode 100644 index 0000000..43cd072 --- /dev/null +++ b/courses.php @@ -0,0 +1,71 @@ +query("SELECT * FROM courses WHERE status = 'active' ORDER BY created_at DESC")->fetchAll(); + +render_head( + t('Courses', 'الدورات'), + t('Browse our specialized short courses.', 'تصفح دوراتنا القصيرة المتخصصة.') +); +render_nav('courses.php'); +?> += h(t('Enroll in our specialized short courses designed to help you achieve your goals.', 'سجل في دوراتنا القصيرة المتخصصة المصممة لمساعدتك على تحقيق أهدافك.')) ?>
+= h(current_lang() === 'ar' ? $course['description_ar'] : $course['description_en']) ?>
+= h(t('Start with pricing, complete the checkout form, and your personalized classroom dashboard will appear here.', 'ابدأ بالتسعير وأكمل نموذج الدفع وستظهر هنا لوحة الفصول الشخصية الخاصة بك.')) ?>