PageRenderTime 67ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/shopnc/admin/templates/goods_list.html

https://github.com/bluelovers/ShopNC
HTML | 156 lines | 149 code | 4 blank | 3 comment | 0 complexity | 31c4d888c13d557d1d2be085636aa035 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<tpl>$nc_charset</tpl>" />
  5. <title><tpl>$admin_header_goods_manage</tpl> - <tpl>$admin_goods_list</tpl></title><!-- 商品管理 - 商品列表 -->
  6. <link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/styles.css" />
  7. <script type="text/javascript" src="<tpl>$Site_Url</tpl>/js/jquery/jquery.js"></script>
  8. <script type="text/javascript" src="<tpl>$Site_Url</tpl>/admin/templates/global.js"></script>
  9. <script type="text/javascript">
  10. $(document).ready(function(){
  11. /* 显示缩略图 */
  12. <tpl> section name=i loop=$goods_array </tpl>
  13. $("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_icon").mouseover(function(){
  14. $("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_thumb").show();
  15. });
  16. $("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_icon").mouseout(function(){
  17. $("#imgTd<tpl>$smarty.section.i.rownum</tpl> img.img_thumb").hide();
  18. });
  19. <tpl> /section </tpl>
  20. });
  21. </script>
  22. <script type="text/javascript">
  23. function changeFun(value){
  24. document.getElementById("action_type").value = value;
  25. }
  26. /* 修改产品状态 */
  27. function nc_state_update(goods_id,ajax_type,old_state,id) {
  28. $.get('admin_goods.php',{'action':'goods_ajax','ajax_type':ajax_type,'old_state':old_state,'goods_id':goods_id,'css_id':id},function(data){
  29. $("#"+id).html(data);
  30. });
  31. }
  32. </script>
  33. <script type="text/javascript">
  34. $(document).ready(
  35. function(){if($.browser.msie){
  36. $("input[@type='text'], input[@type='password'], textarea").focus(function() {$(this).css({"color":"#333333","border-color":"#5794BF #C5DAED #C5DAED #5794BF"});})
  37. //IE里input获得焦点的focus
  38. $("input[@type='text'], input[@type='password'], textarea").blur(function() {$(this).css({"color":"#999999","border-color":"#ABADB3 #E9E9E9 #DEDEDE #bbbbbb"});})
  39. //失去焦点的focus变化
  40. }});
  41. </script>
  42. </head>
  43. <body id="goodsList">
  44. <h4 id="rightcon_h"><b>
  45. <span class="alignRight"><a href="admin_goods.php?action=goods_page" target="_self" class="btnInput"><tpl>$admin_goods_add</tpl><!-- 添加商品 --></a></span>
  46. <tpl>$admin_header_goods_manage</tpl><!-- 商品管理 --> >> <tpl>$admin_goods_list</tpl><!-- 商品列表 --></b>
  47. </h4>
  48. <div id="rightcon">
  49. <div class="rc_con">
  50. <h5>
  51. <div class="floatRight">
  52. <form action="admin_goods.php" method="get">
  53. <input type="hidden" name="action" value="list" />
  54. <tpl> $sel_goods_class </tpl><!-- 商品分类 -->
  55. <tpl> $goods_subject </tpl> <!-- 主题分类 -->
  56. <tpl> $goods_brand </tpl> <!-- 品牌分类 -->
  57. <tpl> $goods_provider </tpl> <!-- 供应商分类 -->
  58. <input class="TextBoxAt2" type="text" name="search" id="search" value="<tpl> if $smarty.post.search != '' </tpl> <tpl>$smarty.post.search</tpl> <tpl> /if </tpl>" />
  59. <input type="submit" name="button" id="button" value="<tpl>$admin_goods_list_submit</tpl>" class="btnInput" /><!-- 提交 -->
  60. </form>
  61. </div>
  62. <form action="admin_goods.php" method="post" >
  63. <input type="hidden" name="action" id="action_type" />
  64. <select name="fun" id="fun" class="delBtnInput" onchange="changeFun(this.value)">
  65. <option value="list"><tpl>$admin_goods_list_select_oper</tpl><!-- 选择操作 --></option>
  66. <option value="put"><tpl>$admin_goods_list_put</tpl><!-- 发布 --></option>
  67. <option value="cancel_put"><tpl>$admin_goods_list_cancel_put</tpl><!-- 取消发布 --></option>
  68. <option value="commend"><tpl>$admin_goods_list_commend</tpl><!-- 推荐 --></option>
  69. <option value="cancel_commend"><tpl>$admin_goods_list_cancel_commend</tpl><!-- 取消推荐 --></option>
  70. <option value="special"><tpl>$admin_goods_list_special</tpl><!-- 特价 --></option>
  71. <option value="cancel_special"><tpl>$admin_goods_list_cancel_special</tpl><!-- 取消特价 --></option>
  72. <option value="hot"><tpl>$admin_goods_list_hot</tpl><!-- 热卖 --></option>
  73. <option value="cancel_hot"><tpl>$admin_goods_list_cancel_hot</tpl><!-- 取消热卖 --></option>
  74. <option value="del"><tpl>$admin_goods_list_del</tpl><!-- 回收站 --></option>
  75. </select>
  76. <input type="submit" value="<tpl>$admin_goods_list_enter</tpl>" class="delBtnInput" /><!-- 确定 -->
  77. </h5>
  78. <div class="entry-body" id="p-list-div">
  79. <table width="100%" border="0" cellpadding="0" cellspacing="0" id="pListTab" class="stripeMe">
  80. <tr>
  81. <th><input type="checkbox" name="all" id="all" /></th>
  82. <th><span <tpl> if $order_state.ordertype == 'goods_bn' </tpl> class="<tpl> $order_state.order </tpl>"<tpl> /if </tpl>><a href="admin_goods.php?action=list&ordertype=goods_bn&order=<tpl> if $order_state.ordertype != '' && $order_state.order=='down' </tpl>up<tpl> else </tpl>down<tpl> /if </tpl>" title="<tpl>$admin_goods_list_goods_bn</tpl><tpl>$admin_goods_list_order</tpl>"><tpl>$admin_goods_list_goods_bn</tpl><!-- 商品编号 --></a></span></th>
  83. <th><span>
  84. <tpl>$admin_goods_list_goods_class</tpl>
  85. <!-- 商品类别 -->
  86. </span></th>
  87. <th><span>
  88. <tpl>$admin_goods_list_goodname</tpl>
  89. <!-- 商品名称 -->
  90. </span></th>
  91. <th><span>
  92. <tpl>$admin_goods_list_img</tpl>
  93. <!-- 缩略图 -->
  94. </span></th>
  95. <th><span <tpl> if $order_state.ordertype == 'goods_pricedesc' </tpl> class="<tpl> $order_state.order </tpl>"<tpl> /if </tpl>><a href="admin_goods.php?action=list&ordertype=goods_pricedesc&order=<tpl> if $order_state.ordertype != '' && $order_state.order=='down' </tpl>up<tpl> else </tpl>down<tpl> /if </tpl>" title="<tpl>$admin_goods_list_storage</tpl><tpl>$admin_goods_list_order</tpl>"><tpl>$admin_goods_list_pricedesc</tpl><!-- 本店售价 --></a></span></th>
  96. <th><tpl>$admin_goods_list_put</tpl><!-- 发布 --></th>
  97. <th><tpl>$admin_goods_list_commend</tpl><!-- 推荐 --></th>
  98. <th><tpl>$admin_goods_list_special</tpl><!-- 特价 --></th>
  99. <th><tpl>$admin_goods_list_hot</tpl><!-- 热卖 --></th>
  100. <th><span <tpl> if $order_state.ordertype == 'goods_storage' </tpl> class="<tpl> $order_state.order </tpl>"<tpl> /if </tpl>><a href="admin_goods.php?action=list&ordertype=goods_storage&order=<tpl> if $order_state.ordertype != '' && $order_state.order=='down' </tpl>up<tpl> else </tpl>down<tpl> /if </tpl>" title="<tpl>$admin_goods_list_storage</tpl><tpl>$admin_goods_list_order</tpl>"><tpl>$admin_goods_list_storage</tpl><!-- 库存 --></a></span></th>
  101. <th><tpl>$admin_goods_list_oper</tpl><!-- 操作 --></th>
  102. </tr>
  103. <tpl> section name=i loop=$goods_array </tpl>
  104. <tr>
  105. <td><label>
  106. <input type="checkbox" name="gid[]" id="gid[]" value="<tpl> $goods_array[i].goods_id </tpl>" class="cb" />
  107. </label></td>
  108. <td><tpl> $goods_array[i].goods_bn </tpl></td>
  109. <td><tpl> $goods_array[i].class_name </tpl></td>
  110. <td><a href="<tpl>$Site_Url</tpl>/admin/admin_goods.php?action=goods_page&modify_id=<tpl>$goods_array[i].goods_id</tpl>"><tpl> $goods_array[i].goods_name </tpl></a></td>
  111. <td id="imgTd<tpl>$smarty.section.i.rownum</tpl>"><tpl> if $goods_array[i].goods_image eq "default.jpg"</tpl><tpl>$admin_goods_list_null</tpl><!-- --><tpl>else</tpl><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_pic.gif" alt="" class="img_icon" />
  112. <div class="thumbDiv"><img src="<tpl>$Site_Url</tpl>/<tpl> $goods_array[i].goods_small_image </tpl>" class="img_thumb" /></div>
  113. <tpl>/if</tpl></td>
  114. <td><tpl> $goods_array[i].goods_pricedesc </tpl></td>
  115. <td><span id="state_<tpl>$goods_array[i].goods_id</tpl>"><a onclick="nc_state_update('<tpl>$goods_array[i].goods_id</tpl>','goods_state','<tpl> $goods_array[i].goods_state </tpl>','state_<tpl>$goods_array[i].goods_id</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl>if $goods_array[i].goods_state == 1 </tpl>1<tpl>else</tpl>0<tpl>/if</tpl>.gif" alt="<tpl>$admin_goods_list_click_update</tpl>" /></a></span></td>
  116. <td><span id="commend_<tpl>$goods_array[i].goods_id</tpl>"><a onclick="nc_state_update('<tpl>$goods_array[i].goods_id</tpl>','goods_commend','<tpl> $goods_array[i].goods_commend </tpl>','commend_<tpl>$goods_array[i].goods_id</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl> $goods_array[i].goods_commend </tpl>.gif" alt="<tpl>$admin_goods_list_click_update</tpl>" /></a></span></td>
  117. <td><span id="special_<tpl>$goods_array[i].goods_id</tpl>"><a onclick="nc_state_update('<tpl>$goods_array[i].goods_id</tpl>','goods_special','<tpl> $goods_array[i].goods_special </tpl>','special_<tpl>$goods_array[i].goods_id</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl> $goods_array[i].goods_special </tpl>.gif" alt="<tpl>$admin_goods_list_click_update</tpl>" /></a></span></td>
  118. <td><span id="hot_<tpl>$goods_array[i].goods_id</tpl>"><a onclick="nc_state_update('<tpl>$goods_array[i].goods_id</tpl>','goods_hot','<tpl> $goods_array[i].goods_hot </tpl>','hot_<tpl>$goods_array[i].goods_id</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl> $goods_array[i].goods_hot </tpl>.gif" alt="<tpl>$admin_goods_list_click_update</tpl>" /></a></span></td>
  119. <td><tpl> $goods_array[i].goods_storage </tpl></td>
  120. <td>
  121. <a href="../product.php?id=<tpl>$goods_array[i].goods_id</tpl>" target="_blank"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_view.gif" title="<tpl>$admin_goods_list_view</tpl>" /><!-- 查看商品 --></a>
  122. <a href="<tpl>$Site_Url</tpl>/admin/admin_goods.php?action=goods_page&modify_id=<tpl>$goods_array[i].goods_id</tpl>"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_edit.gif" title="<tpl>$admin_goods_list_edit</tpl>" /><!-- 编辑 --></a>
  123. <a href="<tpl>$Site_Url</tpl>/admin/admin_goods.php?action=copy&gid=<tpl>$goods_array[i].goods_id</tpl>"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_copy.gif" title="<tpl>$admin_goods_list_copy</tpl>" /><!-- 复制商品 --></a>
  124. <a href="<tpl>$Site_Url</tpl>/admin/admin_goods.php?action=del&gid=<tpl>$goods_array[i].goods_id</tpl>" onclick="return confirm('<tpl>$admin_goods_list_del_conf</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/fb-delete.gif" title="<tpl>$admin_goods_list_del</tpl>" /><!-- 删除 --></a></td>
  125. </tr>
  126. <tpl> /section </tpl>
  127. </table>
  128. <h5 class="h5_down">
  129. <div class="pagebar">
  130. <tpl>$show_page</tpl>
  131. </div>
  132. <select name="fun" id="fun" class="delBtnInput" onchange="changeFun(this.value)">
  133. <option value="list"><tpl>$admin_goods_list_select_oper</tpl><!-- 选择操作 --></option>
  134. <option value="put"><tpl>$admin_goods_list_put</tpl><!-- 发布 --></option>
  135. <option value="cancel_put"><tpl>$admin_goods_list_cancel_put</tpl><!-- 取消发布 --></option>
  136. <option value="commend"><tpl>$admin_goods_list_commend</tpl><!-- 推荐 --></option>
  137. <option value="cancel_commend"><tpl>$admin_goods_list_cancel_commend</tpl><!-- 取消推荐 --></option>
  138. <option value="special"><tpl>$admin_goods_list_special</tpl><!-- 特价 --></option>
  139. <option value="cancel_special"><tpl>$admin_goods_list_cancel_special</tpl><!-- 取消特价 --></option>
  140. <option value="hot"><tpl>$admin_goods_list_hot</tpl><!-- 热卖 --></option>
  141. <option value="cancel_hot"><tpl>$admin_goods_list_cancel_hot</tpl><!-- 取消热卖 --></option>
  142. <option value="del"><tpl>$admin_goods_list_del</tpl><!-- 回收站 --></option>
  143. </select>
  144. <input type="submit" value="<tpl>$admin_goods_list_enter</tpl>" class="delBtnInput" /><!-- 确定 -->
  145. </h5>
  146. </form>
  147. </div><!-- end of p-list-div -->
  148. </div>
  149. <tpl>include_php file ='admin_footer.php'</tpl><!-- 底部版权信息 -->
  150. </div><!-- end of content -->
  151. </body>
  152. </html>