Jump to content
  • 0

фильтр по разделам


radarium
 Share

Question

есть след фильтры

<div class="filterBrand">
<div>

Производитель:

</div>
<table border="0" cellpadding="0" cellspacing="0">

<tbody>
<tr><td width="16">
<input name="arrFilter_pf[BRAND]" id="111" value="111" type="checkbox" onclick="javascript:switchField2(this.checked,111)" <?=($_GET['arrFilter_pf']['BRAND'] == 111 ? 'checked': '')?> /></td><td><label for="111">Daikin</label></td></tr>
<!--<input name="arrFilter_pf[BRAND]" id="111" value="111" type="checkbox" onclick="javascript:switchField2(this.checked,111)" <?=($_GET['arrFilter_pf']['BRAND'] == 111 ? 'checked': '')?> /></td><td><label for="111">Daikin</label></td></tr>
-->
<tr><td width="16"><input name="arrFilter_pf[BRAND]" id="112" value="112" type="checkbox" onclick="javascript:switchField2(this.checked,112)" <?=($_GET['arrFilter_pf']['BRAND'] == 112 ? 'checked': '')?> /></td><td><label for="112">Mitsubishi Electric</label></td></tr>

<tr><td width="16"><input name="arrFilter_pf[BRAND]" id="669" value="669" type="checkbox" onclick="javascript:switchField2(this.checked,669)" <?=($_GET['arrFilter_pf']['BRAND'] == 669 ? 'checked': '')?> /></td><td><label for="669">Midea</label></td></tr>

<tr><td width="16"><input name="arrFilter_pf[BRAND]" id="728" value="728" type="checkbox" onclick="javascript:switchField2(this.checked,728)" <?=($_GET['arrFilter_pf']['BRAND'] == 728 ? 'checked': '')?> /></td><td><label for="728">Kentatsu</label></td></tr>

(это только по бренду), там еще есть фильтры с длругими свойтсвами, все копипастить думаю нет смысла.

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

    <!-- фильтры сергей-->
<div>
Класс:
</div>
<table border="0" cellpadding="0" cellspacing="0">

<tbody>
<tr><td width="16"><input name="arrFilter_pf[SECTION_ID]" id="31" value="31" type="checkbox" onclick="javascript:switchField7(this.checked,31)" <?=($_GET['arrFilter_pf']['SECTION_ID'] == 31 ? 'checked': '')?> /></td><td><label for="31">Настенные</label></td></tr>
<tr><td width="16"><input name="arrFilter_pf[SECTION_ID]" id="32" value="32" type="checkbox" onclick="javascript:switchField7(this.checked,32)" <?=($_GET['arrFilter_pf']['SECTION_ID'] == 32 ? 'checked': '')?> /></td><td><label for="32">Напольные</label></td></tr>
<tr><td width="16"><input name="arrFilter_pf[SECTION_ID]" id="27" value="27" type="checkbox" onclick="javascript:switchField7(this.checked,27)" <?=($_GET['arrFilter_pf']['SECTION_ID'] == 27 ? 'checked': '')?> /></td><td><label for="27">Канальные</label></td></tr>
<tr><td width="16"><input name="arrFilter_pf[SECTION_ID]" id="30" value="30" type="checkbox" onclick="javascript:switchField7(this.checked,30)" <?=($_GET['arrFilter_pf']['SECTION_ID'] == 30 ? 'checked': '')?> /></td><td><label for="30">Касетные</label></td></tr>
<tr><td width="16"><input name="arrFilter_pf[SECTION_ID]" id="17" value="17" type="checkbox" onclick="javascript:switchField7(this.checked,17)" <?=($_GET['arrFilter_pf']['SECTION_ID'] == 17 ? 'checked': '')?> /></td><td><label for="17">Мультисистемы</label></td></tr>
</tbody></table>
<!-- фильтры сергей-->

31 32 27 30 17 = это коды разделов

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy