<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" contents="Web version">
<link rel="stylesheet" href="html/style_notebooks.css" type="text/css">
<title>Ноутбуки на складе</title>
<link rel="icon" href="html/laptop-icon-19529.png" type="image/x-icon" />
<style>
.image-container {
background-image: url(
"html/laptop.jpg");
width: 80%;
height: 300px;
background-repeat: no-repeat;
margin-top: 5px;
}
</style>
</head>
<body>
<header>
<nav id="navigation">
<ul>
<li><a href="index.php">Главная</a></li>
<li><a href="notebooks.php">Ноутбуки</a></li>
<li><a href="monitors.php">Мониторы</a></li>
<li><a href="monoblocks.php">Моноблоки</a></li>
</ul>
</nav>
</header>
<div id="contents">
<?php echo file_get_contents("html/header_notebooks.html"); ?>
<html>
<body>
<style>
.styled-table {
border-collapse: collapse;
margin: 5px 0;
font-size: 0.9em;
font-family: sans-serif;
min-width: 400px;
width:60%;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
table-layout: fixed;
float:right;
clear: both;
}
.styled-table thead tr {
background-color: #009879;
color: #ffffff;
text-align: left;
}
.styled-table th,
.styled-table td {
padding: 12px 12px;
overflow-wrap: break-word;
}
...
echo "<table class='styled-table'>
<thead>
<tr>
<td>Название</td>
<td>Модель</td>
<td>Инвентарный номер</td>
<td>Поступил</td>
<td>Предыдущий владелец</td>
</tr>
</thead>
</table>";
...
echo "<table class='styled-table'>
<tbody>
<tr>
<td>$row[0]</td>
<td>$row[1]</td>
<td>$row[2]</td>
<td>$last_date</td>
<td>$owner_prev</td>
</tr>
</tbody>
</table>";
<?php echo file_get_contents("html/header_notebooks.html"); ?>
<html>
<body>
...
</body>
</html>
<?php echo file_get_contents("html/footer_notebooks.html"); ?>
<style>
.image-container {
background-image: url(
"html/laptop.jpg");
width: 50%;
height: 300px;
background-repeat: no-repeat;
margin-top: 5px;
}
</style>
</div>
<footer>
<div class="image-container"></div>