get_attr.php 833 B

1234567891011121314151617181920212223242526
  1. {__NOLAYOUT__}
  2. <table class="layui-table goods-table-box">
  3. <colgroup>
  4. <col width="150">
  5. <col>
  6. </colgroup>
  7. <tbody>
  8. {if !empty($result)}
  9. {volist name="result" id="val"}
  10. <tr>
  11. <th>{$val.data.name}</th>
  12. <td>
  13. {if !empty($val.item)}
  14. {volist name="val['item']" id="item"}
  15. <div class="layui-btn-group layui-btn-group-spec">
  16. <button class="layui-btn {if !in_array($item.id,$spec_checked)}layui-btn-primary{/if} layui-btn-spec layui-btn-sm">{$item.value}</button>
  17. <input type="hidden" name="spec_item[]" value="{$item.id}">
  18. </div>
  19. {/volist}
  20. {/if}
  21. </td>
  22. </tr>
  23. {/volist}
  24. {/if}
  25. </tbody>
  26. </table>