
вырезал код из \modules\mod_jbzoo_search\tmpl\default.php
и в \modules\mod_jbzoo_search\renderer\item\table.php прописывал но ничего не получилось.
кнопки выводятся но все криво.
Отправлено 14 April 2013 - 16:26
Отправлено 14 April 2013 - 16:52
Отправлено 14 April 2013 - 17:03
<table class="filter-table"> <tr> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_1', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_2', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_3', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_4', array('style' => 'filter.block'));?></td> <td style="width:25%;"> <?php if ((int)$params->get('button_reset_show', 1) == 2) : ?> <input type="button" name="reset-form" value="<?php echo JText::_('JBZOO_BUTTON_RESET');?>" class="reset button rborder jsFormReset"/> <script type="text/javascript"> jQuery(function ($) { $('#<?php echo $formId;?> .jsFormReset').click(function () { $('#<?php echo $formId;?> .filter-element, #<?php echo $formId;?> .static-fields').each(function (n, obj) { var $obj = $(obj), $input = $obj.find(':input').not(':button, :submit, :reset, :hidden'); $input.val('') .removeAttr('checked') .removeAttr('selected'); if ($input.is('select') && $input.attr('multiple') != 'multiple') { $('option:eq(0)', $input).attr('selected', 'selected'); } if ($obj.hasClass('element-slider')) { var slider = $obj.find('.ui-slider').data('slider'); slider.values([slider.options.min, slider.options.max]); $('.slider-value-0', $obj).html(slider.options.min); $('.slider-value-1', $obj).html(slider.options.max); $('[type=hidden]', $obj).val(slider.options.min + '/' + slider.options.max); } if ($obj.find('.radio-lbl').length > 0) { $('input[type=radio]:eq(0)', $obj).trigger('click'); } $input.trigger('change'); }); }); }); </script> <?php elseif ((int)$params->get('button_reset_show', 1) == 1) : ?> <input type="reset" name="reset-form" value="<?php echo JText::_('JBZOO_BUTTON_RESET');?>" class="reset button rborder"/> <?php endif; ?> </td> </tr> <tr> <td style="width:25%;"><?php echo $this->renderPosition('cell_2_1', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_2_2', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_2_3', array('style' => 'filter.block'));?></td> <td style="width:25%;"> <?php if ((int)$params->get('button_submit_show', 1)) : ?> <input type="submit" name="send-form" value="<?php echo JText::_('JBZOO_BUTTON_SUBMIT');?>" class="jsSubmit button rborder"/> <?php endif; ?> </td> </tr> </table>
Отправлено 14 April 2013 - 17:53
<table class="filter-table"> <tr> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_1', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_2', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_3', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_1_4', array('style' => 'filter.block'));?></td> <td style="width:25%;"> <div class="controls"> <?php if ((int)$params->get('button_submit_show', 1)) : ?> <input type="submit" name="send-form" value="<?php echo JText::_('JBZOO_BUTTON_SUBMIT');?>" class="jsSubmit button rborder"/> <?php endif; ?><br><br><br> <?php if ((int)$params->get('button_reset_show', 1) == 2) : ?> <input type="button" name="reset-form" value="<?php echo JText::_('JBZOO_BUTTON_RESET');?>" class="reset button rborder jsFormReset"/> <script type="text/javascript"> jQuery(function ($) { $('#<?php echo $formId;?> .jsFormReset').click(function () { $('#<?php echo $formId;?> .filter-element, #<?php echo $formId;?> .static-fields').each(function (n, obj) { var $obj = $(obj), $input = $obj.find(':input').not(':button, :submit, :reset, :hidden'); $input.val('') .removeAttr('checked') .removeAttr('selected'); if ($input.is('select') && $input.attr('multiple') != 'multiple') { $('option:eq(0)', $input).attr('selected', 'selected'); } if ($obj.hasClass('element-slider')) { var slider = $obj.find('.ui-slider').data('slider'); slider.values([slider.options.min, slider.options.max]); $('.slider-value-0', $obj).html(slider.options.min); $('.slider-value-1', $obj).html(slider.options.max); $('[type=hidden]', $obj).val(slider.options.min + '/' + slider.options.max); } if ($obj.find('.radio-lbl').length > 0) { $('input[type=radio]:eq(0)', $obj).trigger('click'); } $input.trigger('change'); }); }); }); </script> <?php elseif ((int)$params->get('button_reset_show', 1) == 1) : ?> <input type="reset" name="reset-form" value="<?php echo JText::_('JBZOO_BUTTON_RESET');?>" class="reset button rborder"/> <?php endif; ?> <div class="clear clr"></div> </div> </td> </tr> <tr> <td style="width:25%;"><?php echo $this->renderPosition('cell_2_1', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_2_2', array('style' => 'filter.block'));?></td> <td style="width:25%;"><?php echo $this->renderPosition('cell_2_3', array('style' => 'filter.block'));?></td> </tr> </table>вот все получилось только кнопка СБРОСИТЬ не активная, как исправить ?
Отправлено 14 April 2013 - 18:04
Отправлено 14 April 2013 - 20:42
Отправлено 15 April 2013 - 16:42
— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.
Отправлено 16 April 2013 - 00:32
пока на localhost-e . да и не к чему она,у каждого есть table фильтр .
PS Приложите ссылку и помощь тех поддержки будет более существенной.
Отправлено 16 April 2013 - 17:18
— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.
Отправлено 17 April 2013 - 00:08