mb_special_item.module_goods.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <style type="text/css">
  2. .mb-item-edit-content { background: #EFFAFE url(__PUBLIC__/image/cms_edit_bg_line.png) repeat-y scroll 0 0;}
  3. </style>
  4. <?php if($item_edit_flag) { ?>
  5. <table class="table tb-type2" id="prompt" style="background-color: #FFF; border-bottom: solid 1px #deeffb">
  6. <tbody>
  7. <tr class="space odd">
  8. <th colspan="12" class="nobg"> <div class="title nomargin">
  9. <h5>操作提示</h5>
  10. <span class="arrow"></span> </div>
  11. </th>
  12. </tr>
  13. <tr>
  14. <td><ul>
  15. <li>从右侧筛选按钮,点击添加按钮完成添加</li>
  16. <li>鼠标移动到已有商品上,会出现删除按钮可以对商品进行删除</li>
  17. <li>操作完成后点击保存编辑按钮进行保存</li>
  18. </ul></td>
  19. </tr>
  20. </tbody>
  21. </table>
  22. <?php } ?>
  23. <div class="index_block goods-list">
  24. <?php if($item_edit_flag) { ?>
  25. <h3>商品版块</h3>
  26. <?php } ?>
  27. <div class="title">
  28. <?php if($item_edit_flag) { ?>
  29. <h5>标题:</h5>
  30. <input id="home1_title" type="text" class="txt w200" name="item_data[title]" value="<?php echo $item_data['title'];?>">
  31. <?php } else { ?>
  32. <span><?php echo $item_data['title'];?></span>
  33. <?php } ?>
  34. </div>
  35. <div nctype="item_content" class="content">
  36. <?php if($item_edit_flag) { ?>
  37. <h5>内容:</h5>
  38. <?php } ?>
  39. <?php if(!empty($item_data['item']) && is_array($item_data['item'])) {?>
  40. <?php foreach($item_data['item'] as $item_value) {?>
  41. <div nctype="item_image" class="item">
  42. <div class="goods-pic"><img nctype="goods_image" src="/Uploads/image/<?php echo $item_value['goods_image'];?>" alt=""></div>
  43. <div class="goods-name" nctype="goods_name"><?php echo $item_value['goods_name'];?></div>
  44. <div class="goods-price" nctype="goods_price">¥<?php echo $item_value['goods_promotion_price'];?></div>
  45. <?php if($item_edit_flag) { ?>
  46. <input nctype="goods_id" name="item_data[item][]" type="hidden" value="<?php echo $item_value['goods_id'];?>">
  47. <a nctype="btn_del_item_image" href="javascript:;"><i class="icon-trash"></i>删除</a>
  48. <?php } ?>
  49. </div>
  50. <?php } ?>
  51. <?php } ?>
  52. </div>
  53. </div>
  54. <?php if($item_edit_flag) { ?>
  55. <div class="search-goods">
  56. <h3>选择商品添加</h3>
  57. <h5>商品关键字:</h5>
  58. <input id="txt_goods_name" type="text" class="txt w200" name="">
  59. <a id="btn_mb_special_goods_search" class="btn-search" href="javascript:;" style="vertical-align: top; margin-left: 5px;" title="搜索"></a>
  60. <div id="mb_special_goods_list"></div>
  61. </div>
  62. <?php } ?>
  63. <script id="item_goods_template" type="text/html">
  64. <div nctype="item_image" class="item">
  65. <div class="goods-pic"><img nctype="image" src="<%=goods_image%>" alt=""></div>
  66. <div class="goods-name" nctype="goods_name"><%=goods_name%></div>
  67. <div class="goods-price" nctype="goods_price"><%=goods_price%></div>
  68. <input nctype="goods_id" name="item_data[item][]" type="hidden" value="<%=goods_id%>">
  69. <a nctype="btn_del_item_image" href="javascript:;">删除</a>
  70. </div>
  71. </script>