0 Пользователей и 1 Гость просматривают эту тему.
  • 28 Ответов
  • 7046 Просмотров
*

charodej

  • Новичок
  • 4
  • 0 / 0
нашел тут как вывести таблицей http://joomlaforum.ru/index.php/topic,229837.0.html

подскажите пожалуйста как сделать зебру. очень НАДО!
« Последнее редактирование: 07.11.2012, 01:47:29 от ELLE »
*

Aventurier

  • Захожу иногда
  • 129
  • 16 / 0
Re: Товар таблицей + зебра
« Ответ #1 : 06.11.2012, 02:25:07 »
C помощью JQuery.
Например:

Код: javascript
<script type="text/javascript">
$(document).ready(function(){
$("table tr:odd").css("background-color", "#fff7d6");
});
</script>

Теги и цвет меняете в зависимости от ваших условий.
*

charodej

  • Новичок
  • 4
  • 0 / 0
Re: Товар таблицей + зебра
« Ответ #2 : 06.11.2012, 14:18:42 »
C помощью JQuery.
Например:

Код: javascript
<script type="text/javascript">
$(document).ready(function(){
$("table tr:odd").css("background-color", "#fff7d6");
});
</script>

Теги и цвет меняете в зависимости от ваших условий.

подскажите пожалуйста куда вставлять данный код прямо в default.php ?
*

MetaSpirit

  • Завсегдатай
  • 1370
  • 106 / 0
  • R.A.S.Lab[.org]
Re: Товар таблицей + зебра
« Ответ #3 : 06.11.2012, 15:44:38 »
само собой разумеется
R.A.S.Lab[.org]: ZOOvirtue - корзина для ZOO, Яндекс.Карты для ZOO, ItemPanes - табы для ZOO, ZOOlendar - календарь для ZOO  и др.
Создание расширений для YOOtheme ZOO на заказ. Становитесь в очередь.
*

charodej

  • Новичок
  • 4
  • 0 / 0
Re: Товар таблицей + зебра
« Ответ #4 : 07.11.2012, 00:59:40 »
добавлю точности. все это ставить в самый верх файла + добавить и получается следующее (ну и сам ФАЙЛИК jquery.js не забудьте)

<script type="text/javascript" src="<?php echo $this->baseurl ;?>/templates/js/jquery.js" ></script>


<script type="text/javascript">
$(document).ready(function(){
$("table tr:odd").css("background-color", "#fff7d6");
});
</script>

СПАСИБО MetaSpirit
*

Fedor Vlasenko

  • Живу я здесь
  • 3845
  • 733 / 7
  • https://fedor-vlasenko.web.app
*

Aventurier

  • Захожу иногда
  • 129
  • 16 / 0
Re: [Решено] Товар таблицей + зебра
« Ответ #6 : 07.11.2012, 03:22:34 »
Вот какими надо быть ..., чтобы делать c помощью скриптов
Решается с помощью правки css
Тоже вариант, но ваш метод поддерживает меньшее количество браузеров.
*

Stasweb

  • Завсегдатай
  • 1492
  • 24 / 0
Re: [Решено] Товар таблицей + зебра
« Ответ #7 : 12.11.2012, 10:33:56 »
а вот вопрос в моем случаи как поступить
http://lik-material.kz/index.php/ru/baget/baget-1611-v14-detail
*

Aventurier

  • Захожу иногда
  • 129
  • 16 / 0
Re: [Решено] Товар таблицей + зебра
« Ответ #8 : 12.11.2012, 12:52:07 »
а вот вопрос в моем случаи как поступить
http://lik-material.kz/index.php/ru/baget/baget-1611-v14-detail
а что вы хотели узнать?
*

Stasweb

  • Завсегдатай
  • 1492
  • 24 / 0
Re: [Решено] Товар таблицей + зебра
« Ответ #9 : 12.11.2012, 12:58:17 »
ну тоесть зебру хотелось на описание товара

серый
белый
серый
белый

примерно такого плана

вот этот блок так ка я понял суда надо ставить а вот что и как
Спойлер
[свернуть]
« Последнее редактирование: 12.11.2012, 13:23:25 от Stasweb »
*

Aventurier

  • Захожу иногда
  • 129
  • 16 / 0
Re: [Решено] Товар таблицей + зебра
« Ответ #10 : 12.11.2012, 19:41:29 »
У вас вообще чистый HTML + CSS
*

Stasweb

  • Завсегдатай
  • 1492
  • 24 / 0
Re: [Решено] Товар таблицей + зебра
« Ответ #11 : 13.11.2012, 07:49:05 »
ну понятно что в этом js идет табличный дизайн а вот на моем можно что то решить
*

expertseo

  • Осваиваюсь на форуме
  • 13
  • 3 / 0
Re: Товар таблицей + зебра
« Ответ #12 : 23.11.2012, 22:13:22 »
Ребята привет ! Использую данный вариант отображения таблицей товаров, но вот ведь не задача... не могу нарыть как правильно воткнуть код отображения цены на товар! и еще один косяк есть не работают кнопки прибавить количество товара "+" и  "-" кроме первой строки в таблице!

