You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

267 lines
13 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html lang="en" dir="">
  3. <html xmlns:th="http://www.thymeleaf.org">
  4. <head th:replace="~{fragments/modules/base/head :: head}"></head>
  5. <body>
  6. <!--[if lt IE 8]>
  7. <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
  8. <![endif]-->
  9. <div class="wrapper">
  10. <!-- header top menu Start -->
  11. <header th:replace="~{fragments/modules/base/header :: header}"></header>
  12. <!-- header top menu end -->
  13. <div class="page-wrap">
  14. <!--=============== Left Menu side Start ================-->
  15. <div th:replace="~{fragments/modules/base/menu :: menu}"></div>
  16. <!--=============== Left side End ================-->
  17. <div class="main-content">
  18. <div class="container-fluid">
  19. <div class="page-header">
  20. <div class="row align-items-end">
  21. <div class="col-lg-8">
  22. <div class="page-header-title">
  23. <i class="fa fa-columns bg-blue"></i>
  24. <div class="d-inline">
  25. <h5>PGR COMPLAINT Mobile AGE ANALYSIS</h5>
  26. <span>PGR COMPLAINT Mobile AGE ANALYSIS Reports list module</span>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="col-lg-4">
  31. <nav class="breadcrumb-container" aria-label="breadcrumb">
  32. <ol class="breadcrumb">
  33. <li class="breadcrumb-item">
  34. <a href="/index"><i class="ik ik-home"></i></a>
  35. </li>
  36. <li class="breadcrumb-item">PGR Complaints</li>
  37. <li class="breadcrumb-item">User ID Wise Reports</li>
  38. <li class="breadcrumb-item active" aria-current="page">Mobile AGE ANALYSIS</li>
  39. </ol>
  40. </nav>
  41. </div>
  42. </div>
  43. </div>
  44. <hr>
  45. <div class="row">
  46. <div class="col-md-12">
  47. <div class="card">
  48. <div class="card-block">
  49. <div>
  50. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="100%">
  51. <thead class="thead-dark">
  52. <tr role="row">
  53. <th class="text-center no-sort" width="1%">S.No</th>
  54. <th class="text-center" width="10%">Department</th>
  55. <th class="text-center" width="10%">User Name</th>
  56. <th class="text-center" width="10%">Mobile Number</th>
  57. <th class="text-center" width="10%">Nos</th>
  58. </tr>
  59. </theadclass="thead-dark">
  60. <tbody>
  61. <tr th:each="mobageanwise, i : ${mobileageanalysislist}" class="mobileageanalysislist">
  62. <td th:text="${i.count}">0</td>
  63. <td class="text-center" th:text="${mobageanwise.DEPT_NAME}"></td>
  64. <td class="text-center" th:text="${mobageanwise.USER_NAME}"></td>
  65. <td class="text-center" th:text="${mobageanwise.MOBILENO}"></td>
  66. <td><a
  67. th:href="@{'/pgr/mobileageanalysiscomplaintlist/?Deptid=' + ${mobageanwise.DEPTID} + '&PgrUserID=' + ${mobageanwise.IDUSER} + '&nos=' + ${mobageanwise.NOS}}"
  68. target="_self" th:text="${mobageanwise.NOS}"
  69. style="color: blue; text-decoration: underline;cursor:default;"> View
  70. details </a></td>
  71. </tr>
  72. </tbody>
  73. <tfoot class="thead-dark">
  74. <tr>
  75. <th class="text-center">S.No</th>
  76. <th class="text-center">Department</th>
  77. <th class="text-center">User Name</th>
  78. <th class="text-center">Mobile Number</th>
  79. <th class="text-center">Nos</th>
  80. </tr>
  81. </tfoot>
  82. </table>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  91. </div>
  92. </div>
  93. <div class="modal fade" id="addForm" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterLabel" aria-hidden="true">
  94. <div class="modal-dialog modal-dialog-centered" role="document">
  95. <div class="modal-content">
  96. <div class="modal-header">
  97. <h5 class="modal-title" id="exampleModalCenterLabel">Master Category Form</h5>
  98. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  99. </div>
  100. <div class="modal-body">
  101. <div class="form-group row">
  102. <label for="catName" class="col-sm-12 col-form-label">Asset Category Name</label>
  103. <div class="col-sm-12">
  104. <input type="text" class="form-control" name="catName" id="catName" placeholder="Category Name" required>
  105. </div>
  106. </div>
  107. <div class="form-group row">
  108. <label for="isActive" class="col-sm-12 col-form-label">IsActive</label>
  109. <div class="col-sm-12">
  110. <select class="form-control" id="isActive" name="isActive" >
  111. <option value=1>Yes</option>
  112. <option value=0>No</option>
  113. </select>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="modal-footer">
  118. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  119. <button type="button" class="btn btn-primary">Save changes</button>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="modal fade" id="addForm2" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  125. <div class="modal-dialog" role="document">
  126. <div class="modal-content">
  127. <form action="#" th:action="@{/saveCategory}" method="post">
  128. <div class="block block-rounded block-themed block-transparent mb-0">
  129. <div class="block-header bg-primary-dark">
  130. <h3 class="block-title">Master Category Form</h3>
  131. <div class="block-options">
  132. <button type="button" class="btn-block-option" data-bs-dismiss="modal" aria-label="Close">
  133. <i class="fa fa-fw fa-times"></i>
  134. </button>
  135. </div>
  136. </div>
  137. <div class="block-content">
  138. <div class="form-group row">
  139. <label for="exampleInputUsername2" class="col-sm-3 col-form-label">Username</label>
  140. <div class="col-sm-9">
  141. <input type="text" class="form-control" id="exampleInputUsername2" placeholder="Username">
  142. </div>
  143. </div>
  144. <div class="form-group row">
  145. <label for="exampleInputEmail2" class="col-sm-3 col-form-label">Email</label>
  146. <div class="col-sm-9">
  147. <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email">
  148. </div>
  149. </div>
  150. <div class="row">
  151. <div class="mb-3">
  152. <label for="catName">Asset Category Name</label>
  153. <input type="text" class="form-control" name="catName" id="catName" placeholder="Category Name" required>
  154. <!--<small id="emailHelp" class="form-text text-muted">Set of assets grouped under this unique category</small>-->
  155. </div>
  156. <div class="mb-3">
  157. <label class="form-check-label">IsActive</label>
  158. <select class="form-select" id="isActive" name="isActive" >
  159. <option value=1>Yes</option>
  160. <option value=0>No</option>
  161. </select>
  162. </div>
  163. </div><!--end row-->
  164. </div><!--end modal-body-->
  165. </div>
  166. <div class="block-content block-content-full text-end bg-body">
  167. <button type="button" class="btn btn-de-secondary btn-sm" data-bs-dismiss="modal">Close</button>
  168. <button type="submit" class="btn btn-primary btn-sm">Save</button>
  169. </div><!--end modal-footer-->
  170. </form>
  171. </div><!--end modal-content-->
  172. </div><!--end modal-dialog-->
  173. </div><!--end modal-->
  174. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  175. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  176. <script>
  177. $(document).ready(function() {
  178. // DataTables buttons configuration
  179. var buttons = [
  180. {
  181. extend: 'pageLength',
  182. className: 'btn btn-warning'
  183. },
  184. {
  185. title: 'Data export',
  186. extend: 'copyHtml5',
  187. text: 'Copy',
  188. className: 'btn btn-secondary',
  189. id: 'copyBtn'
  190. },
  191. {
  192. extend: 'excelHtml5',
  193. text: 'Excel',
  194. className: 'btn btn-secondary',
  195. id: 'excelBtn'
  196. },
  197. {
  198. extend: 'csvHtml5',
  199. text: 'CSV',
  200. className: 'btn btn-secondary',
  201. id: 'csvBtn'
  202. },
  203. {
  204. extend: 'pdfHtml5',
  205. text: 'PDF',
  206. className: 'btn btn-secondary',
  207. id: 'pdfBtn'
  208. },
  209. // Additional button
  210. {
  211. text: '<i class="far fa-plus-square"></i> Add New Asset',
  212. className: 'btn btn-warning',
  213. action: function () {
  214. callAdd();
  215. }
  216. }
  217. ];
  218. $('#assetDatatable').DataTable( {
  219. dom: 'Bftip',
  220. columnDefs: [
  221. { targets: 'no-sort', orderable: false }
  222. ],
  223. lengthMenu: [
  224. [ 50, 100, 200, 500, -1 ],
  225. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  226. ],
  227. scrollY: '50vh',
  228. fixedColumns: {
  229. left: 1,
  230. right: 1
  231. },
  232. buttons: [buttons],
  233. fixedHeader: true,
  234. autoWidth: true,
  235. responsive: true,
  236. searching: false,
  237. select: false,
  238. processing: false,
  239. } );
  240. } );
  241. function callAdd(){
  242. $('#addForm').modal({
  243. backdrop: 'static',
  244. keyboard: false
  245. })
  246. $('#addForm').modal('show');
  247. }
  248. </script>
  249. </body>
  250. </html>