Exemplo n.º 1
0
<?php

session_start();
require_once 'lib/config.php';
require_once 'lib/functions.php';
if (!isset($_SESSION['cart'])) {
    $_SESSION['cart'] = array();
    $_SESSION['total_count'] = 0;
    $_SESSION['total_price'] = 0;
}
if (isset($_GET['id'])) {
    $clock = getOneClock($_GET['id']);
} else {
    header("refresh: 1; url=index.php");
}
?>
<!doctype html>
<html lang="ru">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/style.min.css">
	<link rel="stylesheet" href="css/magnify.min.css">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?php 
echo $clock['title'];
?>
</title>
	<meta name="keywords" content="<?php 
echo $clock['meta_k'];
?>
">
Exemplo n.º 2
0
<?php

require_once '../lib/config.php';
require_once '../lib/functions.php';
//error_reporting(0);
if (isset($_GET['id'])) {
    $products = getOneClock($_GET['id']);
} else {
    $products = getAdminProducts();
}
?>


<!doctype html>
<html lang="ru">
<head>
	<meta charset="UTF-8">
	<title>Редактирование товара</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../css/admin-style.min.css">
	<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
	<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
	<script src="../js/jquery-2.1.3.min.js"></script>
	<script src="bootstrap/bootstrap.min.js"></script>
</head>
<body>
<?php 
include 'blocks/menu.php';
?>

<?php