<?php
require_once("code/cors.php");
$objCore = new Core();
$objCore->initSessionInfo();
$objCore->initFormController();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Ваша новая мечта</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link href="style/css.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="shortcut icon" type="image/ico" href="images/favicon.gif" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/lightbox.js"></script>
<script type="text/javascript" language="javascript" src="javascript/jquery-1.3.2.js"></script>
<script type="text/javascript" language="javascript" src="javascript/index.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">
<table width="1280" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#6C6C6C">
<tr>
<td width="722" height="101" colspan="2" style="background: url(img/verh1.jpg) repeat-x"><img class="img" src="img/topL1.jpg" width="722" height="60"><img class="img" src="img/topL2.jpg" width="722" height="41"></td>
<td width="278" height="101"><img class="img" src="img/topR.jpg" width="278" height="101" border="0" usemap="#map1"></td>
</tr>
<tr>
<td width="1280" height="230" colspan="3" style="background: url(img/flashL.jpg) no-repeat; padding-left: 28px"><img class="img1" src="img/flash1.jpg" alt="flash" width="1252" height="232"></td>
</tr>
<tr>
<td width="1280" height="62" colspan="3" style="background: url(img/underflash.jpg) repeat-x; padding-left: 55px"><div align="center">
<a href="index.php" class="menu">Главная</a>
<a href="index.php?view=info" class="menu">Информация</a>
<a href="index.php?view=contacts" class="menu">Контакты</a>
<a href="index.php?view=zakaz" class="menu">Как сделать заказ</a>
<a href="index.php?view=oplata" class="menu">Способы оплаты</a>
<a href="index.php?view=stat" class="menu">Статистика</a>
</div>
</td></tr>
<tr valign="top">
<td width="268" style="background: url(img/leftBG.jpg) no-repeat" rowspan="2">
<img src="img/h1.gif" width="268" height="63"><br>
<div id="pageTxt">
<?php
$categories = get_cat();
foreach($categories as $item):
?>
<div><a href="index.php?view=cat&id=<?=$item['cat_id'];?>" class="lnkWhite"> <img class="imge" src="img/arr3.gif"><?=$item['name'];?></a></div>
<? endforeach; ?>
</div>
<?php
ob_start();
header ("Content-type: image/png");
$img = imagecreatefrompng("image.png");
$ink = imagecolorallocate($img, 255, 0, 0);
for ($i=0;$i<10;$i++)
for ($j=0;$j<10;$j++) {
imagesetpixel($img,$i,$j,$ink);
}
imagepng($img);
imagedestroy($img);
ob_end_flush();
?>
<?
include('db_fns.php');
include('cart_fns.php');
session_start();
if(!isset($_SESSION['cart']))
{
$_SESSION['cart'] = array();
$_SESSION['total_items'] = 0;
$_SESSION['total_price'] = '0.00';
}
$view = empty($_GET['view']) ? 'index' : $_GET['view'];
switch($view)
{
case('index'):
$products = get_products();
break;
case('cat'):
$cat = $_GET['id'];
$products = get_cat_products($cat);
break;
case('product'):
$id = $_GET['id'];
$product = get_product($id);
break;
case('cart'):
break;
case('add_to_cart'):
$id = $_GET['id'];
$add_item = add_to_cart($id);
$_SESSION['total_items'] = total_items($_SESSION['cart']);
$_SESSION['total_price'] = total_price($_SESSION['cart']);
header('Location: index.php?view=product&id='.$id);
break;
case('update_cart'):
update_cart();
$_SESSION['total_items'] = total_items($_SESSION['cart']);
$_SESSION['total_price'] = total_price($_SESSION['cart']);
header('Location: index.php?view=cart');
break;
case('order'):
break;
case('contacts'):
break;
case('info'):
break;
case('zakaz'):
break;
case('oplata'):
break;
case('sogl'):
break;
case('stat'):
break;
}
include($_SERVER['DOCUMENT_ROOT'].'/new-dream.ru/views/layouts/dream.php');
?>
вот.Z:\home\localhost\www\new-dream.ru\views\pages\product.php on line 3
‰PNG IHDRxИ¬МІр IDATxњґЅл¶,№q&ц}dХЮыtv7I5/вE‘Сe${~и1мcярZ~ ?њэі–Ч’oЏ-Љ’H±Щ2)ІЙsЩ{W&Ђя…КМЄs8cgџ>§*‰_\hёuэ7яоїхfащлеErхaыХџт;fFВМ?\<ІzЕр+{Hљ™™йчЦх¬ЪЩ_=~UХс-ЮЇ·U»Эѕђb0йЯгхgанЫ·»lсыЅы|‘R‡ЊXхДЂmк@їof¤ђІоPэ¦B[«эцeіЅМ№юUЃХЁЬёZ™.фљz…п ф;5¶YЅћµѓЧh=6”#лгujrуЉ~o·]Ш*з·ЅЭ{дьУ.]\Z¶пЕF ]ИDыW‡GшB7¬ЈНAr·Ќѕ2ц<2qЫ‰kшуО+„°‹эіaG‰QћЖ—