Помогите разобраться пожалуйста ! ссылка на страничку категории товаров http://test.lev-toys.ru/index.php/vm-shopping-cart/1-igrushki_derevyannie

Код
<script type="text/javascript" src="<?php echo $this->baseurl ;?>/templates/js/jquery.js" ></script>


<script type="text/javascript">
$(document).ready(function(){
$("table tr:odd").css("background-color", "#fff7d6");
});
</script>

<?php
/**
*
* Show the products in a category
*
* @package VirtueMart
* @subpackage
* @author RolandD
* @author Max Milbers
* @todo add pagination
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 6297 2012-07-24 19:19:34Z Milbo $
*/

//vmdebug('$this->category',$this->category);
vmdebug('$this->category '.$this->category->category_name);
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
JHTML::_( 'behavior.modal' );
/* javascript for list Slide
  Only here for the order list
  can be changed by the template maker
*/
$js = "
jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});
";

$document = JFactory::getDocument();
$document->addScriptDeclaration($js);

/*$edit_link = '';
if(!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'permissions.php');
if (Permissions::getInstance()->check("admin,storeadmin")) {
$edit_link = '<a href="'.JURI::root().'index.php?option=com_virtuemart&tmpl=component&view=category&task=edit&virtuemart_category_id='.$this->category->virtuemart_category_id.'">
'.JHTML::_('image', 'images/M_images/edit.png', JText::_('COM_VIRTUEMART_PRODUCT_FORM_EDIT_PRODUCT'), array('width' => 16, 'height' => 16, 'border' => 0)).'</a>';
}

echo $edit_link; */
if ( empty($this->keyword) ) {
?>
<div class="category_description">
<?php echo $this->category->category_description ; ?>
</div>
<?php
}

/* Show child categories */

if ( VmConfig::get('showCategory',1) and empty($this->keyword)) {
if ($this->category->haschildren) {

// Category and Columns Counter
$iCol = 1;
$iCategory = 1;

// Calculating Categories Per Row
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );

// Separator
$verticalseparator = " vertical-separator";
?>

<div class="category-view">


<?php // Start the Output
if(!empty($this->category->children)){
foreach ( $this->category->children as $category ) {

// Show the horizontal seperator
if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
<div class="horizontal-separator"></div>
<?php }

// this is an indicator wether a row needs to be opened or not
if ($iCol == 1) { ?>
<div class="row">
<?php }

// Show the vertical seperator
if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Category Link
$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );

// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false);
//} ?>
</a>
</h2>
</div>
</div>
<?php
$iCategory ++;

// Do we need to close the current row now?
if ($iCol == $categories_per_row) { ?>
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>

<?php }
}
?>
<div class="browse-view">
    <?php
if (!empty($this->keyword)) {
?>
<h3><?php echo $this->keyword; ?></h3>
<?php
} ?>
  <?php if ($this->search !==null ) { ?>
   <form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&limitstart=0&virtuemart_category_id='.$this->category->virtuemart_category_id ); ?>" method="get">

   <!--BEGIN Search Box --><div class="virtuemart_search">
   <?php echo $this->searchcustom ?>
   <br />
   <?php echo $this->searchcustomvalues ?>
   <input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>" />
   <input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SEARCH')?>" class="button" onclick="this.form.keyword.focus();"/>
   </div>
   <input type="hidden" name="search" value="true" />
   <input type="hidden" name="view" value="category" />

   </form>
<!-- End Search Box -->
<?php } ?>

