getSpecByCat.html
709 Bytes
<foreach name="goods_category_list" item="v" key="k" >
<dl>
<dt style="display: block;" id="categoryId{$v[id]}">{$v[name]}</dt>
<dd>
<foreach name="list" item="v2" key="k2" >
<if condition="$v[id] eq $v2['cat_id1']" >
<label style="display: inline-block;" for="spec_id_{$v2['id']}">
<input type="checkbox" id="spec_id_{$v2['id']}" class="brand_change_default_submit_value" name="spec_id[]" value="{$v2['id']}" <if condition="($v2['type_id'] neq null) and ($type_id eq $v2['type_id'])"> checked="checked"</if> /> {$v2['name']}
</label>
</if>
</foreach>
</dd>
</dl>
</foreach>