auto33electric / clients.html
YURIY33's picture
САЙТ БАЗА ДАННЫХ ДЛЯ АВТОСЕРВИСА - Initial Deployment
20df073 verified
Raw History Blame Contribute Delete
13.5 kB
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Клиенты - AutoServiceDB</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar (same as index.html) -->
<div id="sidebar" class="sidebar sidebar-expanded bg-gray-800 text-white shadow-lg">
<!-- Sidebar content from index.html -->
</div>
<!-- Main Content -->
<div class="main-content flex-1 flex flex-col overflow-hidden">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between px-6 py-4">
<div class="flex items-center space-x-4">
<h1 class="text-2xl font-semibold text-gray-800">Управление клиентами</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="bell" class="text-gray-600 hover:text-blue-500 cursor-pointer"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</div>
<div class="flex items-center space-x-2">
<img src="http://static.photos/people/200x200/1" alt="User" class="h-8 w-8 rounded-full">
<span class="text-gray-700">Администратор</span>
</div>
</div>
</div>
</header>
<!-- Clients Content -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<!-- Client Search and Actions -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6 gap-4">
<div class="relative w-full md:w-96">
<input type="text" placeholder="Поиск клиентов..." class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<i data-feather="search" class="absolute left-3 top-3 text-gray-400"></i>
</div>
<div class="flex space-x-3">
<button class="flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
<i data-feather="plus" class="mr-2"></i>
Добавить клиента
</button>
<button class="flex items-center px-4 py-2 bg-white border border-gray-300 rounded-lg hover:bg-gray-50">
<i data-feather="download" class="mr-2"></i>
Экспорт
</button>
</div>
</div>
<!-- Clients Table -->
<div class="bg-white rounded-lg shadow overflow-hidden" data-aos="fade-up">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="text-lg font-semibold text-gray-800">Список клиентов</h2>
<div class="flex items-center space-x-2">
<span class="text-sm text-gray-500">Всего: 156</span>
<select class="text-sm border rounded px-2 py-1">
<option>10 на странице</option>
<option>25 на странице</option>
<option>50 на странице</option>
</select>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ФИО</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Телефон</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Автомобилей</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Последний визит</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Действия</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#CL-1001</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<img src="http://static.photos/people/200x200/2" alt="Client" class="h-8 w-8 rounded-full mr-3">
<div>
<div class="font-medium text-gray-900">Иванов Алексей Сергеевич</div>
<div class="text-gray-500 text-xs">VIP клиент</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+7 (912) 345-67-89</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">ivanov@example.com</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2"></i>
</button>
</div>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#CL-1002</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<img src="http://static.photos/people/200x200/3" alt="Client" class="h-8 w-8 rounded-full mr-3">
<div>
<div class="font-medium text-gray-900">Петрова Мария Ивановна</div>
<div class="text-gray-500 text-xs">Постоянный клиент</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+7 (912) 987-65-43</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">petrova@example.com</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2"></i>
</button>
</div>
</td>
</tr>
<!-- More client rows... -->
</tbody>
</table>
</div>
<!-- Pagination -->
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Назад</a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Вперед</a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Показано с <span class="font-medium">1</span> по <span class="font-medium">10</span> из <span class="font-medium">156</span> клиентов
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i data-feather="chevron-left" class="h-5 w-5"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">...</span>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">15</a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i data-feather="chevron-right" class="h-5 w-5"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Initialize AOS animations
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize feather icons
feather.replace();
</script>
</body>
</html>