|
|
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"><head th:replace="~{fragments/modules/base/head :: head}"><meta charset="UTF-8">
</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="fas fa-receipt bg-blue"></i> <div class="d-inline"> <h5>PGR COMPLAINT Zone Wise</h5> <span>PGR COMPLAINT Zone Wise Reports list module</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">PGR Complaints</li> <li class="breadcrumb-item">User ID Wise Reports</li> <li class="breadcrumb-item active" aria-current="page">Zone Wise</li> </ol> </nav> </div> </div> </div> <hr> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-block"> <div> <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="100%"> <thead class="thead-dark"> <tr role="row"> <th class="text-center no-sort" width="1%">S.No</th> <th class="text-center" width="10%">Complaint No</th> <th class="text-center" width="10%">Department</th> <th class="text-center" width="10%">Complaint Type</th> <th class="text-center" width="10%">Complaint Date</th> <th class="text-center" width="10%">Complaint Details</th> <th class="text-center" width="10%">Person Name</th> <th class="text-center" width="10%">User Name</th> </tr> </theadclass="thead-dark"> <tbody> <tr th:each="zonecomplaint, i : ${zonecomplaintlist}" class="zonecomplaintreportlists"> <td th:text="${i.count}">0</td> <td> <!-- <a th:href="@{'/pgr/zonecomplaintdetail/' + ${zonecomplaint.COMPLAINTID}}" target="_self" th:text="${zonecomplaint.COMPLAINTNUMBER}">View details</a> --> <a href="#" th:onclick="return callview([[${zonecomplaint.COMPLAINTID}]]);" th:text="${zonecomplaint.COMPLAINTNUMBER}" data-bs-toggle="tooltip" data-bs-animation="true" data-bs-placement="top" title="View complaint details" style="color: blue; text-decoration: underline;cursor:default;"><i class="far fa-bookmark" style="font-size: 18px; "></i></a>
<td th:text="${zonecomplaint.DEPT_NAME}"></td> <td th:text="${zonecomplaint.COMPLAINTTITLE}"></td> <td th:text="${zonecomplaint.COMPLAINTDATE}"></td> <td th:utext="${zonecomplaint.COMPLAINTDETAILS }"></td> <td th:text="${zonecomplaint.COMPLAINANTFIRSTNAME}"></td> <td th:text="${zonecomplaint.USER_NAME}"></td> </tr> </tbody> <tfoot class="thead-dark"> <tr> <th class="text-center">S.No</th> <th class="text-center">Complaint No</th> <th class="text-center">Department</th> <th class="text-center">Complaint Type</th> <th class="text-center">Complaint Date</th> <th class="text-center">Complaint Details</th> <th class="text-center">Person Name</th> <th class="text-center">User Name</th> </tr> </tfoot> </table> </div> </div> </div> </div> </div> </div> </div>
<footer th:replace="~{fragments/modules/base/footer :: footer}"></footer> </div> </div> ------------------------------------------ <div class="modal fade" id="infoForm" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-xl modal-dialog-scrollable" role="document">
<div class="modal-content"> <div class="modal-header"> <h3 class="modal-title" id="exampleModalCenterLabel">Complaint Details</h3> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <!-- <div id="modelbodyhtml">
<center>Loading...</center> </div> --> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="comno">Complaint No:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comno" id="comno" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="dep">Department:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="dep" id="dep" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="comtyp">Complaint Type:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comtyp" id="comtyp" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="comdat">Complaint Date:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comdat" id="comdat" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="perna">Person Name:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="perna" id="perna" disabled /> </div>
<div class="form-group row"> <label class="col-sm-12 col-form-label" for="addr">Address:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="addr" id="addr" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="pinco">Pin-code:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="pinco" id="pinco" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="mobno">Mobile Number:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="mobno" id="mobno" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="email">Email:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="email" id="email" disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="comptit">Complaint Title:</label> <input type="text" style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center" name="comptit" id=comptit disabled /> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="compldet">Complaint Details:</label><!-- <textarea type="text" class="form-control text-center" name="compldet" id="compldet" disabled />
--> <textarea style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center " name="compldet" id="compldet" disabled ></textarea> </div> <div class="form-group row"> <label class="col-sm-12 col-form-label" for="comlo">Complaint Location:</label> <textarea style="color: #000000; font-weight: bold; font-size: 15px;" class="form-control text-center " name="comlo" id="comlo" disabled ></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> <!-- </form> --> </div> </div> </div> ------------------------------------------------------------ <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div> <script th:replace="~{fragments/modules/base/script :: script}"></script> <script> function callview(COMPLAINTNUMBER){ alert("wait for popup message..."); $.ajax({ type: "GET", url: '/pgr/zonecomplaintdetail', data: { 'complaintno': COMPLAINTNUMBER }, success: function (data) { showcomplaintInfo(data); } }); return false; }
function showcomplaintInfo(zonecomplaint){ $('#infoForm').modal({ backdrop: 'static', keyboard: false }); console.log(zonecomplaint[0]["COMPLAINTTITLE"]); $("#comptit").val(zonecomplaint[0]["COMPLAINTTITLE"]); $("#email").val(zonecomplaint[0]["COMPLAINANTEMAIL"]); $("#comno").val(zonecomplaint[0]["COMPLAINTNUMBER"]); $("#dep").val(zonecomplaint[0]["DEPT_NAME"]); $("#comdat").val(zonecomplaint[0]["COMPLAINTDATE"]); $("#perna").val(zonecomplaint[0]["COMPLAINANTFIRSTNAME"]); $("#addr").val(zonecomplaint[0]["COMPLAINANTADDRESS"]); $("#mobno").val(zonecomplaint[0]["MOBILENUMBER"]); $("#pinco").val(zonecomplaint[0]["PINCODE"]); $("#compldet").val(zonecomplaint[0]["COMPLAINTDETAILS"]); $("#comlo").val(zonecomplaint[0]["COMPLAINTLOCATION"]); //$("#testmail").html(zonecomplaint[0]["COMPLAINANTEMAIL"]); //testmail /* document.getElementById("sno").value =zonecomplaint.i.count; document.getElementById("comno").value =zonecomplaint.COMPLAINTNUMBER; document.getElementById("dep").value =zonecomplaint.DEPT_NAME; document.getElementById("comtyp").value =zonecomplaint.COMPLAINTTITLE; document.getElementById("comdat").value =zonecomplaint.COMPLAINTDATE; document.getElementById("perna").value =zonecomplaint.COMPLAINANTFIRSTNAME; document.getElementById("addr").value =zonecomplaint.COMPLAINANTADDRESS; document.getElementById("pinco").value =zonecomplaint.PINCODE; document.getElementById("mobno").value =zonecomplaint.MOBILENUMBER; document.getElementById("comptit").value =zonecomplaint.COMPLAINANTEMAIL; document.getElementById("compldet").value =zonecomplaint.COMPLAINTDETAILS; document.getElementById("comlo").value =zonecomplaint.COMPLAINTLOCATION; */
$('#infoForm').modal('show'); return false; } $(document).ready(function() { // DataTables buttons configuration var buttons = [ { extend: 'pageLength', className: 'btn btn-warning' }, { title: 'Data export', extend: 'copyHtml5', text: 'Copy', className: 'btn btn-secondary', id: 'copyBtn' }, { extend: 'excelHtml5', text: 'Excel', className: 'btn btn-secondary', id: 'excelBtn' }, { extend: 'csvHtml5', text: 'CSV', className: 'btn btn-secondary', id: 'csvBtn' }, { extend: 'pdfHtml5', text: 'PDF', className: 'btn btn-secondary', id: 'pdfBtn', title:'ZoneWise' }, // Additional button /* { text: '<i class="far fa-plus-square"></i> Add New Asset', className: 'btn btn-warning', action: function () { callAdd(); } } */ ]; $('#assetDatatable').DataTable( { dom: 'Bftip', columnDefs: [ { targets: 'no-sort', orderable: false } ], lengthMenu: [ [ 50, 100, 200, 500, -1 ], [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ] ], scrollY: '50vh', fixedColumns: { left: 1, right: 1 }, buttons: [buttons], fixedHeader: true, autoWidth: true, responsive: true, searching: false, select: false, processing: false, } ); } ); function callAdd(){ $('#addForm').modal({ backdrop: 'static', keyboard: false }) $('#addForm').modal('show'); } /* htmlcode = '<div class="form-group row"><label class="col-sm-6 col-form-label" for="comno">Complaint No:</label><label class="col-sm-6 col-form-label" for="comno">'+zonecomplaint[0]["COMPLAINTTITLE"]+'</label></div>'; $("#modelbodyhtml").html(htmlcode); */ </script> </body></html>
|