File manager - Edit - /home/webapp68.cm.in.th/u68319090026/final/news/summary.html
Back
<!DOCTYPE html> <html lang="th"> <head> <meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> <title>สรุปจำนวนบทความ</title> <link href="https://fonts.googleapis.com/css2?family=Sarabun&display=swap" rel="stylesheet" /> <style> body { font-family: "Sarabun", sans-serif; max-width: 600px; margin: 20px auto; } nav a { margin: 0 10px; text-decoration: none; color: #3366cc; } nav a:hover { text-decoration: underline; } h1 { text-align: center; } ul { padding-left: 20px; } </style> </head> <body> <nav> <a href="dashboard.html">Dashboard</a> <a href="summary.html">สรุปจำนวนบทความ</a> <a href="users.html">จัดการผู้ใช้งาน</a> <a href="categories.html">จัดการหมวดหมู่</a> <a href="articles.html">เพิ่ม/แก้ไข/ลบ บทความ</a> </nav> <h1>สรุปจำนวนบทความ</h1> <p>จำนวนบทความทั้งหมด: <span id="articleCount"></span></p> <h2>บทความทั้งหมด</h2> <ul id="articleList"></ul> <script> if(localStorage.getItem('isAdminLoggedIn') !== 'true' && localStorage.getItem('isStudentLoggedIn') !== 'true') { alert('กรุณาเข้าสู่ระบบก่อน'); window.location.href = 'index.html'; } const articles = JSON.parse(localStorage.getItem('college_news_articles')) || []; document.getElementById('articleCount').innerText = articles.length; document.getElementById('articleList').innerHTML = articles.length ? articles.map(a => `<li><b>${a.title}</b> (${a.category || 'ไม่ระบุ'})</li>`).join('') : '<li>ไม่มีบทความ</li>'; </script> <div style="text-align: center; margin-top: 40px;"> <a href="dashboard.html" style="text-decoration: none; color: #3366cc; font-weight: bold;">← กลับไปหน้า Dashboard</a> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.64 |
proxy
|
phpinfo
|
Settings