人人商城

query.html 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <table class="table">
  2. <thead>
  3. <th>商品名称</th>
  4. <th style="width: 100px">商品价格</th>
  5. {if !empty($live)}
  6. <th style="width: 100px">直播价格</th>
  7. {/if}
  8. <th style="width: 85px">操作</th>
  9. </thead>
  10. </table>
  11. <div style='max-height:500px;overflow:auto;min-width:850px;'>
  12. <table class="table table-hover" style="min-width:850px;">
  13. <tbody>
  14. {loop $ds $row}
  15. <tr>
  16. <td><img src="{php echo tomedia($row['thumb'])}" style="width:30px;height:30px;padding1px; border:1px solid #ccc" /> {$row['title']}</td>
  17. <td style="width: 100px">¥{$row['minprice']}</td>
  18. {if !empty($live)}
  19. <td style="width: 100px">
  20. {if !empty($row['islive']) && $row['liveprice']<$row['minprice']}
  21. ¥{$row['liveprice']}
  22. {else}
  23. -
  24. {/if}
  25. </td>
  26. {/if}
  27. <td style="width:80px;">
  28. <a href="javascript:;"onclick='biz.selector.set(this, {php echo json_encode($row);})'>选择</a>
  29. </td>
  30. </tr>
  31. {/loop}
  32. {if count($ds)<=0}
  33. <tr>
  34. <td colspan='5' align='center'>未找到商品</td>
  35. </tr>
  36. {/if}
  37. </tbody>
  38. </table>
  39. </div>