admin_product.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- include 'header' -->
  2. <body>
  3. <div class="mainLayout">
  4. <div class="mainMenu">
  5. <div class="menuItem">
  6. <a href="#" class="mLogo">CLD</a>
  7. <ul>
  8. <!-- include 'menu' -->
  9. </ul>
  10. </div>
  11. </div>
  12. <div class="warpContent">
  13. <div class="subMenu fL">
  14. <div class="menuItem">
  15. <ul>
  16. <!-- include 'admin_menu' -->
  17. </ul>
  18. </div>
  19. </div>
  20. <div class="adminContent autoHeight">
  21. <form name="userinfo" action="/addproduct" method="post">
  22. <legend>添加产品</legend>
  23. <div class="control-group">
  24. <label class="control-label">产品名称</label>
  25. <div class="controls">
  26. <input type="text" name="title">
  27. </div>
  28. </div>
  29. <div class="control-group">
  30. <div class="controls">
  31. <input type="submit" class="button">
  32. </div>
  33. </div>
  34. </form>
  35. <table class="table table-striped">
  36. <thead>
  37. <tr>
  38. <th>#</th>
  39. <th>产品名称</th>
  40. <th>锁数量</th>
  41. <th>操作</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <!-- loop product -->
  46. <tr>
  47. <td>{{product' value.pid}}</td>
  48. <td>{{product' value.title}}</td>
  49. <td>{{product' value.count}}</td>
  50. <td><a href="/adminEdiProduct/{{product' value.pid}}">编辑</a>/<a href="javascript: linkok('/adminDeleteProduct/{{product' value.pid}}')">删除</a></td>
  51. </tr>
  52. <!-- endloop -->
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. </div>
  58. <script language="javascript">
  59. <!--
  60. function linkok(url){
  61. question = confirm("你确认要删除吗?");
  62. if (question){
  63. window.location.href = url;
  64. }
  65. }
  66. //-->
  67. </script>
  68. <script type="text/javascript">autoFlashHeight();</script>
  69. </body>