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.

342 lines
12 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!doctype html>
  2. <html lang="en">
  3. <html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0" >
  7. <title>GCC Feedback</title>
  8. <meta name="description" content="GCC Feedback request application">
  9. <meta name="author" content="gcc">
  10. <meta name="robots" content="noindex, nofollow">
  11. <!-- Open Graph Meta -->
  12. <meta property="og:title" content="Dashmix - Bootstrap 5 Admin Template &amp; UI Framework">
  13. <meta property="og:site_name" content="gcc">
  14. <meta property="og:description" content="GCC Public Garbage collection request application">
  15. <meta property="og:type" content="website">
  16. <meta property="og:url" content="">
  17. <meta property="og:image" content="">
  18. <link rel="shortcut icon" href="/assets/media/favicons/favicon.png">
  19. <link rel="icon" type="image/png" sizes="192x192" href="/assets/media/favicons/favicon-192x192.png">
  20. <link rel="apple-touch-icon" sizes="180x180" href="/assets/media/favicons/apple-touch-icon-180x180.png">
  21. <link rel="stylesheet" id="css-main" href="/assets/css/dashmix.min.css">
  22. </head>
  23. <body>
  24. <style>
  25. .otp-input-box {
  26. /*display: flex;
  27. justify-content: space-between;*/
  28. width: 100%;
  29. }
  30. .otp-input {
  31. width: 30px;
  32. height: 30px;
  33. border: 1px solid #ccc;
  34. border-radius: 5px;
  35. text-align: center;
  36. font-size: 16px;
  37. margin-right: 10px;
  38. }
  39. </style>
  40. <div id="page-container" class="page-header-dark main-content-boxed">
  41. <!-- Header -->
  42. <header id="page-header" style="background-color:#1e6a7f">
  43. <!-- Header Content -->
  44. <div class="content-header">
  45. <!-- Left Section -->
  46. <div class="d-flex align-items-center">
  47. <!-- Logo -->
  48. <a class="fw-semibold text-dual tracking-wide" href="index.html">
  49. <table>
  50. <tr>
  51. <td>
  52. <img id="site-logo" src="https://chennaicorporation.gov.in/gcc/images/270-2709575_greater-chennai-corporation-dr-greater-chennai-corporation-logo.png" style="width: 40px;">
  53. </td>
  54. <td>
  55. <h6 id="logo-txt" class="logo-text ml-1" style="font-size: 12.4px; margin-bottom: 0px;">GREATER<br>
  56. CHENNAI<br>
  57. CORPORATION</h6>
  58. </td>
  59. </tr>
  60. </table>
  61. </a>
  62. <!-- END Logo -->
  63. </div>
  64. <!-- END Left Section -->
  65. </div>
  66. <!-- END Header Content -->
  67. <!-- Please check out the Loaders page under Components category to see examples of showing/hiding it -->
  68. <div id="page-header-loader" class="overlay-header bg-sidebar-dark">
  69. <div class="content-header">
  70. <div class="w-100 text-center">
  71. <i class="fa fa-fw fa-2x fa-spinner fa-spin text-primary"></i>
  72. </div>
  73. </div>
  74. </div>
  75. <!-- END Header Loader -->
  76. </header>
  77. <!-- END Header -->
  78. <!-- Main Container -->
  79. <main id="main-container">
  80. <!-- Hero -->
  81. <div class="bg-image" style="background-image: url('/assets/media/photos/photo15@2x.jpg');">
  82. <div class="bg-primary-dark-op" style="background-color:rgb(4 128 146 / 80%)!important">
  83. <div class="content content-full">
  84. <div class="py-3 text-center">
  85. <h2 class="text-white mb-2">Government of Tamil Nadu</h2>
  86. <h3 class="h4 fw-normal text-white-75 mb-0">தமிழ்நாடு அரசு பெருநகர சென்னை மாநகராட்சி</h3>
  87. <br>
  88. <h4 class="text-white mb-2">Namma Chennai Support</h4>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <!-- END Hero -->
  94. <!-- Page Content -->
  95. <div class="content" >
  96. <div class="row" id="req" style="display: block;">
  97. <div class="col-12">
  98. <form action="" id="reqForm" onsubmit="return newUserCall();" >
  99. <div class="block block-rounded">
  100. <div class="block-header block-header-default">
  101. <h3 class="block-title">New Request Form</h3>
  102. </div>
  103. <div class="block-content">
  104. <div class="row">
  105. <div class="col-md-6 alert-light border-0">
  106. <div class="mb-3">
  107. <label class="form-check-label" for="name">Name</label>
  108. <input type="text" class="form-control" id="name" name="name" required>
  109. </div>
  110. </div>
  111. <div class="col-md-6 alert-light border-0">
  112. <div class="mb-3">
  113. <label class="form-check-label" for="mobile">Mobile No</label>
  114. <input type="text" class="form-control" id="mobile" minlength="10" maxlength="10" name="mobile" required>
  115. </div>
  116. </div>
  117. </div>
  118. <hr class="m-0">
  119. <div class="block-content block-content-full text-end">
  120. <button type="button" class="btn btn-de-secondary btn-sm" onclick="reset()">Reset</button>
  121. <button type="submit" class="btn btn-primary btn-sm" >Submit</button>
  122. </div>
  123. </div>
  124. </form>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <!-- -->
  130. <div class="content" >
  131. <div class="row" id="req1" style="display: none;">
  132. <div class="col-12">
  133. <form action="" id="reqForm1" onsubmit="return deactive();">
  134. <div class="block block-rounded">
  135. <div class="block-header block-header-default">
  136. <h3 class="block-title">Request Details</h3>
  137. </div>
  138. <div class="block-content">
  139. <div class="row">
  140. <div class="col-md-6 alert-light border-0">
  141. <div class="mb-3">
  142. <label class="form-check-label" for="name">Name</label>
  143. <input type="text" class="form-control" id="name1" name="name1" readonly>
  144. </div>
  145. </div>
  146. <div class="col-md-6 alert-light border-0">
  147. <div class="mb-3">
  148. <label class="form-check-label" for="mobile">Mobile No</label>
  149. <input type="text" class="form-control" id="mobile1" minlength="10" maxlength="10" name="mobile1" readonly>
  150. </div>
  151. </div>
  152. <div class="col-md-6 alert-light border-0">
  153. <div class="mb-3">
  154. <label class="form-check-label" for="mobile">Email</label>
  155. <input type="text" class="form-control" id="email" minlength="10" maxlength="10" name="mobile1" readonly>
  156. </div>
  157. </div>
  158. <div class="col-md-6 alert-light border-0">
  159. <div class="mb-3">
  160. <label class="form-check-label" for="mobile">Door No</label>/label>
  161. <input type="text" class="form-control" id="doorno" minlength="10" maxlength="10" name="mobile1"readonly >
  162. </div>
  163. </div>
  164. <div class="col-md-6 alert-light border-0">
  165. <div class="mb-3">
  166. <label class="form-check-label" for="mobile">Area</label>
  167. <input type="text" class="form-control" id="area" minlength="10" maxlength="10" name="mobile1" readonly>
  168. </div>
  169. </div>
  170. <div class="col-md-6 alert-light border-0">
  171. <div class="mb-3">
  172. <label class="form-check-label" for="mobile">aadhar No</label>
  173. <input type="text" class="form-control" id="aadhar" minlength="10" maxlength="10" name="mobile1"readonly >
  174. </div>
  175. </div>
  176. <div class="col-md-6 alert-light border-0">
  177. <div class="mb-3">
  178. <label class="form-check-label" for="mobile">pincode</label>
  179. <input type="text" class="form-control" id="pincode" minlength="10" maxlength="10" name="mobile1" readonly>
  180. </div>
  181. </div>
  182. <div class="col-md-6 alert-light border-0">
  183. <div class="mb-3">
  184. <label class="form-check-label" for="mobile">property No</label>
  185. <input type="text" class="form-control" id="property" minlength="10" maxlength="10" name="mobile1" readonly>
  186. </div>
  187. </div>
  188. <div class="col-md-6 alert-light border-0">
  189. <div class="mb-3">
  190. <label class="form-check-label" for="mobile">Street</label>
  191. <input type="text" class="form-control" id="Street" minlength="10" maxlength="10" name="mobile1" readonly >
  192. </div>
  193. </div>
  194. <div class="col-md-6 alert-light border-0">
  195. <div class="mb-3">
  196. <label class="form-check-label" for="name">Remark</label>
  197. <input type="text" class="form-control" id="Remark" name="Remark" required>
  198. </div>
  199. </div>
  200. </div>
  201. <hr class="m-0">
  202. <div class="block-content block-content-full text-end">
  203. <button type="button" class="btn btn-de-secondary btn-sm" onclick="back()">Back</button>
  204. <button type="submit" class="btn btn-danger btn-sm" >Deactive</button>
  205. </div>
  206. </form>
  207. </div>
  208. </div>
  209. </div>
  210. <!-- -->
  211. </main>
  212. </div>
  213. <!-- Footer -->
  214. <footer id="page-footer" class="footer-static bg-body-extra-light">
  215. <div class="content py-4">
  216. <!-- Footer Copyright -->
  217. <div class="row fs-sm pt-0">
  218. <div class="col-sm-6 order-sm-1 text-center text-sm-start">
  219. <a class="fw-semibold" href="https://chennaicorporation.gov.in/gcc/" target="_blank">GREATER CHENNAI CORPORATION</a> &copy; <span data-toggle="year-copy"></span>
  220. </div>
  221. </div>
  222. <!-- END Footer Copyright -->
  223. </div>
  224. </footer>
  225. <!-- END Footer -->
  226. </div>
  227. <!-- END Page Container -->
  228. <script th:replace="fragments/script :: script"></script>
  229. <script>
  230. function reset(){
  231. document.getElementById("reqForm").reset();
  232. document.getElementById("reqForm1").reset();
  233. }
  234. function back(){
  235. document.getElementById("req1").style.display="none";
  236. document.getElementById("req").style.display="block";
  237. }
  238. function newUserCall(){
  239. var mobile= document.getElementById('mobile').value;
  240. $.ajax({
  241. type: "GET",
  242. url: "/feedback/api/user",
  243. data:{'mobile':mobile},
  244. success: function(response) {
  245. UserDetails(response) ;
  246. }
  247. });
  248. return false;
  249. }
  250. function UserDetails(res) {
  251. console.log(res);
  252. if(res.Message=="Success"){
  253. document.getElementById("name1").value=res.Profile[0].NAME;
  254. document.getElementById("mobile1").value=res.Profile[0].MOBILE;
  255. document.getElementById("email").value=res.Profile[0].EMAIL;
  256. document.getElementById("doorno").value=res.Profile[0].DOORNO;
  257. document.getElementById("area").value=res.Profile[0].AREA;
  258. document.getElementById("aadhar").value=res.Profile[0].AADHAA_NO;
  259. document.getElementById("pincode").value=res.Profile[0].PINCODE;
  260. document.getElementById("property").value=res.Profile[0].PROPERTYTAXNO;
  261. document.getElementById("Street").value=res.Profile[0].STREET;
  262. document.getElementById("req").style.display="none";
  263. document.getElementById("req1").style.display="block";
  264. }else if(res.ResultStatus=="false"){
  265. alert("No Data Found");
  266. }
  267. else{
  268. alert("your Account is already Deactived ");
  269. }
  270. }
  271. function deactive(){
  272. var mobile= document.getElementById('mobile1').value;
  273. if(confirm("Are you sure to Deactive the Account ?")){
  274. $.ajax({
  275. type: "GET",
  276. url: "/feedback/api/deactive",
  277. data:{'mobile':mobile},
  278. success: function(response) {
  279. console.log(response)
  280. alert("Successfully deactived") ;
  281. window.location.reload();
  282. }
  283. });
  284. }
  285. else{
  286. alert("We are here to help you.")
  287. }
  288. return false;
  289. }
  290. </script>
  291. </body>
  292. </html>