mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
264 lines
14 KiB
HTML
264 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="cs">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Aplikační Rozcestník</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
|
<style>
|
|
.card {
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-gray-100 min-h-screen">
|
|
<header class="bg-gradient-to-r from-blue-600 to-indigo-700 text-white shadow-lg" style="margin-bottom: 20px;">
|
|
<div class="container mx-auto px-4 py-6 flex items-center">
|
|
|
|
<div>
|
|
<h1 class="text-3xl font-bold">Poppe + Potthoff - Firemní Aplikace</h1>
|
|
<p class="mt-2 text-blue-100">Rychlý přístup ke všem důležitým systémům</p>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container mx-auto px-4 py-8">
|
|
<!-- Search -->
|
|
<div class="mb-8 max-w-xl mx-auto">
|
|
<div class="relative">
|
|
<input type="text" id="search" placeholder="Hledat aplikaci..." style="margin-bottom: 20px;"
|
|
class="w-full px-4 py-3 rounded-lg shadow-sm border-gray-200 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none">
|
|
<div class="absolute right-3 top-3 text-gray-400">
|
|
<i class="fas fa-search"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Apps Grid -->
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
|
<!-- 1. Car trips app -->
|
|
<div class="card bg-white rounded-xl shadow p-6 border-t-4 border-blue-600" data-name="zápis cest aut project">
|
|
<div class="rounded-full w-14 h-14 flex items-center justify-center bg-blue-100 text-blue-600 mb-4">
|
|
<i class="fas fa-car-side text-2xl"></i>
|
|
</div>
|
|
<h2 class="text-xl font-bold text-gray-800 mb-2">Záznam jízdy služebního vozu</h2>
|
|
<p class="text-gray-600 mb-4">Systém pro evidenci služebních jízd.</p>
|
|
<a href="/evidence-aut" class="block text-center bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-colors">
|
|
Otevřít aplikaci
|
|
</a>
|
|
</div>
|
|
|
|
<!-- 2. Lunches -->
|
|
<div class="card bg-white rounded-xl shadow p-6 border-t-4 border-green-600" data-name="obědy obedy jídlo lunch">
|
|
<div class="rounded-full w-14 h-14 flex items-center justify-center bg-green-100 text-green-600 mb-4">
|
|
<i class="fas fa-utensils text-2xl"></i>
|
|
</div>
|
|
<h2 class="text-xl font-bold text-gray-800 mb-2">Objednávka obědů</h2>
|
|
<p class="text-gray-600 mb-4">Portál pro objednávku a přehled firemních obědů</p>
|
|
<a href="http://ppc-app/pwkweb2" class="block text-center bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition-colors">
|
|
Otevřít aplikaci
|
|
</a>
|
|
</div>
|
|
|
|
<!-- 3. OSTicket -->
|
|
<div class="card bg-white rounded-xl shadow p-6 border-t-4 border-orange-600" data-name="osticket pomoc podpora support ticket">
|
|
<div class="rounded-full w-14 h-14 flex items-center justify-center bg-orange-100 text-orange-600 mb-4">
|
|
<i class="fas fa-headset text-2xl"></i>
|
|
</div>
|
|
<h2 class="text-xl font-bold text-gray-800 mb-2">OSTicket</h2>
|
|
<p class="text-gray-600 mb-4">Systém technické podpory a hlášení problémů</p>
|
|
<a href="http://osticket/" class="block text-center bg-orange-600 hover:bg-orange-700 text-white font-medium py-2 px-4 rounded-lg transition-colors">
|
|
Otevřít aplikaci
|
|
</a>
|
|
</div>
|
|
|
|
<!-- 4. Canboard tasks -->
|
|
<div class="card bg-white rounded-xl shadow p-6 border-t-4 border-purple-600" data-name="canboard úkoly úkolníček tasks">
|
|
<div class="rounded-full w-14 h-14 flex items-center justify-center bg-purple-100 text-purple-600 mb-4">
|
|
<i class="fas fa-tasks text-2xl"></i>
|
|
</div>
|
|
<h2 class="text-xl font-bold text-gray-800 mb-2">Kanboard</h2>
|
|
<p class="text-gray-600 mb-4">Správa úkolů a projektů v přehledném kanban stylu</p>
|
|
<a href="http://kanboard/" class="block text-center bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition-colors">
|
|
Otevřít aplikaci
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Separator with heading -->
|
|
<div class="my-10 text-center">
|
|
<div class="relative">
|
|
<div class="absolute inset-0 flex items-center">
|
|
<div class="w-full border-t border-gray-300"></div>
|
|
</div>
|
|
<div class="relative flex justify-center">
|
|
<span class="bg-gray-100 px-4 text-sm text-gray-500">WINDOWS SDÍLENÉ SLOŽKY</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Windows Folders Grid - smaller and more subtle cards -->
|
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
<!-- 1. Telefonní seznam -->
|
|
<div class="card bg-white rounded-lg shadow-sm p-4 border border-gray-200" data-name="telefonní seznam telefony kontakty">
|
|
<div class="flex items-center">
|
|
<div class="rounded-full w-10 h-10 flex items-center justify-center bg-gray-100 text-gray-600 mr-3">
|
|
<i class="fas fa-phone-alt"></i>
|
|
</div>
|
|
<div class="flex-1">
|
|
<h3 class="text-md font-medium text-gray-800">Telefonní seznam</h3>
|
|
<p class="text-xs text-gray-500 mb-2">Aktuální telefonní seznam společnosti</p>
|
|
</div>
|
|
</div>
|
|
<button onclick="openWindowsFolder('M:\\X. IT\\0. PUBLIC\\Aktuální telefonní seznam')" class="block w-full text-center bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm py-1 px-3 rounded transition-colors mt-2">
|
|
<i class="fas fa-folder-open mr-1"></i> Otevřít složku
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 2. Řízená dokumentace -->
|
|
<div class="card bg-white rounded-lg shadow-sm p-4 border border-gray-200" data-name="řízená dokumentace dokumenty">
|
|
<div class="flex items-center">
|
|
<div class="rounded-full w-10 h-10 flex items-center justify-center bg-gray-100 text-gray-600 mr-3">
|
|
<i class="fas fa-file-alt"></i>
|
|
</div>
|
|
<div class="flex-1">
|
|
<h3 class="text-md font-medium text-gray-800">Řízená dokumentace</h3>
|
|
<p class="text-xs text-gray-500 mb-2">Přístup k firemní řízené dokumentaci</p>
|
|
</div>
|
|
</div>
|
|
<button onclick="openWindowsFolder('M:\\06. ŘÍZENÁ DOKUMENTACE')" class="block w-full text-center bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm py-1 px-3 rounded transition-colors mt-2">
|
|
<i class="fas fa-folder-open mr-1"></i> Otevřít složku
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 3. Management úkolů -->
|
|
<div class="card bg-white rounded-lg shadow-sm p-4 border border-gray-200" data-name="management úkolů úkoly projekty">
|
|
<div class="flex items-center">
|
|
<div class="rounded-full w-10 h-10 flex items-center justify-center bg-gray-100 text-gray-600 mr-3">
|
|
<i class="fas fa-clipboard-list"></i>
|
|
</div>
|
|
<div class="flex-1">
|
|
<h3 class="text-md font-medium text-gray-800">Management úkolů</h3>
|
|
<p class="text-xs text-gray-500 mb-2">Systém pro správu a sledování firemních úkolů</p>
|
|
</div>
|
|
</div>
|
|
<button onclick="openWindowsFolder('M:\\10. MANAGEMENT ÚKOLŮ')" class="block w-full text-center bg-gray-200 hover:bg-gray-300 text-gray-700 text-sm py-1 px-3 rounded transition-colors mt-2">
|
|
<i class="fas fa-folder-open mr-1"></i> Otevřít složku
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="bg-gray-800 text-gray-400 py-6 mt-12">
|
|
<div class="container mx-auto px-4 text-center">
|
|
<p>© 2025 Poppe + Potthoff</p>
|
|
<p class="mt-2 text-sm">Created by <a href="https://tdvorak.dev" class="text-blue-400 hover:text-blue-300">TDvorak</a></p>
|
|
</div>
|
|
</footer>
|
|
|
|
<script>
|
|
// Search functionality
|
|
const searchInput = document.getElementById('search');
|
|
const appCards = document.querySelectorAll('.card');
|
|
|
|
searchInput.addEventListener('input', function() {
|
|
const searchTerm = this.value.toLowerCase();
|
|
|
|
appCards.forEach(card => {
|
|
const cardName = card.getAttribute('data-name').toLowerCase();
|
|
const cardTitle = card.querySelector('h2') || card.querySelector('h3');
|
|
const cardDesc = card.querySelector('p');
|
|
const titleText = cardTitle ? cardTitle.textContent.toLowerCase() : '';
|
|
const descText = cardDesc ? cardDesc.textContent.toLowerCase() : '';
|
|
|
|
if (cardName.includes(searchTerm) || titleText.includes(searchTerm) || descText.includes(searchTerm)) {
|
|
card.style.display = 'block';
|
|
} else {
|
|
card.style.display = 'none';
|
|
}
|
|
});
|
|
});
|
|
|
|
// Function to open Windows Explorer with a specific path using multiple methods for compatibility
|
|
function openWindowsFolder(path) {
|
|
// Method 1: Try using ActiveX (works in Internet Explorer)
|
|
if (window.ActiveXObject !== undefined) {
|
|
try {
|
|
const shell = new ActiveXObject("Shell.Application");
|
|
shell.Explore(path);
|
|
console.log('Folder opened via ActiveX');
|
|
return;
|
|
} catch (e) {
|
|
console.log("ActiveX failed or not supported: " + e.message);
|
|
}
|
|
}
|
|
|
|
// Method 2: Try using the file:// protocol
|
|
try {
|
|
// Format the path for the file:// protocol
|
|
const formattedPath = path.replace(/\\/g, '/'); // Replace backslashes with forward slashes
|
|
const fileUrl = 'file:///' + formattedPath;
|
|
|
|
// Open in a new window
|
|
const newWindow = window.open(fileUrl, '_blank');
|
|
|
|
// Check if window was blocked by popup blocker
|
|
if (newWindow) {
|
|
console.log('Folder opened via file:// protocol');
|
|
return;
|
|
} else {
|
|
console.log('Popup was blocked');
|
|
}
|
|
} catch (e) {
|
|
console.log("file:// protocol failed: " + e.message);
|
|
}
|
|
|
|
// Method 3: Fallback to server-side approach if available
|
|
try {
|
|
fetch(`/open?path=${encodeURIComponent(path)}`)
|
|
.then(response => {
|
|
if (!response.ok) {
|
|
throw new Error('Server method failed');
|
|
}
|
|
console.log('Folder opened via server');
|
|
})
|
|
.catch(error => {
|
|
// If all methods fail, show instructions to the user
|
|
console.error('All methods failed:', error);
|
|
showFolderInstructions(path);
|
|
});
|
|
} catch (e) {
|
|
// If fetch isn't available or fails immediately
|
|
showFolderInstructions(path);
|
|
}
|
|
}
|
|
|
|
// Show instructions to the user when all automatic methods fail
|
|
function showFolderInstructions(path) {
|
|
const instructions = `
|
|
<div style="text-align: left; padding: 15px;">
|
|
<h3>Otevření složky Windows</h3>
|
|
<p>Automatické otevření složky selhalo. Zkuste jeden z následujících postupů:</p>
|
|
<ol>
|
|
<li>Zkopírujte tuto cestu: <br><input type="text" value="${path}" style="width: 100%; padding: 5px; margin: 5px 0;" onclick="this.select();"></li>
|
|
<li>Otevřete Průzkumník Windows (Win+E)</li>
|
|
<li>Vložte cestu do adresního řádku a stiskněte Enter</li>
|
|
</ol>
|
|
<button onclick="this.parentNode.parentNode.remove()" style="padding: 5px 10px; margin-top: 10px;">Zavřít</button>
|
|
</div>
|
|
`;
|
|
|
|
const modal = document.createElement('div');
|
|
modal.style.cssText = 'position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000;';
|
|
modal.innerHTML = `<div style="background: white; border-radius: 8px; max-width: 500px; box-shadow: 0 4px 8px rgba(0,0,0,0.2);">${instructions}</div>`;
|
|
document.body.appendChild(modal);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |