|
|
<!DOCTYPE html><html lang="en" dir=""><html xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/modules/base/head :: head}"></head>
<body><!--[if lt IE 8]>
<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><![endif]-->
<div class="wrapper"> <!-- header top menu Start --> <header th:replace="~{fragments/modules/base/header :: header}"></header> <!-- header top menu end -->
<div class="page-wrap"> <!--=============== Left Menu side Start ================--> <div th:replace="~{fragments/modules/base/menu :: menu}"></div> <!--=============== Left side End ================--> <div class="main-content"> <div class="container-fluid"> <div class="page-header"> <div class="row align-items-end"> <div class="col-lg-6"> <div class="page-header-title"> <i class="ik ik-thumbs-up bg-blue"></i> <div class="d-inline"> <h5>NULM STAFF</h5> <span>Self Help Group Details</span> </div> </div> </div> <div class="col-lg-6"> <nav class="breadcrumb-container" aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="/index"><i class="ik ik-home"></i></a> </li> <li class="breadcrumb-item active" aria-current="page">Self Help Group Details</li> </ol> </nav> </div> </div> </div>
<!--<hr>
<div class="row">
<div class="col-md-3 form-group"> <label for="year">Year</label> <select class="form-control" id="year" name="year" required> <option value="">Select Year</option> <option th:each="year : ${yearList}" th:value="${year.year}" th:text="${year.year}" th:selected="${year.year == selectedYear}"> </option> </select> </div>
<!– Month –> <div class="col-md-3 form-group"> <label for="month">Month</label> <select id="month" class="form-control" name="month" required> <option value="">Select Year</option> <option th:each="month : ${monthList}" th:value="${month.month}" th:text="${month.month}" th:selected="${month.month == selectedMonth}"> </option> </select> </div>
<div class="col-sm-3"> <button class="btn btn-primary mt-4" onclick="fetchSalaryDetails()">Get Salary Info</button> </div> </div>--> <div class="card-block mt-3"> <div> <table id="salaryDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="99.5%"> <thead class="thead-dark"> <tr role="row"> <th>S.No</th> <th>Group Name</th> <th>Incharge Name</th> <th>Incharge Phone no</th> <th>Account Number</th> <th>Bank Name</th> <th>Branch Name</th> <th>IFSC Code</th> </tr>
</thead> <tbody> <tr th:each="selfHelpGroup, i : ${selfHelpGroup}"> <td th:text="${i.count}">0</td> <td th:text="${selfHelpGroup.group_name}"></td> <td th:text="${selfHelpGroup.incharge_name}"></td> <td th:text="${selfHelpGroup.incharge_phoneno}"></td> <td th:text="${selfHelpGroup.bank_accountno}"></td> <td th:text="${selfHelpGroup.ifsc_code}"></td> <td th:text="${selfHelpGroup.bank_name}"></td> <td th:text="${selfHelpGroup.bank_branch}"></td> </tr> <tfoot class="thead-dark"> <tr role="row"> <th>S.No</th> <th>Group Name</th> <th>Incharge Name</th> <th>Incharge Phone no</th> <th>Account Number</th> <th>IFSC Code</th> <th>Bank Name</th> <th>Branch Name</th>
</tr> </tfoot> </table> </div> </div>
</div>
</div>
<footer th:replace="~{fragments/modules/base/footer :: footer}"></footer> </div></div><div th:replace="~{fragments/modules/pgr/modal-box :: div}"></div>
<div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
<script th:replace="~{fragments/modules/base/script :: script}"></script><script th:replace="~{fragments/modules/pgr/script :: script}"></script><script th:inline="javascript">
$(document).ready(function () { // Initialize DataTable var table = $('#salaryDatatable').DataTable({ dom: 'Bftip', columnDefs: [ {targets: 'no-sort', orderable: false} ], lengthMenu: [ [50, 100, 200, 500, -1], ['50 rows', '100 rows', '200 rows', 'Show all'] ], scrollY: '50vh', fixedColumns: { left: 1, right: 1 }, buttons: [ { extend: 'pageLength', className: 'btn btn-warning' }, { extend: 'pdfHtml5', text: 'PDF', className: 'btn btn-secondary', id: 'pdfBtn', exportOptions: { columns: [0, 1, 2, 3, 4, 5, 6, 7] }, orientation: 'landscape', // Change to landscape for more horizontal space pageSize: 'A4', // You can change to A4 or A3 depending on your needs customize: function (doc) { // Custom column widths for better fit doc.content[1].table.widths = ['5%', '20%', '12%', '10%', '12%', '15%', '15%', '10%'];
// Optional: Adjust font size if needed doc.styles.tableBodyEven.alignment = 'center'; doc.styles.tableBodyOdd.alignment = 'center'; } }, { extend: 'excelHtml5', text: 'EXCEL', className: 'btn btn-secondary', id: 'excelBtn' } ], fixedHeader: true, autoWidth: true, responsive: true, searching: true, select: false, processing: false }); })
</script>
</body>
</html>
|