Advertisement
Guest User

Untitled

a guest
Jul 6th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. * {
  6. box-sizing: border-box;
  7. }
  8.  
  9. #myTable tbody {
  10. height: 600px;
  11. display: inline-block;
  12. width: 100%;
  13. overflow: auto;
  14.  
  15. }
  16.  
  17. #myInput1 {
  18. background-image: url("res/searchicon.png");
  19. background-position: 10px 10px;
  20. background-repeat: no-repeat;
  21. width: 26%;
  22. font-size: 16px;
  23. padding: 12px 20px 12px 40px;
  24. border: 1px solid #ddd;
  25. margin-bottom: 12px;
  26. }
  27. #myInput2 {
  28. background-image: url("res/searchicon.png");
  29. background-position: 10px 10px;
  30. background-repeat: no-repeat;
  31. width: 26%;
  32. font-size: 16px;
  33. padding: 12px 20px 12px 40px;
  34. border: 1px solid #ddd;
  35. margin-bottom: 12px;
  36. }
  37.  
  38. #myTable {
  39. border-collapse: collapse;
  40. width: 100%;
  41. border: 1px solid #ddd;
  42. font: 15px arial, sans-serif;
  43. }
  44.  
  45. tr:nth-child(even) {
  46. background-color: #eff1f4;
  47. }
  48. #myTable th, #myTable td {
  49. table-layout: fixed;
  50. text-align: left;
  51. padding: 10px;
  52. width: 100%;
  53. }
  54.  
  55. #myTable tr {
  56. border-bottom: 1px solid #ddd;
  57. }
  58.  
  59. #myTable tr.header, #myTable tr:hover {
  60. background-color: #DEC4BC;
  61. }
  62.  
  63.  
  64. img {
  65. display: block;
  66. margin-left: auto;
  67. margin-right: auto;
  68. }
  69.  
  70. </style>
  71. </head>
  72. <body>
  73. <img src="res/eGo.png" style="width:250px;height:150px;">
  74.  
  75. <h2><font face="Arial" color="#c11919">eGO Web</font></h2>
  76.  
  77. <input type="text" id="myInput1" onkeyup="myFunction1()" placeholder="Search for customer names" title="Type in a customer name">
  78. <input type="text" id="myInput2" onkeyup="myFunction2()" placeholder="Search for Customer Number" title="Type in a Customer Number">
  79. <br>
  80. <font size="2"face="Arial" color="#c11919">last updated on - July 2019</font>
  81. <br>
  82. <br>
  83.  
  84. <table id="myTable" style="display:visible;">
  85. <tr class="header">
  86.  
  87. <th style="width:10%; ">Customer Name</th>
  88. <th style="width:10%;">Account Number</th>
  89. <th style="width:10%;">Collector Name</th>
  90. <th style="width:10%;">Statement Email</th>
  91. <th style="width:10%;">Customer Contacts</th>
  92. <th style="width:10%;">Internal Contacts</th>
  93. <th style="width:10%;">3rd Party Payments</th>
  94. <th style="width:10%;">Remarks/ Customer Profile</th>
  95. <th style="width:10%;">Historical Activities</th>
  96. <th style="width:10%;">Portal/ Invoicing Method</th>
  97. <th style="width:10%;">Statement Required</th>
  98. </tr>
  99.  
  100. <--! Here is table data -->
  101.  
  102. </table>
  103. <br>
  104. <font size="1"face="Arial" color="#c11919">To report issues <a href="mailto:pratik.kumar@company.com?Subject=Issue%20in%20Collector%20lookup%20tool%20" target="_top">Click Here</a> or send email to pratik.kumar@company.com</font>
  105. <script>
  106. function myFunction1() {
  107. var input, filter, table, tr, td, i;
  108. input = document.getElementById("myInput1");
  109. filter = input.value.toUpperCase();
  110. table = document.getElementById("myTable");
  111. tr = table.getElementsByTagName("tr");
  112. for (i = 0; i < tr.length; i++) {
  113. td = tr[i].getElementsByTagName("td")[0];
  114. if (td) {
  115. if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
  116. tr[i].style.display = "";
  117. } else {
  118. tr[i].style.display = "none";
  119. }
  120. }
  121. }
  122. }
  123.  
  124. </script>
  125.  
  126. <script>
  127. function myFunction2() {
  128. var input, filter, table, tr, td, i;
  129. input = document.getElementById("myInput2");
  130. filter = input.value.toUpperCase();
  131. table = document.getElementById("myTable");
  132. tr = table.getElementsByTagName("tr");
  133. for (i = 0; i < tr.length; i++) {
  134. td = tr[i].getElementsByTagName("td")[1];
  135. if (td) {
  136. if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
  137. tr[i].style.display = "";
  138. } else {
  139. tr[i].style.display = "none";
  140. }
  141. }
  142. }
  143. }
  144.  
  145. </script>
  146.  
  147. </body>
  148. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement