<? include ROOT.'/views/layouts/header.php';?> <div class="container-fluid"> <ol class="breadcrumb bread-primary "> <a href="/" class="btn btn-primary"><i class="fa fa-newspaper-1"></i> МАГАЗИН </a> <li><a href="/catalog/"> КАТАЛОГ </a></li> <li><a href="/platform/<?=$platform['id'];?>"><?=$platform['name_platforms'];?></a></li> <li class="active"><?=$product['name'];?></li> </ol> <div class="content-wrapper"> <div class="item-container"> <div class="container"> <div class="col-md-13"> <div class="product col-md-4 service-image-left"> <center> <img id="item-display" src="<?=Products::getImage($product['id']); ?>" alt=""></img> </center> </div> <div class="product-title"><?=$product['name'];?></div><br> <div class="ratings on-view"> <a href="" class="pull-left"> <?=Comment::countCommentsByProduct($product['id']);?> отзывов</a> </div> <hr> <div class="product-price"><?=$product['price'];?> грн</div> <div class="product-stock"><?php if($product['status'] == 1) echo "В наличии";?></div> <hr> <div class="btn-group cart"> <a href="#" data-id="<?=$product['id'];?>" class="btn btn-success add-to-basket">Купить</a> </div> </div> </div>
</a> <a class="right carousel-control" href="#carousel-example-generic" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> </div> </div> </div> <div class="row"> <?php $i=0; foreach($productList as $productItem) :?> <div class="col-sm-4 col-lg-4 col-md-4"> <div class="thumbnail"> <img src="<?=Products::getImage($productItem['id']); ?>"> <div class="caption"> <h5><a href="/product/<?=$productItem['id']?>"><?=$productItem['name']?></a></h5> <p><h4 ><?=$productItem['price']?> грн.</h4></p> <a href="#" data-id="<?=$productItem['id'];?>" class="btn btn-success add-to-basket">Купить</a> </div> <div class="ratings"> <a href="/product/<?=$productItem['id']?>" class="pull-right"> <?=Comment::countCommentsByProduct($productItem['id']);?> отзывов</a> </div> </div> </div> <?php $i++; endforeach;?> </div> </div>
?> </option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="image">Изображение</label> <div class="col-md-9"> <img src="<?php echo Products::getImage($product['id']); ?> " alt=""> <input id="image" name="image" type="file" class="form-control"> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="platform_id">Платформа</label> <div class="col-md-9"> <select id="platform_id" name="platform_id" class="form-control"> <?php if (is_array($platformList)) { ?> <?php foreach ($platformList as $platform) { ?>