Dateien nach "backend/src/main/webapp" hochladen

This commit is contained in:
2026-10-14 10:09:16 +02:00
parent 768e811e7e
commit 842879aa95
2 changed files with 388 additions and 75 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,11 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Workbench</title> <title>Workbench</title>
<link rel="stylesheet" href="/backend/ios.css"> <link rel="stylesheet" href="/backend/ios.css">
<style> <style>
h1 { h1 {
@@ -124,54 +124,58 @@
<img src="logo.png" alt="Logo" style="height: 50px;"> <img src="logo.png" alt="Logo" style="height: 50px;">
</header> </header>
<div id="container"> <div id="container">
<nav class="touch-nav" aria-label="Workbench Navigation"> <nav class="touch-nav" aria-label="Workbench Navigation">
<details class="nav-section" open> <details class="nav-section" open>
<summary>TR</summary> <summary>TR</summary>
<button type="button" class="nav-item active" data-page="Workorder.html"> <button type="button" class="nav-item active" data-page="Workorder.html">
<span>Workorder</span> <span>Workorder</span>
<small>Aktivierung</small> <small>Aktivierung</small>
</button> </button>
<button type="button" class="nav-item" data-page="Station.html"> <button type="button" class="nav-item" data-page="Station.html">
<span>Station</span> <span>Station</span>
<small>Fertigungsbaum</small> <small>Fertigungsbaum</small>
</button> </button>
</details> <button type="button" class="nav-item" data-page="HistoryBooking.html">
<details class="nav-section"> <span>HistoryData</span>
<summary>PM</summary> <small>Historydata</small>
<button type="button" class="nav-item" data-page="pm_seite1.html"> </button>
<span>Seite 1</span> </details>
<small>PM</small> <details class="nav-section">
</button> <summary>PM</summary>
<button type="button" class="nav-item" data-page="pm_seite2.html"> <button type="button" class="nav-item" data-page="pm_seite1.html">
<span>Seite 2</span> <span>Seite 1</span>
<small>PM</small> <small>PM</small>
</button> </button>
</details> <button type="button" class="nav-item" data-page="pm_seite2.html">
<details class="nav-section"> <span>Seite 2</span>
<summary>Import</summary> <small>PM</small>
<button type="button" class="nav-item" data-page="PARTImport.html"> </button>
<span>PART</span> </details>
<small>Material</small> <details class="nav-section">
</button> <summary>Import</summary>
<button type="button" class="nav-item" data-page="BOMImport.html"> <button type="button" class="nav-item" data-page="PARTImport.html">
<span>BOM</span> <span>PART</span>
<small>Stueckliste</small> <small>Material</small>
</button> </button>
<button type="button" class="nav-item" data-page="ErpAdd.html"> <button type="button" class="nav-item" data-page="BOMImport.html">
<span>ERPGroup</span> <span>BOM</span>
<small>ERP Gruppen</small> <small>Stueckliste</small>
</button> </button>
<button type="button" class="nav-item" data-page="Contacts.html"> <button type="button" class="nav-item" data-page="ErpAdd.html">
<span>Contacts</span> <span>ERPGroup</span>
<small>Kontakte</small> <small>ERP Gruppen</small>
</button> </button>
<button type="button" class="nav-item" data-page="Useradd.html"> <button type="button" class="nav-item" data-page="Contacts.html">
<span>UserImport</span> <span>Contacts</span>
<small>Benutzer</small> <small>Kontakte</small>
</button> </button>
</details> <button type="button" class="nav-item" data-page="Useradd.html">
</nav> <span>UserImport</span>
<small>Benutzer</small>
</button>
</details>
</nav>
<!-- Use an IFRAME instead of a <div id="content"> --> <!-- Use an IFRAME instead of a <div id="content"> -->
<iframe id="contentFrame" name="contentFrame" width="100%" height="100%"></iframe> <iframe id="contentFrame" name="contentFrame" width="100%" height="100%"></iframe>
</div> </div>
@@ -198,7 +202,7 @@
</div> </div>
</div> </div>
<script> <script>
// ---------------------- SESSION CHECK ---------------------- // ---------------------- SESSION CHECK ----------------------
// Example: Let's say sessionContext or "globallogin" is initially null // Example: Let's say sessionContext or "globallogin" is initially null
let globallogin = null; // or read from sessionStorage if desired let globallogin = null; // or read from sessionStorage if desired
@@ -215,29 +219,29 @@
document.getElementById('loginModal').style.display = 'none'; document.getElementById('loginModal').style.display = 'none';
}); });
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
const frame = document.getElementById("contentFrame"); const frame = document.getElementById("contentFrame");
const navItems = document.querySelectorAll(".nav-item[data-page]"); const navItems = document.querySelectorAll(".nav-item[data-page]");
function openPage(button) { function openPage(button) {
navItems.forEach(item => item.classList.remove("active")); navItems.forEach(item => item.classList.remove("active"));
button.classList.add("active"); button.classList.add("active");
const section = button.closest(".nav-section"); const section = button.closest(".nav-section");
if (section) { if (section) {
section.open = true; section.open = true;
} }
frame.src = button.dataset.page; frame.src = button.dataset.page;
} }
navItems.forEach(button => { navItems.forEach(button => {
button.addEventListener("click", () => openPage(button)); button.addEventListener("click", () => openPage(button));
}); });
const firstPage = document.querySelector(".nav-item.active") || navItems[0]; const firstPage = document.querySelector(".nav-item.active") || navItems[0];
if (firstPage) { if (firstPage) {
openPage(firstPage); openPage(firstPage);
} }
}); });
// ============== LOGIN FUNCTION (REST CALL) ============== // ============== LOGIN FUNCTION (REST CALL) ==============
const protocol = window.location.protocol; const protocol = window.location.protocol;