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
<!--//scrolling js-->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.js"> </script>
<script src="js/bootstrap.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -77,7 +77,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -8465,6 +8465,13 @@ h4.asd label {
}
}
/*--//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
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -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/dirPagination.js"></script>
<script src="js/ui-bootstrap-tpls-0.3.0.min.js"></script>
<!-- end anguarjs app-->
<link href="css/custom.css" rel="stylesheet">
<!--//Metis Menu -->
......@@ -140,7 +141,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<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('');
$urlRouterProvider.otherwise("/employees");
......@@ -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
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -6,7 +6,7 @@
<td><a class="btn btn-info" href="#" ui-sref="createEmployee">Add</a></td>
</tr>
<table class="table">
<table class="table" border="1">
<thead>
<tr>
<tr>
......
......@@ -81,6 +81,7 @@ angular.module("myApp").controller("employeeController", function ($scope, $http
}, function errorCallback(response) {
console.log(response)
});
// $scope.reload = reload;
// function reload() {
// $http.get("http://localhost:8081/employees")
......@@ -95,24 +96,24 @@ angular.module("myApp").controller("employeeController", function ($scope, $http
// $scope.curPage = 1,
$scope.curPage = 1,
$scope.itemsPerPage = 3,
$scope.maxSize = 5;
this.emp = $scope.emp;
$scope.numOfPages = function () {
return Math.ceil($scope.emp.length / $scope.itemsPerPage);
};
$scope.$watch('curPage + numPerPage', function() {
var begin = (($scope.curPage - 1) * $scope.itemsPerPage),
end = begin + $scope.itemsPerPage;
$scope.employess = $scope.emp.slice(begin, end);
});
// $scope.curPage = 1,
// $scope.itemsPerPage = 3,
// $scope.maxSize = 5;
//
// this.emp = $scope.emp;
//
//
// $scope.numOfPages = function () {
// return Math.ceil($scope.emp.length / $scope.itemsPerPage);
//
// };
//
// $scope.$watch('curPage + numPerPage', function() {
// var begin = (($scope.curPage - 1) * $scope.itemsPerPage),
// end = begin + $scope.itemsPerPage;
//
// $scope.employess = $scope.emp.slice(begin, end);
// });
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -63,7 +63,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -64,7 +64,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<li class="treeview">
......
......@@ -67,7 +67,7 @@ SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, Sony
<li class="header">MAIN NAVIGATION</li>
<li class="treeview">
<a href="index.html">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<i class="fa fa-dashboard"></i> <span>Employee</span>
</a>
</li>
<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