<?php

session_start();
if (!isset($_SESSION['sessCategory'])) {
    header('Location: index.php');
    exit;
}
include_once 'inc/classes/Technology.php';
include_once 'inc/classes/TechnologyInfo.php';
include_once 'inc/classes/TechnologyInfoImage.php';
include_once 'inc/classes/Category.php';
$objTechnology = new Technology($_REQUEST['id']);
$objTechnologyInfo = new TechnologyInfo();
$oTechnologyInfo = $objTechnologyInfo->getAllTechnologyInfoByTechnologyId($_REQUEST['id']);
$objTechnologyInfoImage = new TechnologyInfoImage();
$oTechnologyInfoImage = $objTechnologyInfoImage->GetAllTechnologyInfoImageByTechnologyInfoId($oTechnologyInfo[0]->Id);
$objCategory = new Category($_SESSION['sessCategory']);
$bgcolor = "#F40000";
// Coke red default
if ($objCategory->BackgroundColor != "") {
    $bgcolor = $objCategory->BackgroundColor;
}
$background = $bgcolor . " none repeat scroll 0% 0%";
// this is used in single-product-template.php
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Coke Cooler</title>
	<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">