This portal only for GCC Officers. Based on there roles and Group ID they can view there module`s Like PGR, QR Public Asset Feedback, Makkalai Thedi Mayor,etc...
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.

606 lines
31 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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-4">
  22. <div class="page-header-title">
  23. <i class='fa fa-times-circle' style='font-size:24px; color: #1aafd4'></i>
  24. <div class="d-inline">
  25. <h5>Rejected Info</h5>
  26. <span>Pet Registration</span>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="col-lg-5">
  31. <div class="content">
  32. <div class="block block-rounded">
  33. <div class="block-header block-header-default" style="display: block;">
  34. <form class="row" action="javascript:getbydate()">
  35. <div class="row">
  36. <div class="col-4">
  37. <input type="date" th:value="${fromDate}" class="form-control" name="FromDate" id="fromdate" data-date-format="yyyy-mm-dd" />
  38. </div>
  39. <div class="col-4">
  40. <input type="date" th:value="${toDate}" class="form-control" name="ToDate" id="todate" data-date-format="yyyy-mm-dd" />
  41. </div>
  42. <div class="col-2 p-0 text-center">
  43. <button type="submit" class="btn btn-sm btn-primary" name="submit" id="submit" onclick="getbydate()" >Submit</button>
  44. <br>
  45. </div>
  46. <div class="col-2 p-0 text-center">
  47. <button class="btn btn-danger" onclick="resetDate()" name="reset" type="reset">Reset</button>
  48. </div>
  49. </div>
  50. </div>
  51. </form>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="col-lg-3">
  56. <nav class="breadcrumb-container" aria-label="breadcrumb">
  57. <ol class="breadcrumb">
  58. <li class="breadcrumb-item">
  59. <a href="/index"><i class="ik ik-home"></i></a>
  60. </li>
  61. <li class="breadcrumb-item">Pet Registration</li>
  62. <li class="breadcrumb-item">Rejected</li>
  63. </ol>
  64. </nav>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="row">
  69. <div class="col-md-12">
  70. <div class="card">
  71. <div class="card-block">
  72. <div>
  73. <table id="assetDatatable" class="table table-striped table-bordered table-hover dataTable" role="grid" width="99.5%">
  74. <thead class="thead-dark">
  75. <tr role="row">
  76. <th>S.No</th>
  77. <th>Name</th>
  78. <th>Type</th>
  79. <th>Breed</th>
  80. <th>sex</th>
  81. <th>pet photo</th>
  82. <th>Rabies certi</th>
  83. <th>Application photo</th>
  84. <th>Address Proof</th>
  85. <th class="text-center" width="10%">Status</th>
  86. <th class="text-center text-center no-sort" width="10%">Action</th>
  87. </tr>
  88. </theadclass="thead-dark">
  89. <tbody>
  90. <tr th:each="list, i : ${petlist}" class="${petlist}">
  91. <td th:text="${i.count}">0</td>
  92. <td class="text-center" th:text="${list.petname}"></td>
  93. <td th:text="${list.species}"></td>
  94. <td th:text="${list.breed}"></td>
  95. <td th:text="${list.gender}"></td>
  96. <!-- <td th:text="${list.gender}"></td>-->
  97. <td class="text-center">
  98. <button type="button" th:onclick="petimg([[${list.mobilenum}]],[[${list.uniqueid}]])" class="btn btn-primary">
  99. view
  100. </button>
  101. </td>
  102. <td class="text-center">
  103. <button type="button" th:onclick="certificateimg([[${list.mobilenum}]],[[${list.uniqueid}]])" class="btn btn-primary">
  104. view
  105. </button>
  106. </td>
  107. <td class="text-center">
  108. <button type="button" th:onclick="applicantimg([[${list.mobilenum}]],[[${list.uniqueid}]])" class="btn btn-primary">
  109. view
  110. </button>
  111. </td>
  112. <td class="text-center">
  113. <button type="button" th:onclick="proofimg([[${list.mobilenum}]],[[${list.uniqueid}]])" class="btn btn-primary">
  114. view
  115. </button>
  116. </td>
  117. <td >
  118. <p >
  119. <!-- <span class="badge bg-success" th:onclick="accept([[${list.uniqueid}]])">Accept</span> -->
  120. <span class="badge bg-warning" style="cursor: pointer;" th:onclick="reject([[${list.uniqueid}]])">Rejected</span>
  121. </p>
  122. </td>
  123. <td class="text-center">
  124. <a th:onclick="viewOwner( [[${list.mobilenum}]] );" data-bs-toggle="tooltip" data-bs-animation="true" data-bs-placement="top" title="View PetOwner info"><i class="fa-regular fa-user" style="font-size: 18px;cursor: pointer;"></i></a>
  125. </td>
  126. </tr>
  127. </tbody>
  128. <tfoot class="thead-dark">
  129. <tr>
  130. <th>S.No</th>
  131. <th>Name</th>
  132. <th>Type</th>
  133. <th>Breed</th>
  134. <th>sex</th>
  135. <th>pet photo</th>
  136. <th>Rabies certi</th>
  137. <th>Application photo</th>
  138. <th>Address Proof</th>
  139. <th class="text-center" width="10%">Status</th>
  140. <th class="text-center text-center no-sort" width="10%">Action</th>
  141. </tr>
  142. </tfoot>
  143. </table>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  153. </div>
  154. </div>
  155. <!-- Modal image -->
  156. <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterLabel" aria-hidden="true">
  157. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  158. <div class="modal-content">
  159. <div class="modal-header">
  160. <h5 class="modal-title" id="exampleModalCenterLabel">Photo</h5>
  161. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  162. </div>
  163. <div class="modal-body">
  164. <img alt="" id="myImg" src="" style="width:100%">
  165. </div>
  166. <div class="modal-footer">
  167. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <!-- end of modal image -->
  173. <!-- Pet Info Form -->
  174. <div class="modal fade" id="rejectForm" tabindex="-1" role="dialog" aria-labelledby="rejectFormCenterLabel" aria-hidden="true">
  175. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  176. <div class="modal-content">
  177. <div class="modal-header">
  178. <h5 class="modal-title" id="rejectFormCenterLabel">Pet Information</h5>
  179. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  180. </div>
  181. <div class="modal-body">
  182. <div class="row">
  183. <input type="hidden" class="form-control text-center" name="uniqid" id="uniqid" disabled />
  184. <div class="col-xl-6 col-md-12"> <strong>Pet Name</strong>
  185. <p class="text-muted form-control showInputValue" id="petna"></p>
  186. </div>
  187. <div class="col-xl-6 col-md-12"> <strong>Pet Type</strong>
  188. <p class="text-muted form-control showInputValue" id="speci" ></p>
  189. </div>
  190. <div class="col-xl-6 col-md-12"> <strong>Breed</strong>
  191. <p class="text-muted form-control showInputValue" id="bre" ></p>
  192. </div>
  193. <div class="col-xl-6 col-md-12"> <strong>Sex</strong>
  194. <p class="text-muted form-control showInputValue" id="gend" ></p>
  195. </div>
  196. <div class="col-xl-6 col-md-12"> <strong>Age</strong>
  197. <p class="text-muted form-control showInputValue" id="age"></p>
  198. </div>
  199. <div class="col-xl-6 col-md-12"> <strong>ARV Date</strong>
  200. <p class="text-muted form-control showInputValue" id="arvd"></p>
  201. </div>
  202. <div class="col-xl-6 col-md-12"> <strong>Last Date Of De-Worming</strong>
  203. <p class="text-muted form-control showInputValue" id="dewormdate"></p>
  204. </div>
  205. <div class="col-xl-6 col-md-12"> <strong>Other Vaccination Given</strong>
  206. <p class="text-muted form-control showInputValue" id="othervac"></p>
  207. </div>
  208. <div class="col-xl-6 col-md-12"> <strong>Previous License No</strong>
  209. <p class="text-muted form-control showInputValue" id="previoslicenseNo"></p>
  210. </div>
  211. <div class="col-xl-6 col-md-12"> <strong>Name of Veterinary doctor</strong>
  212. <p class="text-muted form-control showInputValue" id="VeterinaryConsultant"></p>
  213. </div>
  214. <div class="col-xl-6 col-md-12"> <strong>Veterinary Council Number</strong>
  215. <p class="text-muted form-control showInputValue" id="TNVCNo"></p>
  216. </div>
  217. <div class="col-xl-6 col-md-12"> <strong>Register Date</strong>
  218. <p class="text-muted form-control showInputValue" id="registerdate"></p>
  219. </div>
  220. <div class="col-xl-6 col-md-12"> <strong>Rejected Reason</strong>
  221. <p class="text-muted form-control showInputValue" id="rejectedreason"></p>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. <!-- owner Info -->
  229. <div class="modal fade" id="ownerForm" tabindex="-1" role="dialog" aria-labelledby="ownerFormCenterLabel" aria-hidden="true">
  230. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  231. <div class="modal-content">
  232. <div class="modal-header">
  233. <h5 class="modal-title" id="ownerFormCenterLabel">Pet Owner information</h5>
  234. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  235. </div>
  236. <div class="modal-body">
  237. <div class="row">
  238. <input type="hidden" class="form-control text-center" name="uniqid" id="uniqid" disabled />
  239. <div class="col-xl-6 col-md-12"> <strong>Tittle</strong>
  240. <p class="text-muted form-control showInputValue" id="title"></p>
  241. </div>
  242. <div class="col-xl-6 col-md-12"> <strong>Pet Owner Name</strong>
  243. <p class="text-muted form-control showInputValue" id="fname" ></p>
  244. </div>
  245. <div class="col-xl-6 col-md-12"> <strong>Door No</strong>
  246. <p class="text-muted form-control showInputValue" id="doornumber" ></p>
  247. </div>
  248. <div class="col-xl-6 col-md-12"> <strong>Street</strong>
  249. <p class="text-muted form-control showInputValue" id="street" ></p>
  250. </div>
  251. <div class="col-xl-6 col-md-12"> <strong>Area</strong>
  252. <p class="text-muted form-control showInputValue" id="area"></p>
  253. </div>
  254. <div class="col-xl-6 col-md-12"> <strong>City</strong>
  255. <p class="text-muted form-control showInputValue" id="city"></p>
  256. </div>
  257. <div class="col-xl-6 col-md-12"> <strong>Pincode</strong>
  258. <p class="text-muted form-control showInputValue" id="pincode"></p>
  259. </div>
  260. <div class="col-xl-6 col-md-12"> <strong>Zone</strong>
  261. <p class="text-muted form-control showInputValue" id="zone"></p>
  262. </div>
  263. <div class="col-xl-6 col-md-12"> <strong>Ward</strong>
  264. <p class="text-muted form-control showInputValue" id="ward"></p>
  265. </div>
  266. <div class="col-xl-6 col-md-12"> <strong>Contact No</strong>
  267. <p class="text-muted form-control showInputValue" id="phone"></p>
  268. </div>
  269. <div class="col-xl-6 col-md-12"> <strong>Email Id</strong>
  270. <p class="text-muted form-control showInputValue" id="email"></p>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <!-- End owner Info -->
  278. <!-- Script -->
  279. <!-- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> -->
  280. <!-- <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> -->
  281. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  282. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  283. <script type="text/javascript">
  284. $(document).ready(function() {
  285. // DataTables buttons configuration
  286. var buttons = [
  287. {
  288. extend: 'pageLength',
  289. className: 'btn btn-warning'
  290. },
  291. {
  292. title: 'Data export',
  293. extend: 'copyHtml5',
  294. text: 'Copy',
  295. className: 'btn btn-secondary',
  296. id: 'copyBtn'
  297. },
  298. {
  299. extend: 'excelHtml5',
  300. text: 'Excel',
  301. className: 'btn btn-secondary',
  302. id: 'excelBtn'
  303. },
  304. {
  305. extend: 'csvHtml5',
  306. text: 'CSV',
  307. className: 'btn btn-secondary',
  308. id: 'csvBtn'
  309. },
  310. {
  311. extend: 'pdfHtml5',
  312. text: 'PDF',
  313. className: 'btn btn-secondary',
  314. id: 'pdfBtn'
  315. },
  316. ];
  317. $('#assetDatatable').DataTable( {
  318. dom: 'Bftip',
  319. columnDefs: [
  320. { targets: 'no-sort', orderable: false }
  321. ],
  322. lengthMenu: [
  323. [ 50, 100, 200, 500, -1 ],
  324. [ '50 rows', '100 rows', '200 rows','500 rows', 'Show all' ]
  325. ],
  326. scrollY: '50vh',
  327. fixedColumns: {
  328. left: 1,
  329. right: 1
  330. },
  331. buttons: [buttons],
  332. responsive: true,
  333. searching: true,
  334. select: false,
  335. processing: false,
  336. } );
  337. $('#searchInput').on('keyup', function() {
  338. dataTable.search(this.value).draw();
  339. });
  340. } );
  341. function petimg(mobno,uniqueid){
  342. $.ajax({
  343. type: "GET",
  344. url: '/gcc/api/pet/getpetimg',
  345. data: {
  346. 'mobno':mobno,
  347. 'uniqueid':uniqueid
  348. },
  349. success: function(x) {
  350. document.getElementById("myImg").src ="data:image/jpeg;base64,"+x;
  351. }
  352. });
  353. $('#exampleModal').modal({
  354. backdrop: 'static',
  355. keyboard: false
  356. });
  357. $('#exampleModal').modal('show');
  358. return false;
  359. }
  360. function applicantimg(mobno,uniqueid){
  361. $.ajax({
  362. type: "GET",
  363. url: '/gcc/api/pet/getapplicantimg',
  364. data: {
  365. 'mobno':mobno,
  366. 'uniqueid':uniqueid
  367. },
  368. success: function(x) {
  369. document.getElementById("myImg").src ="data:image/jpeg;base64,"+x;
  370. }
  371. });
  372. $('#exampleModal').modal({
  373. backdrop: 'static',
  374. keyboard: false
  375. });
  376. $('#exampleModal').modal('show');
  377. //document.getElementById("myImg").src ="data:image/jpeg;base64,"+x.applicantphoto;
  378. }
  379. function certificateimg(mobno,uniqueid){
  380. $.ajax({
  381. type: "GET",
  382. url: '/gcc/api/pet/getvacimg',
  383. data: {
  384. 'mobno':mobno,
  385. 'uniqueid':uniqueid
  386. },
  387. success: function(x) {
  388. document.getElementById("myImg").src ="data:image/jpeg;base64,"+x;
  389. }
  390. });
  391. $('#exampleModal').modal({
  392. backdrop: 'static',
  393. keyboard: false
  394. });
  395. $('#exampleModal').modal('show');
  396. //document.getElementById("myImg").src ="data:image/jpeg;base64,"+x.rabiesvacCerti;
  397. }
  398. function proofimg(mobno,uniqueid){
  399. $.ajax({
  400. type: "GET",
  401. url: '/gcc/api/pet/getaddproofimg',
  402. data: {
  403. 'mobno':mobno,
  404. 'uniqueid':uniqueid
  405. },
  406. success: function(x) {
  407. document.getElementById("myImg").src ="data:image/jpeg;base64,"+x;
  408. }
  409. });
  410. $('#exampleModal').modal({
  411. backdrop: 'static',
  412. keyboard: false
  413. });
  414. $('#exampleModal').modal('show');
  415. //document.getElementById("myImg").src ="data:image/jpeg;base64,"+x.addressproof;
  416. }
  417. function accept(){
  418. let id = document.getElementById("uniqid").value;
  419. Swal.fire({
  420. title: 'Do you want to Accept this Pet ?',
  421. showDenyButton: true,
  422. showCancelButton: true,
  423. confirmButtonText: 'YES',
  424. denyButtonText: `NO`,
  425. }).then((result) => {
  426. /* Read more about isConfirmed, isDenied below */
  427. if (result.isConfirmed) {
  428. $.ajax({
  429. type: "GET",
  430. url: '/gcc/api/accept',
  431. data: {'id':id},
  432. success: function(bodyMessage) {
  433. if(bodyMessage=="success"){
  434. Swal.fire(
  435. 'Done',
  436. 'Successfully Accepted to the ID:'+id,
  437. 'success'
  438. ).then(() => {
  439. location.reload();
  440. });
  441. }
  442. }
  443. });
  444. } else if (result.isDenied) {
  445. Swal.fire('Changes are not saved', '', 'info')
  446. }
  447. })
  448. }
  449. function reject(uniqueid){
  450. $.ajax({
  451. type: "GET",
  452. url: '/gcc/api/pet/getpetInfo',
  453. data: {
  454. 'petid':uniqueid
  455. },
  456. success: function(x) {
  457. showPetInfo(x)
  458. }
  459. });
  460. }
  461. function showPetInfo(list){
  462. $('#rejectForm').modal({
  463. backdrop: 'static',
  464. keyboard: false
  465. });
  466. $('#rejectForm').modal('show');
  467. document.getElementById("uniqid").innerHTML =list.uniqueid;
  468. document.getElementById("petna").innerHTML =list.petname;
  469. document.getElementById("speci").innerHTML =list.species;
  470. document.getElementById("bre").innerHTML =list.breed;
  471. document.getElementById("gend").innerHTML =list.gender;
  472. document.getElementById("age").innerHTML =list.age;
  473. document.getElementById("arvd").innerHTML =list.arvdate;
  474. document.getElementById("dewormdate").innerHTML =list.dewormdate;
  475. document.getElementById("othervac").innerHTML =list.othervac;
  476. document.getElementById("previoslicenseNo").innerHTML =list.previoslicenseNo;
  477. document.getElementById("VeterinaryConsultant").innerHTML =list.veterinaryConsultant;
  478. document.getElementById("TNVCNo").innerHTML =list.tnvcno;
  479. document.getElementById("registerdate").innerHTML =list.registerdate;
  480. document.getElementById("rejectedreason").innerHTML=list.rejectreason;
  481. }
  482. function viewOwner(mobilenum){
  483. let own;
  484. $.ajax({
  485. type: "GET",
  486. url: '/gcc/api/pet/getpetOwner',
  487. data: {'mobilenum':mobilenum },
  488. success: function(bodyMessage) {
  489. ownercall(bodyMessage);
  490. }
  491. });
  492. }
  493. function ownercall(list){
  494. $('#ownerForm').modal({
  495. backdrop: 'static',
  496. keyboard: false
  497. });
  498. $('#ownerForm').modal('show');
  499. document.getElementById("title").innerHTML =list.title;
  500. document.getElementById("fname").innerHTML =list.fname;
  501. document.getElementById("doornumber").innerHTML =list.doornumber;
  502. document.getElementById("street").innerHTML =list.street;
  503. document.getElementById("area").innerHTML =list.area;
  504. document.getElementById("city").innerHTML =list.city;
  505. document.getElementById("pincode").innerHTML =list.pincode;
  506. document.getElementById("zone").innerHTML =list.zone;
  507. document.getElementById("ward").innerHTML =list.ward;
  508. document.getElementById("phone").innerHTML =list.phone;
  509. document.getElementById("email").innerHTML =list.email;
  510. document.getElementById("pancard").innerHTML =list.pancard;
  511. document.getElementById("aadhar").innerHTML =list.aadhar;
  512. document.getElementById("voterid").innerHTML =list.voterid;
  513. }
  514. // Function to call modal for New pet registration
  515. callAdd = function(){
  516. $('#addForm').modal({
  517. backdrop: 'static',
  518. keyboard: false
  519. })
  520. $('#addForm').modal('show');
  521. }
  522. // $(document).ready(function () {
  523. // var today = new Date();
  524. // $('.datepicker').datepicker({
  525. // dateFormat: 'yy-mm-dd',
  526. // maxDate: '1'
  527. // })
  528. // $('.datepicker').keyup(function () {
  529. // if (this.value.match(/[^0-9]/g)) {
  530. // this.value = this.value.replace(/[^0-9^-]/g, '');
  531. // }
  532. // });
  533. // });
  534. function getbydate(){
  535. var x= document.getElementById("fromdate").value;
  536. var y= document.getElementById("todate").value;
  537. var url= '/gcc/pet/rejectedPets?fromDate='+x+'&toDate='+y;
  538. window.location.href=url;
  539. }
  540. function resetDate(){
  541. var url= '/gcc/pet/rejectedPets';
  542. window.location.href=url;
  543. }
  544. </script>
  545. </body>
  546. </html>