<?php // Show child categories
if (!empty($this->products)) {
?>
<!-- <div class="orderby-displaynumber">
<div class="width70 floatleft">
<?php echo $this->orderByList['orderby']; ?><?php echo $this->orderByList['manufacturer']; ?>
</div>


<div class="clear"></div>
</div>   -->

<h1><?php echo $this->category->category_name; ?></h1>

<table width="83%" border="1" align="center" cellspacing="0" class="bordered">
<thead>
  <tr>
    <th width="28" height="38"><div align="center"><strong>Код</strong></div></th>
    <th width="38" height="38"><div align="center"><strong>Фото</strong></div></th>
    <th width="69" height="38"><div align="center">Название</div></th>
    <th width="60" height="38"><div align="center"><strong>Остаток</strong></div></th>
    <th width="80"><div align="center">Цена</div></th>
    <th width="169" height="38"><div align="center">Купить</div></th>
  </tr>
 </thead>

<?php
// Category and Columns Counter
$iBrowseCol = 1;
$iBrowseProduct = 1;

// Calculating Products Per Row
$BrowseProducts_per_row = $this->perRow;
$Browsecellwidth = ' width'.floor ( 100 / $BrowseProducts_per_row );

// Separator
$verticalseparator = " vertical-separator";

// Count products ?? why not just count ($this->products)  ?? note by Max Milbers
$BrowseTotalProducts = 0;
foreach ( $this->products as $product ) {
   $BrowseTotalProducts ++;
}

// Start the Output
foreach ( $this->products as $product ) {

// Show the horizontal seperator
if ($iBrowseCol == 1 && $iBrowseProduct > $BrowseProducts_per_row) { ?>

<?php }

// this is an indicator wether a row needs to be opened or not
if ($iBrowseCol == 1) { ?>
<div class="row"></div>
<?php }

// Show the vertical seperator
if ($iBrowseProduct == $BrowseProducts_per_row or $iBrowseProduct % $BrowseProducts_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Show Products ?>

 <tr>
    <td height="60"><span style="margin-left:5px"><?php echo $product->product_sku ?></span></td>
    <td width="38"><div align="center"><span style="padding: 3px"><?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?></span></div></td>
    <td><div align="center"><span style="margin-left:5px"><?php echo $product->product_name ?></span></div></td>
    <td><div align="center"><span style="margin-left:5px"><?php echo $product->product_in_stock ?></span></div></td>
    <td><div align="center">
      <div align="center"></div>
      <div align="center"></div></td>
    <td><div align="center"><form method="post" class="product" action="index.php" id="addtocartproduct<?php echo $product->virtuemart_product_id ?>">
<div class="addtocart-bar">

<?php // Display the quantity box ?>
<!-- <label for="quantity<?php echo $product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
<span class="quantity-box">
<input  type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php // Display the quantity box END ?>

<?php // Add the button
$button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
$button_cls = ''; //$button_cls = 'addtocart_button';
if (VmConfig::get('check_stock') == '1' && !$product->product_in_stock) {
$button_lbl = JText::_('COM_VIRTUEMART_CART_NOTIFY');
$button_cls = 'notify-button';
} ?>

<?php // Display the add to cart button ?>
<span class="addtocart-button">
<input type="submit" name="addtocart"  class="addtocart-button" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
</span>

<div class="clear"></div>
</div>

<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $product->product_name ?>">
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" />
<?php /** @todo Handle the manufacturer view */ ?>
<input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $product->virtuemart_manufacturer_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />
  


<?php

   // Do we need to close the current row now?
   if ($iBrowseCol == $BrowseProducts_per_row || $iBrowseProduct == $BrowseTotalProducts) {?>
   <div class="clear"></div>
  <!-- end of row -->
      <?php
      $iBrowseCol = 1;
   } else {
      $iBrowseCol ++;
   }

   $iBrowseProduct ++;
} // end of foreach ( $this->products as $product )
// Do we need a final closing row tag?
if ($iBrowseCol != 1) { ?>
<div class="clear"></div>

<?php
}
?>

<?php } elseif ($this->search !==null ) echo JText::_('COM_VIRTUEMART_NO_RESULT').($this->keyword? ' : ('. $this->keyword. ')' : '')
?>
</table>
<div class="vm-pagination"><?php echo $this->vmPagination->getPagesLinks(); ?></div>
<div class="width30 floatright display-number">Показывать по <?php echo $this->vmPagination->getLimitBox(); ?></div>
</div><!-- конец -->
« Последнее редактирование: 23.11.2012, 22:17:57 от expertseo »
*

Aventurier

  • Захожу иногда
  • 129
  • 16 / 0
RE: Товар таблицей + зебра
« Ответ #13 : 24.11.2012, 01:30:51 »
Ну, во-первых вы зря второй раз подключили jQuery, он у вас уже есть. Выбросьте строчку:
<script type="text/javascript" src="/templates/js/jquery.js" ></script>

Дальше у вас стоит функция noconflict, поэтому дальнейший код надо переделать на:
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("table tr:odd").css("background-color", "#fff7d6");
});
</script>
*

expertseo

  • Осваиваюсь на форуме
  • 13
  • 3 / 0
RE: Товар таблицей + зебра
« Ответ #14 : 24.11.2012, 09:26:11 »
Спасибо за подсказку  ^-^!

Самое важное, как же решить задачу с выводом цены и не работающими кнопками + и - :(
*

Aventurier

  • Захожу иногда
  • 129
  • 16 / 0
Re: Товар таблицей + зебра
« Ответ #15 : 24.11.2012, 22:11:53 »
Ну вообще-то была вероятность, что это может как-то влиять на неработающие кнопки + и -, поэтому я и предложил исправить код. В любом случае это надо было сделать.
Цену, я смотрю, вы уже вывели.
*

expertseo

  • Осваиваюсь на форуме
  • 13
  • 3 / 0
RE: Товар таблицей + зебра
« Ответ #16 : 25.11.2012, 15:19:21 »
да с кодом цены разобрался! но вот кнопки + и - пока еще не решил как поправить.. ^-^
*

expertseo

  • Осваиваюсь на форуме
  • 13
  • 3 / 0
RE: Товар таблицей + зебра
« Ответ #17 : 01.12.2012, 10:15:57 »
Вот мой вариант решения данного вопроса. Товар таблицей + зебра.

http://lev-toys.ru/index.php?option=com_virtuemart&view=category&virtuemart_category_id=2


Код
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("table tr:odd").css("background-color", "#fff7d6");
});
</script>

