daily.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>检查记录列表</title>
  9. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.min.css" />
  10. <style>
  11. tr{
  12. cursor: pointer;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div>
  18. <p><br></p>
  19. <h3 class="text-center">检查记录列表</h3>
  20. <p><br></p>
  21. <table class="table table-striped text-center" style="width: 100%">
  22. <tr>
  23. <th class="text-center">任务地点名称</th>
  24. <th class="text-center">任务详情</th>
  25. <th class="text-center">工作人员</th>
  26. <th class="text-center">时间</th>
  27. </tr>
  28. {notempty name="lists"}
  29. {volist name="lists" id="v"}
  30. <tr data-url="{:url('Todo/ddetail',['id'=>$v['id'],'orgId'=>$orgId])}" onclick="gotourl(this)">
  31. <td>{$v.title}</td>
  32. <td>{$v.daily_details}</td>
  33. <td>{$v.user_name}</td>
  34. <td>{$v.create_time}</td>
  35. </tr>
  36. {/volist}
  37. {else /}
  38. <tr>
  39. <td colspan="4">暂无数据</td>
  40. </tr>
  41. {/notempty}
  42. </table>
  43. <p><br></p>
  44. </div>
  45. <script src="/static/jquery-1.11.3.min.js"></script>
  46. <script>
  47. function gotourl(_self) {
  48. window.location.href = $(_self).attr('data-url');
  49. }
  50. </script>
  51. </body>
  52. </html>