کتابخانه دانشنامه کتاب مقدس: تفاوت میان نسخهها
ظاهر
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
خط ۱: | خط ۱: | ||
<!DOCTYPE html> | |||
<html lang="fa" dir="rtl"> | <html lang="fa" dir="rtl"> | ||
<head> | <head> | ||
<meta charset="UTF-8"> | <meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>کتابخانه انتشارات | <title>کتابخانه انتشارات دانشنامه کتاب مقدس</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | ||
<style> | <style> | ||
* { | * { | ||
خط ۳۷: | خط ۱۸: | ||
color: #333; | color: #333; | ||
line-height: 1.6; | line-height: 1.6; | ||
} | } | ||
خط ۲۹۲: | خط ۲۷۱: | ||
top: 0; | top: 0; | ||
right: 0; | right: 0; | ||
} | } | ||
خط ۴۱۶: | خط ۳۷۸: | ||
.notification.error { | .notification.error { | ||
background: #dc3545; | background: #dc3545; | ||
} | |||
.custom-content-section { | |||
background: #e9f7ef; | |||
padding: 15px; | |||
margin: 0 15px 15px; | |||
border: 1px solid #c8e6d1; | |||
border-radius: 8px; | |||
} | |||
.custom-content-section h3 { | |||
color: #2d6a4f; | |||
margin-bottom: 10px; | |||
font-size: 16px; | |||
display: flex; | |||
align-items: center; | |||
gap: 8px; | |||
} | |||
.custom-input-group { | |||
display: flex; | |||
gap: 10px; | |||
} | |||
.custom-input-group input { | |||
flex: 1; | |||
} | |||
.custom-input-group select { | |||
width: 150px; | |||
} | } | ||
خط ۴۶۵: | خط ۴۵۷: | ||
.admin-controls { | .admin-controls { | ||
flex-direction: column; | flex-direction: column; | ||
} | |||
.custom-input-group { | |||
flex-direction: column; | |||
} | |||
.custom-input-group select { | |||
width: 100%; | |||
} | } | ||
} | } | ||
خط ۵۰۷: | خط ۵۰۷: | ||
<button class="admin-btn secondary" id="logoutBtn"> | <button class="admin-btn secondary" id="logoutBtn"> | ||
<i class="fas fa-sign-out-alt"></i> خروج از حساب | <i class="fas fa-sign-out-alt"></i> خروج از حساب | ||
</button> | |||
</div> | |||
</section> | |||
<!-- بخش محتوای سفارشی (فقط برای مدیران) --> | |||
<section class="custom-content-section" id="customContentSection" style="display: none;"> | |||
<h3><i class="fas fa-edit"></i> افزودن محتوای سفارشی</h3> | |||
<div class="custom-input-group"> | |||
<input type="text" id="customTitle" placeholder="عنوان محتوا (مثال: ۱۰ معنای یهوه)"> | |||
<select id="customCategory"> | |||
<option value="کتاب">کتاب</option> | |||
<option value="مقاله">مقاله</option> | |||
</select> | |||
<button class="admin-btn" id="addCustomContent"> | |||
<i class="fas fa-plus"></i> افزودن | |||
</button> | </button> | ||
</div> | </div> | ||
خط ۵۱۷: | خط ۵۳۲: | ||
<input type="password" id="adminPassword" placeholder="رمز عبور"> | <input type="password" id="adminPassword" placeholder="رمز عبور"> | ||
<button class="login-btn" id="loginBtn">ورود به سیستم</button> | <button class="login-btn" id="loginBtn">ورود به سیستم</button> | ||
<div style="text-align: center; margin-top: 15px; font-size: 12px; color: #6c757d;"> | |||
برای تست: admin / admin123 | |||
</div> | |||
</section> | </section> | ||
خط ۶۰۹: | خط ۶۲۷: | ||
const loadingBar = document.getElementById('loadingBar'); | const loadingBar = document.getElementById('loadingBar'); | ||
const adminPanel = document.getElementById('adminPanel'); | const adminPanel = document.getElementById('adminPanel'); | ||
const customContentSection = document.getElementById('customContentSection'); | |||
const loginForm = document.getElementById('loginForm'); | const loginForm = document.getElementById('loginForm'); | ||
const adminUsername = document.getElementById('adminUsername'); | const adminUsername = document.getElementById('adminUsername'); | ||
خط ۶۱۶: | خط ۶۳۵: | ||
const manageContentBtn = document.getElementById('manageContentBtn'); | const manageContentBtn = document.getElementById('manageContentBtn'); | ||
const logoutBtn = document.getElementById('logoutBtn'); | const logoutBtn = document.getElementById('logoutBtn'); | ||
const customTitle = document.getElementById('customTitle'); | |||
const customCategory = document.getElementById('customCategory'); | |||
const addCustomContent = document.getElementById('addCustomContent'); | |||
const notification = document.getElementById('notification'); | const notification = document.getElementById('notification'); | ||
خط ۶۲۸: | خط ۶۵۰: | ||
isAdmin = true; | isAdmin = true; | ||
adminPanel.style.display = 'block'; | adminPanel.style.display = 'block'; | ||
customContentSection.style.display = 'block'; | |||
loginForm.style.display = 'none'; | loginForm.style.display = 'none'; | ||
showNotification('شما به عنوان مدیر وارد شدهاید'); | |||
} else { | } else { | ||
isAdmin = false; | isAdmin = false; | ||
adminPanel.style.display = 'none'; | adminPanel.style.display = 'none'; | ||
customContentSection.style.display = 'none'; | |||
loginForm.style.display = 'block'; | loginForm.style.display = 'block'; | ||
} | } | ||
خط ۶۵۶: | خط ۶۸۱: | ||
localStorage.setItem('adminLoggedIn', 'true'); | localStorage.setItem('adminLoggedIn', 'true'); | ||
checkAdminStatus(); | checkAdminStatus(); | ||
} else { | } else { | ||
showNotification('نام کاربری یا رمز عبور اشتباه است', true); | showNotification('نام کاربری یا رمز عبور اشتباه است', true); | ||
خط ۶۶۹: | خط ۶۹۳: | ||
}); | }); | ||
// افزودن محتوای | // افزودن محتوای سفارشی | ||
addCustomContent.addEventListener('click', function() { | |||
if (!isAdmin) { | if (!isAdmin) { | ||
showNotification('شما دسترسی لازم برای این عمل را ندارید', true); | showNotification('شما دسترسی لازم برای این عمل را ندارید', true); | ||
خط ۶۷۶: | خط ۷۰۰: | ||
} | } | ||
const title = | const title = customTitle.value.trim(); | ||
if (!title) | if (!title) { | ||
showNotification('لطفاً عنوان محتوا را وارد کنید', true); | |||
return; | return; | ||
} | } | ||
const category = customCategory.value; | |||
const urlValue = convertToUrlFormat(title); | const urlValue = convertToUrlFormat(title); | ||
خط ۶۹۸: | خط ۷۲۰: | ||
showNotification(`محتوای "${title}" با موفقیت اضافه شد`); | showNotification(`محتوای "${title}" با موفقیت اضافه شد`); | ||
customTitle.value = ''; | |||
// بهروزرسانی لیست در صورت انتخاب دستهبندی مربوطه | // بهروزرسانی لیست در صورت انتخاب دستهبندی مربوطه | ||
خط ۷۰۳: | خط ۷۲۶: | ||
updateContentList(category); | updateContentList(category); | ||
} | } | ||
}); | |||
// افزودن محتوای جدید (از طریق پنل مدیریت) | |||
addContentBtn.addEventListener('click', function() { | |||
if (!isAdmin) { | |||
showNotification('شما دسترسی لازم برای این عمل را ندارید', true); | |||
return; | |||
} | |||
// اسکرول به بخش محتوای سفارشی | |||
customContentSection.scrollIntoView({ behavior: 'smooth' }); | |||
customTitle.focus(); | |||
}); | }); | ||
نسخهٔ ۱۳ اکتبر ۲۰۲۵، ساعت ۰۰:۴۴
<!DOCTYPE html>
کتابخانه پدیا بایبل
مطالعه آنلاین کتابها و مقالات مذهبی شامل کتابهای مقدس و مقالات تخصصی
کتابخانه جامع منابع مذهبی
کتابخانه پدیا بایبل مرجع کامل و تخصصی برای مطالعه آنلاین کتابهای مقدس و مقالات مذهبی است. در این کتابخانه میتوانید به منابع معتبر و جامعی از متون دینی دسترسی داشته باشید.
کتابهای مقدس
مطالعه کتابهای مقدس از جمله عیسی، انجیل متی، مزامیر، پیدایش و دیگر متون مذهبی با ترجمههای معتبر
مقالات تخصصی
مقالات متعدد درباره موضوعات مذهبی مانند مسیح، تثلیث، نجات، روح القدس و دیگر مفاهیم دینی
ورود مدیران
برای تست: admin / admin123
هیچ محتوایی انتخاب نشده است
لطفاً یک کتاب یا مقاله از لیست انتخاب کنید