<?php
/**
*
* Show the products in a category
*
* @package VirtueMart
* @subpackage
* @author RolandD
* @author Max Milbers
* @todo add pagination
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 6297 2012-07-24 19:19:34Z Milbo $
*/

//vmdebug('$this->category',$this->category);
vmdebug('$this->category '.$this->category->category_name);
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
JHTML::_( 'behavior.modal' );
/* javascript for list Slide
  Only here for the order list
  can be changed by the template maker
*/
$js = "
jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});
";

$document = JFactory::getDocument();
$document->addScriptDeclaration($js);

/*$edit_link = '';
if(!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'permissions.php');
if (Permissions::getInstance()->check("admin,storeadmin")) {
$edit_link = '<a href="'.JURI::root().'index.php?option=com_virtuemart&tmpl=component&view=category&task=edit&virtuemart_category_id='.$this->category->virtuemart_category_id.'">
'.JHTML::_('image', 'images/M_images/edit.png', JText::_('COM_VIRTUEMART_PRODUCT_FORM_EDIT_PRODUCT'), array('width' => 16, 'height' => 16, 'border' => 0)).'</a>';
}

echo $edit_link; */
if ( empty($this->keyword) ) {
?>
<div class="category_description">
<?php echo $this->category->category_description ; ?>
</div>
<?php
}

/* Show child categories */

if ( VmConfig::get('showCategory',1) and empty($this->keyword)) {
if ($this->category->haschildren) {

// Category and Columns Counter
$iCol = 1;
$iCategory = 1;

// Calculating Categories Per Row
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );

// Separator
$verticalseparator = " vertical-separator";
?>

<div class="category-view">


<?php // Start the Output
if(!empty($this->category->children)){
foreach ( $this->category->children as $category ) {

// Show the horizontal seperator
if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
<div class="horizontal-separator"></div>
<?php }

// this is an indicator wether a row needs to be opened or not
if ($iCol == 1) { ?>
<div class="row">
<?php }

// Show the vertical seperator
if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Category Link
$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );

// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false);
//} ?>
</a>
</h2>
</div>
</div>
<?php
$iCategory ++;

// Do we need to close the current row now?
if ($iCol == $categories_per_row) { ?>
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>

<?php }
}
?>
<div class="browse-view">
    <?php
if (!empty($this->keyword)) {
?>
  <h3><?php echo $this->keyword; ?></h3>
<?php
} ?>
  <?php if ($this->search !==null ) { ?>
    <form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&limitstart=0&virtuemart_category_id='.$this->category->virtuemart_category_id ); ?>" method="get">

    <!--BEGIN Search Box --><div class="virtuemart_search">
    <?php echo $this->searchcustom ?>
    <br />
    <?php echo $this->searchcustomvalues ?>
    <input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>" />
    <input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SEARCH')?>" class="button" onclick="this.form.keyword.focus();"/>
    </div>
    <input type="hidden" name="search" value="true" />
    <input type="hidden" name="view" value="category" />

    </form>
<!-- End Search Box -->
<?php } ?>

<?php // Show child categories
if (!empty($this->products)) {
?>
<!-- <div class="orderby-displaynumber">
<div class="width70 floatleft">
<?php echo $this->orderByList['orderby']; ?><?php echo $this->orderByList['manufacturer']; ?>
</div>


<div class="clear"></div>
</div>   -->

<h1><?php echo $this->category->category_name; ?></h1>

<table width="98%" border="1" align="center" cellspacing="0" class="bordered">
<thead>
  <tr>
    <th width="28" height="38"><div align="center"><strong>Код</strong></div></th>
    <th width="38" height="38"><div align="center"><strong>Фото</strong></div></th>
    <th width="69" height="38"><div align="center">Название</div></th>
    <th width="60" height="38"><div align="center"><strong>Остаток</strong></div></th>
    <th width="80"><div align="center">Цена</div></th>
    <th width="169" height="38"><div align="center">Купить</div></th>
  </tr>
 </thead>

<?php
// Category and Columns Counter
$iBrowseCol = 1;
$iBrowseProduct = 1;

// Calculating Products Per Row
$BrowseProducts_per_row = $this->perRow;
$Browsecellwidth = ' width'.floor ( 100 / $BrowseProducts_per_row );

// Separator
$verticalseparator = " vertical-separator";

// Count products ?? why not just count ($this->products)  ?? note by Max Milbers
$BrowseTotalProducts = 0;
foreach ( $this->products as $product ) {
   $BrowseTotalProducts ++;
}

// Start the Output
foreach ( $this->products as $product ) {

// Show the horizontal seperator
if ($iBrowseCol == 1 && $iBrowseProduct > $BrowseProducts_per_row) { ?>

<?php }

// this is an indicator wether a row needs to be opened or not
if ($iBrowseCol == 1) { ?>
<div class="row"></div>
<?php }

// Show the vertical seperator
if ($iBrowseProduct == $BrowseProducts_per_row or $iBrowseProduct % $BrowseProducts_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Show Products ?>

  <tr>
    <td height="60"><span style="margin-left:5px"><?php echo $product->product_sku ?></span></td>
    <td width="38"><div align="center"><span style="padding: 3px"><?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?></span></div></td>
    <td><div align="center"><span style="margin-left:5px"><?php echo $product->product_name ?></span></div></td>
    <td><div align="center"><span style="margin-left:5px"><?php echo $product->product_in_stock ?></span></div></td>
    <td>
      <div align="center"><?php
if ($this->show_prices == '1') {
if( $product->product_unit && VmConfig::get('vm_price_show_packaging_pricelabel'))

//todo add config settings
if( $this->showBasePrice){
echo $this->currency->createPriceDiv('basePrice','COM_VIRTUEMART_PRODUCT_BASEPRICE',$product->prices);
echo $this->currency->createPriceDiv('basePriceVariant','COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT',$product->prices);
}
echo $this->currency->createPriceDiv('variantModification','COM_VIRTUEMART_PRODUCT_VARIANT_MOD',$product->prices);
echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$product->prices);
echo $this->currency->createPriceDiv('discountedPriceWithoutTax','COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE',$product->prices);
echo $this->currency->createPriceDiv('salesPriceWithDiscount','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT',$product->prices);
echo $this->currency->createPriceDiv('salesPrice','COM_VIRTUEMART_PRODUCT_SALESPRICE',$product->prices);
echo $this->currency->createPriceDiv('priceWithoutTax','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX',$product->prices);
echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$product->prices);
echo $this->currency->createPriceDiv('taxAmount','COM_VIRTUEMART_PRODUCT_TAX_AMOUNT',$product->prices);
} ?></div>
      </td>
    <td><form method="post" class="product" action="index.php" id="addtocartproduct<?php echo $product->virtuemart_product_id ?>">
<div class="addtocart-bar">

<?php // Display the quantity box ?>
<!-- <label for="quantity<?php echo $this->product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
<span class="quantity-box">
<input  type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php // Display the quantity box END ?>

<?php // Add the button
$button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
$button_cls = ''; //$button_cls = 'addtocart_button';
if (VmConfig::get('check_stock') == '1' && !$this->product->product_in_stock) {
$button_lbl = JText::_('COM_VIRTUEMART_CART_NOTIFY');
$button_cls = 'notify-button';
} ?>

<?php // Display the add to cart button ?>
<span class="addtocart-button">
<input type="submit" name="addtocart"  class="addtocart-button" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
</span>

<div class="clear"></div>
</div>

<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $product->product_name ?>">
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" />
<?php /** @todo Handle the manufacturer view */ ?>
<input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $product->virtuemart_manufacturer_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />
</form>
      <?php

   // Do we need to close the current row now?
   if ($iBrowseCol == $BrowseProducts_per_row || $iBrowseProduct == $BrowseTotalProducts) {?>
   <div class="clear"></div>
  <!-- end of row -->
      <?php
      $iBrowseCol = 1;
   } else {
      $iBrowseCol ++;
   }

   $iBrowseProduct ++;
} // end of foreach ( $this->products as $product )
// Do we need a final closing row tag?
if ($iBrowseCol != 1) { ?>
<div class="clear"></div>

<?php
}
?>

<?php } elseif ($this->search !==null ) echo JText::_('COM_VIRTUEMART_NO_RESULT').($this->keyword? ' : ('. $this->keyword. ')' : '')
?>
</table>
<div class="vm-pagination"><?php echo $this->vmPagination->getPagesLinks(); ?></div>
<div class="width30 floatright display-number">Показывать по <?php echo $this->vmPagination->getLimitBox(); ?></div>
</div><!-- конец -->
*

Алекс82

  • Захожу иногда
  • 120
  • 4 / 0
  • Совсем новичок
RE: Товар таблицей + зебра
« Ответ #18 : 03.12.2012, 20:29:46 »
Ребята привет ! Использую данный вариант отображения таблицей товаров, но вот ведь не задача... не могу нарыть как правильно воткнуть код отображения цены на товар! и еще один косяк есть не работают кнопки прибавить количество товара "+" и  "-" кроме первой строки в табли
Подскажите что за меню аккордион используете на сайте.
*

expertseo

  • Осваиваюсь на форуме
  • 13
  • 3 / 0
RE: Товар таблицей + зебра
« Ответ #19 : 04.12.2012, 22:04:02 »
Ребята привет ! Использую данный вариант отображения таблицей товаров, но вот ведь не задача... не могу нарыть как правильно воткнуть код отображения цены на товар! и еще один косяк есть не работают кнопки прибавить количество товара "+" и  "-" кроме первой строки в табли
Подскажите что за меню аккордион используете на сайте.
Accordion Menu - Offlajn.com
*

Apposym

  • Осваиваюсь на форуме
  • 39
  • 1 / 0
  • Не ругайтесь пжлста, я ЧАЙНИК!
Re: Товар таблицей + зебра
« Ответ #20 : 19.06.2013, 21:17:26 »
Подскажи как сделать активным название товара, для перехода в (описание Товара) что куда прописать ?
Таблица сделана как в Ответ #17
Спасибо !

пока сделал при клике по изображению открывается страница товара (описание Товара) с этим кодом
echo JHTML::link ($product->link, $product->images[0]->displayMediaThumb ('class="browseProductImage" border="0" title="' . $product->product_name . '" ', FALSE));

А как сделать при клике по названию товара переход в карточку товара (описание Товара)?

спасибо себе
<?php echo JHTML::link ($product->link, $product->product_name); ?>
« Последнее редактирование: 20.06.2013, 17:01:52 от Apposym »
*

lopata12

  • Осваиваюсь на форуме
  • 32
  • 0 / 0
RE: Товар таблицей + зебра
« Ответ #21 : 25.06.2013, 12:24:36 »
не понял как ставить лайки, но спасибо за решение expertseo.
*

aleks_yug

  • Давно я тут
  • 628
  • 83 / 0
Re: Товар таблицей + зебра
« Ответ #22 : 07.04.2014, 18:00:56 »
Вот мой вариант решения данного вопроса. Товар таблицей + зебра.
Практически тоже самое, только все "раскраски" лучше вывести в CSS, да и активную строку (под мышей) желательно выделять
js:
Спойлер
[свернуть]
css:
Спойлер
[свернуть]
В таблице (товары же выстроены именно таблицей)  в тег <table> добавить class="table"
Ну а цвета и т.п, соответственно, подбирать свои...
« Последнее редактирование: 07.04.2014, 19:35:07 от aleks_yug »
*

narishka

  • Новичок
  • 5
  • 0 / 0
RE: Товар таблицей + зебра
« Ответ #23 : 17.11.2014, 00:41:27 »
Практически тоже самое, только все "раскраски" лучше вывести в CSS, да и активную строку (под мышей) желательно выделять
js:
Спойлер
[свернуть]
css:
Спойлер
[свернуть]
В таблице (товары же выстроены именно таблицей)  в тег <table> добавить class="table"
Ну а цвета и т.п, соответственно, подбирать свои...

В какой CSS добавить это?
*

denvut

  • Захожу иногда
  • 55
  • 0 / 1
RE: Товар таблицей + зебра
« Ответ #24 : 22.11.2014, 20:22:54 »
Вот мой вариант решения данного вопроса. Товар таблицей + зебра.

http://lev-toys.ru/index.php?option=com_virtuemart&view=category&virtuemart_category_id=2


Код
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("table tr:odd").css("background-color", "#fff7d6");
});
</script>

<?php
/**
*
* Show the products in a category
*
* @package VirtueMart
* @subpackage
* @author RolandD
* @author Max Milbers
* @todo add pagination
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 6297 2012-07-24 19:19:34Z Milbo $
*/

//vmdebug('$this->category',$this->category);
vmdebug('$this->category '.$this->category->category_name);
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
JHTML::_( 'behavior.modal' );
/* javascript for list Slide
  Only here for the order list
  can be changed by the template maker
*/
$js = "
jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});
";

$document = JFactory::getDocument();
$document->addScriptDeclaration($js);

/*$edit_link = '';
if(!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'permissions.php');
if (Permissions::getInstance()->check("admin,storeadmin")) {
$edit_link = '<a href="'.JURI::root().'index.php?option=com_virtuemart&tmpl=component&view=category&task=edit&virtuemart_category_id='.$this->category->virtuemart_category_id.'">
'.JHTML::_('image', 'images/M_images/edit.png', JText::_('COM_VIRTUEMART_PRODUCT_FORM_EDIT_PRODUCT'), array('width' => 16, 'height' => 16, 'border' => 0)).'</a>';
}

echo $edit_link; */
if ( empty($this->keyword) ) {
?>
<div class="category_description">
<?php echo $this->category->category_description ; ?>
</div>
<?php
}

/* Show child categories */

if ( VmConfig::get('showCategory',1) and empty($this->keyword)) {
if ($this->category->haschildren) {

// Category and Columns Counter
$iCol = 1;
$iCategory = 1;

// Calculating Categories Per Row
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );

// Separator
$verticalseparator = " vertical-separator";
?>

<div class="category-view">


<?php // Start the Output
if(!empty($this->category->children)){
foreach ( $this->category->children as $category ) {

// Show the horizontal seperator
if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
<div class="horizontal-separator"></div>
<?php }

// this is an indicator wether a row needs to be opened or not
if ($iCol == 1) { ?>
<div class="row">
<?php }

// Show the vertical seperator
if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Category Link
$caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id );

// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false);
//} ?>
</a>
</h2>
</div>
</div>
<?php
$iCategory ++;

// Do we need to close the current row now?
if ($iCol == $categories_per_row) { ?>
<div class="clear"></div>
</div>
<?php
$iCol = 1;
} else {
$iCol ++;
}
}
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
<div class="clear"></div>
</div>
<?php } ?>
</div>

