123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <!-- include 'header' -->
- <body>
- <div class="mainLayout">
- <div class="mainMenu">
- <div class="menuItem">
- <a href="#" class="mLogo">CLD</a>
- <ul>
- <!-- include 'menu' -->
- </ul>
- </div>
- </div>
- <div class="warpContent">
- <div class="subMenu fL">
- <div class="menuItem">
- <ul>
- <!-- include 'admin_menu' -->
- </ul>
- </div>
- </div>
- <div class="adminContent autoHeight">
- <form name="userinfo" action="/addproduct" method="post">
- <legend>添加产品</legend>
- <div class="control-group">
- <label class="control-label">产品名称</label>
- <div class="controls">
- <input type="text" name="title">
- </div>
- </div>
- <div class="control-group">
- <div class="controls">
- <input type="submit" class="button">
- </div>
- </div>
- </form>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>#</th>
- <th>产品名称</th>
- <th>锁数量</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <!-- loop product -->
- <tr>
- <td>{{product' value.pid}}</td>
- <td>{{product' value.title}}</td>
- <td>{{product' value.count}}</td>
- <td><a href="/adminEdiProduct/{{product' value.pid}}">编辑</a>/<a href="javascript: linkok('/adminDeleteProduct/{{product' value.pid}}')">删除</a></td>
- </tr>
- <!-- endloop -->
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <script language="javascript">
- <!--
- function linkok(url){
- question = confirm("你确认要删除吗?");
- if (question){
- window.location.href = url;
- }
- }
- //-->
- </script>
- <script type="text/javascript">autoFlashHeight();</script>
- </body>
|