public function new_tovar_giftAction()
 {
     $tovar = new Tovar($this->context);
     $this->view->setVar('proba', $tovar->SaveNewTovar());
     $vMarket = new Market($this->context);
     $this->view->setVar('block_cat_comission', $vMarket->getCategoriesCommTreeHTML());
     $this->view->breadcrumbs = array(array('url' => '/', 'title' => 'Главная'), array('url' => '/market/', 'title' => 'Маркет'), array('url' => '../market/comissionka', 'title' => 'Дарю/Меняю'));
     $this->view->generate();
 }
Esempio n. 2
0
			<a href="#carousel-example" class="carousel-control right" data-slide="next">
				<span class="icon-next"></span>
			</a>
		</div>
			</div>
			<!--End of adblock-->
			<div class="content_block">
				<div id="content">
									<?php 
//$settings = new SliderSettings();
include_once "phplibs/class_item.php";
$n = 5;
//кол-во товара на одну строку
$width = 200;
$height = 270;
$tovar = new Tovar();
$toolbar = new ToolBar();
$toolbar->construct();
$tovar->setSize($width, $height);
$tovar->setStyle("#FF7373");
$tovar->setMargin($n * $width + 20 * $n);
//задать равноудаленность для товаров
$odrer_query = "";
$title = "Главная";
switch ($_GET['age']) {
    case "jun":
        $odrer_query .= " WHERE `pet_age_id` = 1";
        break;
    case "pregnant":
        $odrer_query .= " WHERE `pet_age_id` = 2";
        break;