Commit 94773722 authored by đinh thị đầm's avatar đinh thị đầm

commit

parent 2f868f5c
...@@ -411,7 +411,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -411,7 +411,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<!--//scrolling js--> <!--//scrolling js-->
<!-- Bootstrap Core JavaScript --> <!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.js"> </script> <script src="js/bootstrap.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -77,7 +77,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -77,7 +77,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -8465,6 +8465,13 @@ h4.asd label { ...@@ -8465,6 +8465,13 @@ h4.asd label {
} }
} }
/*--//responsive-design---*/ /*--//responsive-design---*/
table{
border-collapse :collapse;
font-family: sans-serif;
text-align: center;
}
.table > thead > tr > th{
text-align: center;
}
\ No newline at end of file
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -54,6 +54,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -54,6 +54,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<script src="js/ui-bootstrap-tpls-0.3.0.min.js"></script> <script src="js/ui-bootstrap-tpls-0.3.0.min.js"></script>
<script src="js/dirPagination.js"></script> <script src="js/dirPagination.js"></script>
<script src="js/ui-bootstrap-tpls-0.3.0.min.js"></script> <script src="js/ui-bootstrap-tpls-0.3.0.min.js"></script>
<!-- end anguarjs app--> <!-- end anguarjs app-->
<link href="css/custom.css" rel="stylesheet"> <link href="css/custom.css" rel="stylesheet">
<!--//Metis Menu --> <!--//Metis Menu -->
...@@ -140,7 +141,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -140,7 +141,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
/** /**
* *
*/ */
angular.module("myApp", ['ui.router','ui.bootstrap']).config(function ($stateProvider, $urlRouterProvider, $locationProvider) { angular.module("myApp", ['ui.router']).config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
$locationProvider.hashPrefix(''); $locationProvider.hashPrefix('');
$urlRouterProvider.otherwise("/employees"); $urlRouterProvider.otherwise("/employees");
...@@ -31,6 +31,17 @@ angular.module("myApp", ['ui.router','ui.bootstrap']).config(function ($statePro ...@@ -31,6 +31,17 @@ angular.module("myApp", ['ui.router','ui.bootstrap']).config(function ($statePro
} }
}) })
.state('login', {
url : '/login',
templateUrl : 'pages/login/login.html',
controller : 'LoginController'
})
.state('home', {
url : '/home',
templateUrl : 'pages/login/home.html',
controller : 'HomeController'
});
}); });
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<td><a class="btn btn-info" href="#" ui-sref="createEmployee">Add</a></td> <td><a class="btn btn-info" href="#" ui-sref="createEmployee">Add</a></td>
</tr> </tr>
<table class="table"> <table class="table" border="1">
<thead> <thead>
<tr> <tr>
<tr> <tr>
......
...@@ -81,6 +81,7 @@ angular.module("myApp").controller("employeeController", function ($scope, $http ...@@ -81,6 +81,7 @@ angular.module("myApp").controller("employeeController", function ($scope, $http
}, function errorCallback(response) { }, function errorCallback(response) {
console.log(response) console.log(response)
}); });
// $scope.reload = reload; // $scope.reload = reload;
// function reload() { // function reload() {
// $http.get("http://localhost:8081/employees") // $http.get("http://localhost:8081/employees")
...@@ -95,24 +96,24 @@ angular.module("myApp").controller("employeeController", function ($scope, $http ...@@ -95,24 +96,24 @@ angular.module("myApp").controller("employeeController", function ($scope, $http
// $scope.curPage = 1, // $scope.curPage = 1,
$scope.curPage = 1, // $scope.curPage = 1,
$scope.itemsPerPage = 3, // $scope.itemsPerPage = 3,
$scope.maxSize = 5; // $scope.maxSize = 5;
//
this.emp = $scope.emp; // this.emp = $scope.emp;
//
//
$scope.numOfPages = function () { // $scope.numOfPages = function () {
return Math.ceil($scope.emp.length / $scope.itemsPerPage); // return Math.ceil($scope.emp.length / $scope.itemsPerPage);
//
}; // };
//
$scope.$watch('curPage + numPerPage', function() { // $scope.$watch('curPage + numPerPage', function() {
var begin = (($scope.curPage - 1) * $scope.itemsPerPage), // var begin = (($scope.curPage - 1) * $scope.itemsPerPage),
end = begin + $scope.itemsPerPage; // end = begin + $scope.itemsPerPage;
//
$scope.employess = $scope.emp.slice(begin, end); // $scope.employess = $scope.emp.slice(begin, end);
}); // });
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -64,7 +64,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -64,7 +64,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
...@@ -67,7 +67,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony ...@@ -67,7 +67,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li> <li class="header">MAIN NAVIGATION</li>
<li class="treeview"> <li class="treeview">
<a href="index.html"> <a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-dashboard"></i> <span>Employee</span>
</a> </a>
</li> </li>
<li class="treeview"> <li class="treeview">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment