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.

217 lines
9.5 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-8">
  22. <div class="page-header-title">
  23. <i class="ik ik-bar-chart-2 bg-blue"></i>
  24. <div class="d-inline">
  25. <h5>Dashboard</h5>
  26. <span>Main Dashboard of GCC App</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 active" aria-current="page">Dashboard</li>
  37. </ol>
  38. </nav>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="row">
  43. <div class="col-lg-3 col-md-6 col-sm-12">
  44. <div class="widget">
  45. <div class="widget-header">
  46. <h3 class="widget-title">My Details</h3>
  47. <div class="widget-tools pull-right">
  48. </div>
  49. </div>
  50. <div class="widget-body" style="" id="basicUserProfile">
  51. The body of the widget
  52. </div>
  53. </div>
  54. </div>
  55. <div class="col-lg-6 col-md-6 col-sm-12">
  56. <div class="widget">
  57. <div class="widget-header">
  58. <h3 class="widget-title">தினம் ஒரு திருக்குறள்:</h3>
  59. <div class="widget-tools pull-right text-right">
  60. <img src="/gcc/files/app_uploads/icons/thiruvalluvar.jpeg" width="15%" class="rounded-circle">
  61. </div>
  62. </div>
  63. <div class="widget-body">
  64. <table>
  65. <tr>
  66. <td clas="text-center" width="20%"><img src="/gcc/files/app_uploads/icons/thiruvalluvar.jpeg" width="90%" class="rounded"></td>
  67. <td>
  68. <div class="mb-0" style="font-size:20px;">அகர முதல எழுத்தெல்லாம</div>
  69. <div class="mb-0" style="font-size:20px;">ஆதி பகவன் முதற்றே உலக</div>
  70. <div class="mb-0 text-right">( குறள் எண் : 6 ) | <a href="javascript:void(0);" class="link"> விளக்கம்</a>
  71. </td>
  72. </tr>
  73. </table>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="col-lg-3 col-md-6 col-sm-12">
  78. <div class="widget">
  79. <div class="widget-header">
  80. <h3 class="widget-title">Your Info</h3>
  81. <div class="widget-tools pull-right"></div>
  82. </div>
  83. <div class="widget-body" id="">
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="row">
  89. <div class="col-md-12">
  90. <div class="card">
  91. <div class="card-header">
  92. <h3>User Profile</h3>
  93. </div>
  94. <div class="card-body">
  95. <div class="col-sm-12" id="userProfile"></div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <footer th:replace="~{fragments/modules/base/footer :: footer}"></footer>
  103. </div>
  104. </div>
  105. <div th:replace="~{fragments/modules/base/app_module_menu_box :: div}"></div>
  106. <script th:replace="~{fragments/modules/base/script :: script}"></script>
  107. <script th:inline="javascript">
  108. var loading_text_msg = getLoadingMessage(); // get Random loading message from base/script
  109. var createdBy = /*[[${LoginUserId}]]*/'';
  110. //alert(createdBy);
  111. // Loading Div id
  112. const loading = $("#userProfile");
  113. function call_loading(){
  114. loading.html(searchinfo("<b>"+loading_text_msg+"</b>"));
  115. }
  116. function remove_loading(){
  117. loading.html("");
  118. }
  119. /* Get Complaints Data */
  120. function get_user_basic_data(){
  121. var apiUrl = '/gcc/api/getUserProfileBasic?userId='+createdBy;
  122. //alert(apiUrl);
  123. // Return a Promise
  124. return new Promise(function(resolve, reject) {
  125. $.ajax({
  126. url: apiUrl,
  127. type: 'GET',
  128. /*dataType: 'json',*/
  129. success: function(jsonResponse) {
  130. // Resolve the Promise with the department list
  131. resolve(jsonResponse);
  132. },
  133. error: function(xhr, status, error) {
  134. // Reject the Promise with the error message
  135. reject(error);
  136. }
  137. });
  138. });
  139. }
  140. /* Get Complaints List */
  141. function get_user_basic_info(){
  142. get_user_basic_data().then(function(userProfile) {
  143. // Handle the userProfile
  144. $("#basicUserProfile").html(userProfile);
  145. }).catch(function(error) {
  146. // Handle errors
  147. if (error && error.message) {
  148. console.error('Error fetching User Profile:', error.message);
  149. } else {
  150. console.error('An error occurred while fetching user profile:', error);
  151. }
  152. });
  153. }
  154. /* Get Complaints Data */
  155. function get_user_data(){
  156. var apiUrl = '/gcc/api/getUserProfile?userId='+createdBy;
  157. //alert(apiUrl);
  158. // Return a Promise
  159. return new Promise(function(resolve, reject) {
  160. $.ajax({
  161. url: apiUrl,
  162. type: 'GET',
  163. /*dataType: 'json',*/
  164. success: function(jsonResponse) {
  165. // Resolve the Promise with the department list
  166. resolve(jsonResponse);
  167. },
  168. error: function(xhr, status, error) {
  169. // Reject the Promise with the error message
  170. reject(error);
  171. }
  172. });
  173. });
  174. }
  175. /* Get Complaints List */
  176. function get_user_info(){
  177. get_user_data().then(function(userProfile) {
  178. // Handle the userProfile
  179. $("#userProfile").html(userProfile);
  180. }).catch(function(error) {
  181. // Handle errors
  182. if (error && error.message) {
  183. console.error('Error fetching User Profile:', error.message);
  184. } else {
  185. console.error('An error occurred while fetching user profile:', error);
  186. }
  187. });
  188. }
  189. $(document).ready(function() {
  190. call_loading();
  191. get_user_info();
  192. get_user_basic_info();
  193. });
  194. </script>
  195. </body>
  196. </html>