index.jsp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ include file="../common/common.jsp"%>
  3. <title>媒体管理</title>
  4. </head>
  5. <link rel="stylesheet" type="text/css" href="${staticPath}webupload/progress.css">
  6. <body>
  7. <%@ include file="../common/head.jsp"%>
  8. <div class="screen main">
  9. <%@ include file="../common/left.jsp" %>
  10. <div class="main-content">
  11. <div class="main-title">产品管理</div>
  12. <form name="dataForm" class="search-form" action="export.do" method="post">
  13. <div class="search-group">
  14. <input type="hidden" name="download" value="1" />
  15. <div class="search-item"><div class="label">产品名称:</div><input type="text" id="productName" name="productName" class="text {text:'请输入关键字'}" size="11" /></div>
  16. <div class="search-item"><div class="label">品牌:</div><input type="text" id="brandName" name="brandName" class="text {text:'请输入关键字'}" size="11" /></div>
  17. <div class="search-item">
  18. <div class="label">一级行业:</div>
  19. <select id ="firstInd" name="firstInd">
  20. <option value=""></option>
  21. </select>
  22. </div>
  23. <div class="search-item">
  24. <div class="label">二级行业:</div>
  25. <select id="secondInd" name="secondInd">
  26. <option value=""></option>
  27. </select>
  28. </div>
  29. </div>
  30. <div class="search-group">
  31. <div class="search-item">
  32. <a href="javascript:void(0);" onclick="getList(1)" class="search-btn">查 询</a>
  33. </div>
  34. </div>
  35. </form>
  36. <div class="table-content">
  37. <div class="rFloat buttons">
  38. <c:if test="${funcMap['product_add'] eq 1}">
  39. <a href="javascript:platformModfiy('add','产品信息');" class="btn">+新增</a>
  40. </c:if>
  41. <a href="${staticPath}excel/产品导入模板.xlsx" class="btn">下载模板</a>
  42. <c:if test="${funcMap['product_import_excel'] eq 1}">
  43. <span class="btn upfile">
  44. <form id="fileForm" action="import_excel.do" method="post" enctype="multipart/form-data" target="hframe">
  45. <span class="webuploader-pick">导入表</span>
  46. <input type="file" name="excelfile" id="excelfile" onchange="importExcel()"; />
  47. </form>
  48. </span>
  49. </c:if>
  50. <c:if test="${funcMap['product_import_pic'] eq 1}">
  51. <div id="picker" class="btn"></div>
  52. </c:if>
  53. <c:if test="${funcMap['product_export'] eq 1}">
  54. <a href="javascript:document.dataForm.submit();" class="btn">导出</a>
  55. </c:if>
  56. </div>
  57. 已选 <span id="checkCount" class="orange">0</span> 条&nbsp;&nbsp;
  58. <c:if test="${funcMap['product_all_delete'] eq 1}">
  59. <a href="javascript:void(0);" onclick="delRecordBatch()" class="btn del">批量删除</a>
  60. </c:if>
  61. <table class="table mTop10" cellpadding="0" cellspacing="0">
  62. <thead>
  63. <tr>
  64. <th width="44"><input type="checkbox" class="checkbox checkbox-white {click:checkAll}" name="all" value="" /></th>
  65. <th>产品名称</th>
  66. <th width="198" class="nop">产品LOGO</th>
  67. <th width="98" class="nop">所属品牌</th>
  68. <th width="98" class="nop">一级行业</th>
  69. <th width="98" class="nop">二级行业</th>
  70. <th width="198">操作</th>
  71. </tr>
  72. </thead>
  73. <tbody id="list"></tbody>
  74. </table>
  75. <div class="mTop20">
  76. <div id="page" class="rFloat"></div>
  77. 累计 <span id="count" class="blue">0</span> 条
  78. </div>
  79. </div>
  80. </div>
  81. <div class="clear"></div>
  82. </div>
  83. <iframe name="hframe" style="display: none;"></iframe>
  84. <%@ include file="../common/footer.jsp"%>
  85. <script type="text/javascript" src="${staticPath}webupload/webuploader.min.js"></script>
  86. <script type="text/javascript" src="${staticPath}webupload/upload.js"></script>
  87. <script type="text/javascript" src="${staticPath}js/adproduct/adproduct.js"></script>
  88. <script type="text/javascript">
  89. var update_flag = "${funcMap['product_update']}",
  90. delete_flag = "${funcMap['product_delete']}",data_update_flag = "${funcMap['product_data_update']}";
  91. $(function(){
  92. $.resetText();
  93. $(".text").input();
  94. $(".select").uiSelect();
  95. $.checkbox();
  96. getList(1);
  97. /*上传rar按钮初始化*/
  98. uploadRar('picker', '导入图片', 2, true, null, null,true,"myCallbcak");
  99. })
  100. function myCallbcak(url){
  101. alert("导入完成。", 1, function(){
  102. getList(1);
  103. });
  104. }
  105. </script>
  106. </body>
  107. </html>