NRPC/nrpc_site/pages/part.php
2021-06-28 01:45:20 +03:00

56 lines
2.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
include '../config.php';
include '../code/exit_handle.php';
include '../code/part_code.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Товар</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<script src="../code/js_code.js"></script>
<body onload='cartCount()'>
<div id="wrapper">
<div id="header">
<ul id="nav">
<form name="unauth" method="post" action="shopping.php">
<li><a href="../index.php">На главную</a></li>
<li><a href="shopping.php">Каталог</a></li>
<?php if (isset($_COOKIE['login'])) { ?>
<li><a href="profile.php">Профиль</a></li>
<li><a href="cart.php">Корзина<div id='notif'>0</div></a></li>
<?php if (isset($_COOKIE['is_admin'])) { ?>
<li><a href="../admin/index.php">Админ. панель</a></li>
<?php } ?>
<li><input name="exit" type="submit" value="Выйти"/></li>
<?php } else { ?>
<li><a href="login.php">Войти</a></li>
<li><a href="register.php">Регистрация</a></li>
<?php } ?>
</form>
</ul>
</div>
<div id="masthead">
<h2><?= $part_name ?></h2>
</div>
<div id="blue-bar">
</div>
<div id="main">
<div id="content">
<?php showPart($con) ?>
</div>
</div>
<div id="footer">
<h1>Контакты</h1>
<h2>Связаться с нами можно по телефону: +7 (997) 190-55-05</h2>
<h2>Наш офис находится по адресу: ул. Амбаторный, д. 134</h2>
<h3><a href="https://vk.com/id369980463">Разработчик сайта</a></h3>
</div>
</div>
</body>
</html>