help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
travel-assistant-bot
/
templates
RSK World
travel-assistant-bot
Travel Assistant Bot - Python + Flask + OpenAI API + Travel Bot + Flight Search + Hotel Booking + Weather
templates
  • admin.html2 KB
  • index.html3.8 KB
  • license.html660 B
  • readme.html658 B
  • share.html773 B
admin.html
templates/admin.html
Raw Download
Find: Go to:
<!-- RSK World - Free Programming Resources & Source Code -->
<!-- Founder: Molla Samser | Designer & Tester: Rima Khatun -->
<!-- Website: https://rskworld.in/contact.php | Year: 2026 -->
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Admin - Travel Assistant Bot</title>
    <link rel="stylesheet" href="/static/css/style.css">
  </head>
  <body>
    <header>
      <h1>Admin Dashboard</h1>
      <p>Manage itineraries and monitor status.</p>
    </header>
    <main>
      <section class="tools">
        <div class="tool">
          <h3>Itineraries</h3>
          <div class="auth">
            <input id="admin-token" type="text" placeholder="Bearer token">
            <button id="admin-load">Load</button>
          </div>
          <ul id="admin-itineraries"></ul>
        </div>
      </section>
    </main>
    <script>
      async function loadItineraries() {
        const token = document.getElementById("admin-token").value.trim();
        const r = await fetch("/api/itineraries", {
          headers: token ? { Authorization: `Bearer ${token}` } : {},
        });
        const res = await r.json();
        const ul = document.getElementById("admin-itineraries");
        ul.innerHTML = "";
        (res.itineraries || []).forEach((i) => {
          const li = document.createElement("li");
          li.textContent = `#${i.id} ${i.user} ${i.created_at}`;
          const btn = document.createElement("button");
          btn.textContent = "Delete";
          btn.onclick = async () => {
            const r2 = await fetch(`/api/itineraries/${i.id}`, {
              method: "DELETE",
              headers: { Authorization: `Bearer ${token}` },
            });
            const j2 = await r2.json();
            if (j2.deleted) loadItineraries();
          };
          li.appendChild(btn);
          ul.appendChild(li);
        });
      }
      document.getElementById("admin-load").addEventListener("click", loadItineraries);
    </script>
  </body>
  </html>

60 lines•2 KB
markup
🚀 Support RSK World

Subscribe to our YouTube channel for latest tutorials & updates!



Click subscribe & support our work ❤️

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer