Ребята выручайте, ткните носом что делаю не так.
Задача:
Сделать вывод списка товаров в табличном виде как например на сайте Citilink.ru
Таблица поменялась, а вот стиль у ячеек не меняется.
<?php
/**
* @package HikaShop for Joomla!
* @version 1.6.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
if(!empty($this->rows)){
$pagination = $this->config->get('pagination','bottom');
if(in_array($pagination,array('top','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total >$this->pageInfo->limit->value){ $this->pagination->form = '_top'; ?>
<style type="text/css">
<!--
.T_L_B {
border: 2px solid #333333;
}
.T_R {
border-top-width: 2px;
border-left-width: 0px;
border-top-style: solid;
border-top-color: #333333;
border-right-width: 2px;
border-right-style: solid;
border-right-color: #333333;
}
.B_R {
border-bottom-style: solid;
border-bottom-color: #333333;
border-right-width: 2px;
border-bottom-width: 2px;
border-right-style: solid;
border-right-color: #333333;
}
.R {
border-right-width: 2px;
border-right-style: solid;
border-right-color: #333333;
}
.стиль3 {
border-top-width: 2px;
border-left-width: 0px;
border-top-style: solid;
border-top-color: #333333;
border-right-width: 2px;
border-right-style: solid;
border-right-color: #333333;
font-size: medium;
font-style: italic;
}
-->
</style>
<form action="<?php echo hikashop_currentURL(); ?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>_top">
<div class="hikashop_products_pagination hikashop_products_pagination_top">
<?php echo $this->pagination->getListFooter(); ?>
<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
</div>
<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php } ?>
<div class="hikashop_products">
<?php
if ($this->config->get('show_quantity_field')>=2) { ?>
<form action="<?php echo hikashop_completeLink('product&task=updatecart'); ?>" method="post" name="hikashop_product_form_<?php echo $this->params->get('main_div_name'); ?>" enctype="multipart/form-data">
<?php }
$columns = 1; ?>
<table cellpadding="1" class="hikashop_products_table adminlist">
<thead>
<tr>
<?php if($this->config->get('thumbnail')){ $columns++; ?>
<th width="109" align="center" class="hikashop_product_image title"> </th>
<?php } ?>
<th width="682" align="center" class="hikashop_product_name title"> </th>
<?php if ($this->config->get('show_code')) { $columns++;?>
<?php } ?>
<?php if($this->params->get('show_vote')){ ?>
<?php } ?>
<?php
if($this->params->get('show_price','-1')=='-1'){
$config =& hikashop_config();
$this->params->set('show_price',$config->get('show_price'));
}
if($this->params->get('show_price')){ $columns++; ?>
<th width="126" align="center" class="hikashop_product_price title"> </th>
<?php } ?>
<?php if($this->params->get('add_to_cart') || $this->params->get('add_to_wishlist')){ $columns++; ?>
<?php } ?>
<?php if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) { $columns++; ?>
<?php } ?>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="<?php echo $columns; ?>"> </td>
</tr>
</tfoot>
<tbody>
<?php foreach($this->rows as $row){
$this->row =& $row;
$height = $this->config->get('product_image_y');
$width = $this->config->get('product_image_x');
if(empty($height)) $height=$this->config->get('thumbnail_y');
if(empty($width)) $width=$this->config->get('thumbnail_x');
$divWidth=$width;
$divHeight=$height;
$this->image->checkSize($divWidth,$divHeight,$row);
$link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway); ?>
<tr>
<?php if($this->config->get('thumbnail')){ ?>
<td rowspan="4" class="T_L_B">
<div style="height:<?php echo $divHeight;?>px;text-align:center;clear:both;" class="hikashop_product_image">
<div style="position:relative;text-align:center;clear:both;width:<?php echo $divWidth;?>px;margin: auto;" class="hikashop_product_image_subdiv">
<div align="center">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
<?php }
echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name),"","", $width ,$height);
$main_thumb_x = $this->image->main_thumbnail_x;
$main_thumb_y = $this->image->main_thumbnail_y;
$horizontal = '0';
$vertical = -'10';
$this->classbadge->placeBadges($this->image, $this->row->badges, $vertical, $horizontal);
$this->image->main_thumbnail_x = $main_thumb_x;
$this->image->main_thumbnail_y = $main_thumb_y;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</div>
</div>
</div> </td>
<?php } ?>
<td rowspan="2" class="T_R">
<div align="left"><span class="hikashop_product_name">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>">
<?php }
echo $this->row->product_name;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</span> </div></td>
<?php if ($this->config->get('show_code')){ ?>
<?php } ?>
<?php if($this->params->get('show_vote')){ ?>
<?php } ?>
<?php
if($this->params->get('show_price','-1')=='-1'){
$config =& hikashop_config();
$this->params->set('show_price',$config->get('show_price'));
}
if($this->params->get('show_price')){ ?>
<td colspan="2" class="стиль3">
<div align="center">
<?php
$this->setLayout('listing_price');
echo $this->loadTemplate();
?>
</div>
<label for="hikashop_listing_chk_<?php echo $this->row->product_id;?>"></label> </td>
<?php } ?>
<?php if($this->params->get('add_to_cart')){ ?>
<?php } ?>
<?php
if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) {
if( $this->params->get('show_compare') == 1 ) {
?>
<?php } else { ?>
<?php }
} ?>
</tr>
<tr>
<td colspan="2" class="R"><div align="center"><span class="hikashop_product_vote_row">
<?php
$this->row =& $row;
$this->setLayout('listing_vote');
echo $this->loadTemplate();
?>
</span></div></td>
</tr>
<tr>
<td rowspan="2" class="B_R"> </td>
<td colspan="2" class="R"><div align="center"><a class="hikashop_compare_button" href="<?php echo $link;?>" onclick="setToCompareList(<?php echo $this->row->product_id;?>,'<?php echo $this->escape($this->row->product_name); ?>',this); return false;"><span class="hikashop_product_vote_row">
<input name="checkbox" type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_<?php echo $this->row->product_id;?>" onchange="setToCompareList(<?php echo $this->row->product_id;?>,'<?php echo $this->escape($this->row->product_name); ?>',this);">
</span><?php echo JText::_('ADD_TO_COMPARE_LIST'); ?></a></div></td>
</tr>
<tr>
<td colspan="2" class="B_R"><div align="center">
<?php
$this->setLayout('add_to_cart_listing');
echo $this->loadTemplate();
?>
</div></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if ($this->config->get('show_quantity_field')>=2) {
$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form_'.$this->params->get('main_div_name').'\')){ return hikashopModifyQuantity(\'\',field,1,\'hikashop_product_form_'.$this->params->get('main_div_name').'\'); } return false;';
$this->row = null;
$this->row->product_quantity = -1;
$this->row->product_min_per_order = 0;
$this->row->product_max_per_order = -1;
$this->row->product_sale_start = 0;
$this->row->product_sale_end = 0;
$this->setLayout('quantity');
echo $this->loadTemplate();
if(!empty($this->ajax) && $this->config->get('redirect_url_after_add_cart','stay_if_cart')=='ask_user'){ ?>
<input type="hidden" name="popup" value="1"/>
<?php } ?>
<input type="hidden" name="hikashop_cart_type_0" id="hikashop_cart_type_0" value="cart"/>
<input type="hidden" name="add" value="1"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="updatecart"/>
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
</form>
<?php }
if(in_array($pagination,array('bottom','both')) && $this->params->get('show_limit') && $this->pageInfo->elements->total > $this->pageInfo->limit->value){ $this->pagination->form = '_bottom'; ?>
<form action="<?php echo hikashop_currentURL(); ?>" method="post" name="adminForm_<?php echo $this->params->get('main_div_name').$this->category_selected;?>_bottom">
<div class="hikashop_products_pagination hikashop_products_pagination_bottom">
<?php echo $this->pagination->getListFooter(); ?>
<span class="hikashop_results_counter"><?php echo $this->pagination->getResultsCounter(); ?></span>
</div>
<input type="hidden" name="filter_order_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
<input type="hidden" name="filter_order_Dir_<?php echo $this->params->get('main_div_name').$this->category_selected;?>" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php } ?>
</div>
<?php } ?>