Лучший Ответ Станислав , 10 August 2013 - 12:15
Как-то так... (catalog.php в item_columns)
- <?php
- /**
- * JBZoo is universal CCK based Joomla! CMS and YooTheme Zoo component
- * @category JBZoo
- * @author smet.denis <admin@joomla-book.ru>
- * @copyright Copyright (c) 2009-2012, Joomla-book.ru
- * @license http://joomla-book.ru/info/disclaimer
- * @link http://joomla-book.ru/projects/jbzoo JBZoo project page
- */
- defined('_JEXEC') or die('Restricted access');
- $this->app->jbassets->tablesorter();
- // Запоминаем тип материала
- $type = $this->app->jbrequest->get("type");
- if ($vars['count']) :
- // Переключаем шапки в зависимости от вида материала
- switch ($type) {
- // Если ipotechnaya-programma
- case "ipotechnaya-programma":
- ?>
- <table class="jsTableSorter tablesorter">
- <thead>
- <tr>
- <th>Программа</th>
- <th>Банк</th>
- <th>Срок кредитования, лет</th>
- <th>Сумма кредита, тыс. руб</th>
- <th>Ставка до ОПС max, %</th>
- <th>Ставка после ОПС max, %</th>
- <th>Первоначальный взнос от, %</th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($vars['objects'] as $object) :
- echo $object;
- endforeach;
- ?>
- </tbody>
- </table>
- <? break;
- // Если novostrojki-predl
- case "novostrojki-predl":
- ?>
- <table class="jsTableSorter tablesorter">
- <thead>
- <tr>
- <th>Фото</th>
- <th>Адрес</th>
- <th>Район</th>
- <th>Сдача</th>
- <th>Застройщик</th>
- <th>Материал</th>
- <th>Метро</th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ($vars['objects'] as $object) :
- echo $object;
- endforeach;
- ?>
- </tbody>
- </table>
- <? break;
- // Если что-то еще...
- case "SOMETHING_ELSE":
- ?>
- <table class="jsTableSorter tablesorter zebra">
- <!-- Еще один блок с шапкой -->
- </table>
- <? break;
- }
- ?>
- <script type="text/javascript">
- jQuery(function ($) {
- $('.jsTableSorter').tablesorter({});
- });
- </script>
- <?php endif;
