Advertisement
Guest User

Untitled

a guest
Sep 12th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html >
  3. <style>
  4. table, th , td {
  5. border: 1px solid grey;
  6. border-collapse: collapse;
  7. padding: 5px;
  8. }
  9. table tr:nth-child(odd) {
  10. background-color: #f1f1f1;
  11. }
  12. table tr:nth-child(even) {
  13. background-color: #ffffff;
  14. }
  15. </style>
  16. <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
  17. <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  18. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  19. <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  20. <body>
  21.  
  22. <button type = "button" class = "btn btn-primary" data-toggle = "modal" data-target = "#login">Log In</button>
  23. <br/>
  24. <br/>
  25.  
  26. <div class = "container">
  27.  
  28. <h2>TTP Banking Portal</h2>
  29. <ul class = "nav nav-tabs">
  30. <li class = "active"><a data-toggle = "tab" href = "#home">Home</a></li>
  31. <li><a data-toggle = "tab" href = "#transfer">Transfer Funds</a></li>
  32. <li><a data-toggle = "tab" href = "#reports">Generate Reports</a></li>
  33. <li><a data-toggle = "tab" href = "#chat">Chat with An Agent</a></li>
  34. <li><a data-toggle = "tab" href = "#email">Email your Bank</a></li>
  35. </ul>
  36.  
  37. <div class = "tab-content">
  38.  
  39. <div id = "home" class = "tab-pane fade in active">
  40.  
  41.  
  42.  
  43. <div ng-app="myApp" ng-controller="clientsCtrl" id = "login" class = "modal fade">
  44.  
  45. <div class = "modal-dialog">
  46. <div class = "modal-content">
  47. <div class = "modal-header">
  48. <h3>Enter Login Information Below</h3>
  49. </div>
  50. <div class = "modal-body">
  51. <form>
  52. <input type = "input" name = "user" placeholder = "Username" id = "Username" required>
  53. <input type = "input" name = "pass" placeholder = "Password" id = "Password" required>
  54. <button id = "loginbtn" type = "button" class = "btn btn-success" onclick = "login()">Log In</button>
  55. </form>
  56. </div>
  57. <div class = "modal-footer">
  58. <button type = "button" class = "btn-warning" data-toggle = "modal" data-target = "#forgotPassword">Forget Password</button>
  59. <button type = "button" class = "btn btn-primary" id = "close" name = "close" data-dismiss = "modal">Close</button>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64.  
  65.  
  66. </div>
  67.  
  68. <script>
  69.  
  70. var app = angular.module('myApp', []);
  71. app.controller('clientsCtrl', function($scope, $http) {
  72. $http.get("clients.php")
  73. .then(function(response) {
  74. $scope.names = response.data.records;
  75.  
  76. });
  77. });
  78.  
  79. function login() {
  80. var enteredUsername = document.getElementById("Username").value;
  81. var enteredPassword = document.getElementById("Password").value;
  82. console.log(enteredUsername + "," + enteredPassword);
  83. for (var i = 0; i < $scope.names.length; i++) {
  84. console.log($scope.names[i]);
  85. }
  86.  
  87. }
  88.  
  89.  
  90. </script>
  91.  
  92. </body>
  93. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement