| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <html xmlns:th="http://www.thymeleaf.org">
- <head>
- <title>私塾家</title>
- <script th:include="sys/common/metaCSS" th:remove="tag"></script>
- <script th:include="sys/common/metaJS" th:remove="tag"></script>
- </head>
- <style>
- .tablelink{margin-right:10px;}
- .stylecss{
- color: red;
- }
- .select_width{
- width: 70px;
- }
- .date_width{
- width: 100px;
- }
- </style>
- <body>
- <div class="place">
- <span>位置:</span>
- <ul class="placeul">
- <li><a href="#">微信管理</a></li>
- <li><a th:href="@{/sys/problem/weikeStoryList.html}">每天一故事</a></li>
- </ul>
- </div>
- <div class="rightinfo">
- <form id="seachform" th:action="@{/sys/problem/weikeStoryList.html}" method="post">
- <ul class="seachform">
- <li>
- <label>名称</label>
- <input name="LIKE_name" type="text" class="scinput" th:value="${search.get('LIKE_name')}"/>
- </li>
- <li>
- <label> </label>
- <input type="button" class="scbtn" value="查询" />
- </li>
- <li>
- <ul class="toolbar">
- <a th:href="@{/sys/problem/weikeStoryAdd.html}"><li class="click"><span><img th:src="@{/static/sys/images/t01.png}" /></span>新增</li></a>
- </ul>
- </li>
- </ul>
- </form>
- <table class="tablelist">
- <thead>
- <tr>
- <th style="width: 50px;">序号</th>
- <th>名称</th>
- <th>图片</th>
- <th>音频</th>
- <th>旁听数</th>
- <th>创建时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="item:${list}" >
- <td th:text="${itemStat.count}" ></td>
- <td th:text="${item.name}" ></td>
- <td class="imgtd">
- <img th:if="${item.imgUrl}!=null" th:src="${imgUrl}+''+${item.imgUrl}" style="width: 50px;height: 50px;" />
- </td>
- <td>
- <audio controls="controls" th:if="${item.audioUrl}" th:src="${imgUrl}+''+${item.audioUrl}" ></audio>
- </td>
- <td th:text="${item.listen}" ></td>
- <td style="width: 141px;" th:text="${#calendars.format(item.createTime,'yyyy-MM-dd HH:mm:ss')}" ></td>
- <td>
- <a th:href="@{/sys/problem/weikeStoryAdd.html(id=${item.id})}" class="tablelink" >修改</a>
- <a href="javascript:;" th:onclick="'deleteById(\''+${item.id}+'\')'" class="tablelink" >删除</a>
- </td>
-
- </tr>
- </tbody>
- </table>
- <!-- 分页 -->
- <div class="pagin">
- <div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录,当前显示第 <i class="blue">[[${page.pageNo }]] </i>页</div>
- <div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- function deleteById(id){
- layer.confirm("确定删除该目录?",
- {icon: 4, btn: ['确定','取消']
- }, function(){
- $.ajax({
- url: '[[${sysUrl}]]/sys/problem/deleteWeikeStory',
- type: "post",
- data:{
- 'id': id
- },
- dataType: "json",
- success:function(data){
-
- if(data.meta.success){
- layer.msg("删除成功",{icon:1});
- setTimeout(function(){
- location.reload();
- },1000);
- }else{
- layer.msg(data.meta.message,{icon:11});
- }
- }
- });
- });
- }
- </script>
- </html>
|