<?php }
}
?>
<div class="browse-view">
    <?php
if (!empty($this->keyword)) {
?>
  <h3><?php echo $this->keyword; ?></h3>
<?php
} ?>
  <?php if ($this->search !==null ) { ?>
    <form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&limitstart=0&virtuemart_category_id='.$this->category->virtuemart_category_id ); ?>" method="get">

    <!--BEGIN Search Box --><div class="virtuemart_search">
    <?php echo $this->searchcustom ?>
    <br />
    <?php echo $this->searchcustomvalues ?>
    <input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>" />
    <input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SEARCH')?>" class="button" onclick="this.form.keyword.focus();"/>
    </div>
    <input type="hidden" name="search" value="true" />
    <input type="hidden" name="view" value="category" />

    </form>
<!-- End Search Box -->
<?php } ?>

<?php // Show child categories
if (!empty($this->products)) {
?>
<!-- <div class="orderby-displaynumber">
<div class="width70 floatleft">
<?php echo $this->orderByList['orderby']; ?><?php echo $this->orderByList['manufacturer']; ?>
</div>


<div class="clear"></div>
</div>   -->

<h1><?php echo $this->category->category_name; ?></h1>

<table width="98%" border="1" align="center" cellspacing="0" class="bordered">
<thead>
  <tr>
    <th width="28" height="38"><div align="center"><strong>Код</strong></div></th>
    <th width="38" height="38"><div align="center"><strong>Фото</strong></div></th>
    <th width="69" height="38"><div align="center">Название</div></th>
    <th width="60" height="38"><div align="center"><strong>Остаток</strong></div></th>
    <th width="80"><div align="center">Цена</div></th>
    <th width="169" height="38"><div align="center">Купить</div></th>
  </tr>
 </thead>

<?php
// Category and Columns Counter
$iBrowseCol = 1;
$iBrowseProduct = 1;

// Calculating Products Per Row
$BrowseProducts_per_row = $this->perRow;
$Browsecellwidth = ' width'.floor ( 100 / $BrowseProducts_per_row );

// Separator
$verticalseparator = " vertical-separator";

// Count products ?? why not just count ($this->products)  ?? note by Max Milbers
$BrowseTotalProducts = 0;
foreach ( $this->products as $product ) {
   $BrowseTotalProducts ++;
}

// Start the Output
foreach ( $this->products as $product ) {

// Show the horizontal seperator
if ($iBrowseCol == 1 && $iBrowseProduct > $BrowseProducts_per_row) { ?>

<?php }

// this is an indicator wether a row needs to be opened or not
if ($iBrowseCol == 1) { ?>
<div class="row"></div>
<?php }

// Show the vertical seperator
if ($iBrowseProduct == $BrowseProducts_per_row or $iBrowseProduct % $BrowseProducts_per_row == 0) {
$show_vertical_separator = ' ';
} else {
$show_vertical_separator = $verticalseparator;
}

// Show Products ?>

  <tr>
    <td height="60"><span style="margin-left:5px"><?php echo $product->product_sku ?></span></td>
    <td width="38"><div align="center"><span style="padding: 3px"><?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?></span></div></td>
    <td><div align="center"><span style="margin-left:5px"><?php echo $product->product_name ?></span></div></td>
    <td><div align="center"><span style="margin-left:5px"><?php echo $product->product_in_stock ?></span></div></td>
    <td>
      <div align="center"><?php
if ($this->show_prices == '1') {
if( $product->product_unit && VmConfig::get('vm_price_show_packaging_pricelabel'))

//todo add config settings
if( $this->showBasePrice){
echo $this->currency->createPriceDiv('basePrice','COM_VIRTUEMART_PRODUCT_BASEPRICE',$product->prices);
echo $this->currency->createPriceDiv('basePriceVariant','COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT',$product->prices);
}
echo $this->currency->createPriceDiv('variantModification','COM_VIRTUEMART_PRODUCT_VARIANT_MOD',$product->prices);
echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$product->prices);
echo $this->currency->createPriceDiv('discountedPriceWithoutTax','COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE',$product->prices);
echo $this->currency->createPriceDiv('salesPriceWithDiscount','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT',$product->prices);
echo $this->currency->createPriceDiv('salesPrice','COM_VIRTUEMART_PRODUCT_SALESPRICE',$product->prices);
echo $this->currency->createPriceDiv('priceWithoutTax','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX',$product->prices);
echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$product->prices);
echo $this->currency->createPriceDiv('taxAmount','COM_VIRTUEMART_PRODUCT_TAX_AMOUNT',$product->prices);
} ?></div>
      </td>
    <td><form method="post" class="product" action="index.php" id="addtocartproduct<?php echo $product->virtuemart_product_id ?>">
<div class="addtocart-bar">

<?php // Display the quantity box ?>
<!-- <label for="quantity<?php echo $this->product->virtuemart_product_id;?>" class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?>: </label> -->
<span class="quantity-box">
<input  type="text" class="quantity-input" name="quantity[]" value="1" />
</span>
<span class="quantity-controls">
<input type="button" class="quantity-controls quantity-plus" />
<input type="button" class="quantity-controls quantity-minus" />
</span>
<?php // Display the quantity box END ?>

<?php // Add the button
$button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO');
$button_cls = ''; //$button_cls = 'addtocart_button';
if (VmConfig::get('check_stock') == '1' && !$this->product->product_in_stock) {
$button_lbl = JText::_('COM_VIRTUEMART_CART_NOTIFY');
$button_cls = 'notify-button';
} ?>

<?php // Display the add to cart button ?>
<span class="addtocart-button">
<input type="submit" name="addtocart"  class="addtocart-button" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
</span>

<div class="clear"></div>
</div>

<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $product->product_name ?>">
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>" />
<?php /** @todo Handle the manufacturer view */ ?>
<input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $product->virtuemart_manufacturer_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>" />
</form>
      <?php

   // Do we need to close the current row now?
   if ($iBrowseCol == $BrowseProducts_per_row || $iBrowseProduct == $BrowseTotalProducts) {?>
   <div class="clear"></div>
  <!-- end of row -->
      <?php
      $iBrowseCol = 1;
   } else {
      $iBrowseCol ++;
   }

   $iBrowseProduct ++;
} // end of foreach ( $this->products as $product )
// Do we need a final closing row tag?
if ($iBrowseCol != 1) { ?>
<div class="clear"></div>

<?php
}
?>

<?php } elseif ($this->search !==null ) echo JText::_('COM_VIRTUEMART_NO_RESULT').($this->keyword? ' : ('. $this->keyword. ')' : '')
?>
</table>
<div class="vm-pagination"><?php echo $this->vmPagination->getPagesLinks(); ?></div>
<div class="width30 floatright display-number">Показывать по <?php echo $this->vmPagination->getLimitBox(); ?></div>
</div><!-- конец -->


Добрый день, применил ваш пример, но у меня пропали кнопки добавления в корзину что делать куда рыть? версия правда VirtueMart самая последняя стоит возможно изменился алгоритм вывода кнопок для товарки??
*

denvut

  • Захожу иногда
  • 55
  • 0 / 1
RE: Товар таблицей + зебра
« Ответ #25 : 22.11.2014, 20:34:03 »
Все разобрался, сам дурак, в стилях для кнопок добавить в корзину стиль position:absolute и их выводила за рамками экрана :) спасибо за рабочий пример!
*

denvut

  • Захожу иногда
  • 55
  • 0 / 1
RE: Товар таблицей + зебра
« Ответ #26 : 22.11.2014, 20:41:44 »
А подскажите как на странице категории при выводе товаров еще указать в какой подкатегории товар?
*

kasper9820

  • Захожу иногда
  • 127
  • 4 / 6
  • ...ISponsor!
RE: Товар таблицей + зебра
« Ответ #27 : 10.12.2014, 15:37:55 »
Помоему, самый простой способ - плагин генерации прайса Excel

Настраивается и внешне выглядит как нужно
*

1investa

  • Осваиваюсь на форуме
  • 46
  • 4 / 0
  • В движении
RE: Товар таблицей + зебра
« Ответ #28 : 11.06.2015, 16:05:53 »

Добрый день, применил ваш пример, но у меня пропали кнопки добавления в корзину что делать куда рыть? версия правда VirtueMart самая последняя стоит возможно изменился алгоритм вывода кнопок для товарки??

Добрый человек, а как это реализовать на virtuemart3? кнопка добавить в корзину упорно не помещается в свою графу и правка стилей не помогает
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Решено: Валютный знак рубля в VirtueMart 2

Автор frostwar

Ответов: 10
Просмотров: 10035
Последний ответ 07.04.2020, 15:50:54
от liberator
При смене позиции модуля корзины, не добавляется товар

Автор Dolphin4ik_1

Ответов: 1
Просмотров: 722
Последний ответ 28.12.2018, 20:22:03
от fsv
[РЕШЕНО]Всплывашка после добавления в корзину

Автор lexxbry

Ответов: 9
Просмотров: 1069
Последний ответ 06.12.2018, 14:57:38
от lexxbry
[Решено] VirtueMart 2 Товаров в строке по умолчанию или Количество товаров в строке

Автор bhakta

Ответов: 2
Просмотров: 5078
Последний ответ 24.07.2018, 14:55:38
от Akeksandr
[Решено] Как настроить отображение миниатюр в карточке товара?

Автор Strelok760

Ответов: 1
Просмотров: 1283
Последний ответ 07.04.2018, 00:33:08
от Strelok760