-
Notifications
You must be signed in to change notification settings - Fork 0
/
test1.html
89 lines (82 loc) · 4.69 KB
/
test1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="index.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js"></script>
<link rel="shortcut icon" href = "logos.png"><title>Nexagile</title>
</head>
<body>
<nav class="navbar navbar-inverse logo">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Nexagile</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home <span class="sr-only">(current)</span></a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Carrers</a></li>
<li><a href="#">Contact Us</a></li>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Sign In</a></li>
<li><a href="#">Sign Up</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container nexa" ng-controller="MyController">
<h1>Nexagile Hrd</h1><hr />
<form>
<div class="form-group">
<label for="firstname">First Name</label>
<input type="text" class="form-control" id="firstname" aria-describedby="emailHelp" ng-model="app.firstname" placeholder="Enterfirstname" required>
<label for="lastname">Last Name</label>
<input type="text" class="form-control" id="lastname" aria-describedby="emailHelp" ng-model="app.lastname" placeholder="Enter lastname" required>
<label for="email">Email Id</label>
<input type="email" class="form-control" id="emailid" aria-describedby="emailHelp" ng-model="app.emailid" placeholder="Enter email" required>
<label for="address">Address</label>
<input type="text" class="form-control" id="address" aria-describedby="emailHelp" ng-model="app.address" placeholder="Enter address" required>
<label for="phone">Phone Number</label>
<input type="text" class="form-control" id="phoneno" aria-describedby="emailHelp" ng-model="app.phoneno" placeholder="Enter phoneno" required>
<label for="password">Password</label>
<input type="password" class="form-control" id="password" aria-describedby="emailHelp" ng-model="app.password" placeholder="Enter password" required>
<!-- <input type="file" name="file" ng-model="app.image"> -->
</div>
<button class="btn btn-info button" ng-click="register()">Sign Up</button>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<script type="text/javascript">
var myApp = angular.module('myApp',[]);
myApp.controller('MyController',['$scope','$http','$window',function($scope,$http,$window){
$scope.register = function(){
console.log($scope.app);
$http.post('http://192.168.0.18:8085/useraccount/register/doregister',$scope.app).success(function(msg){
console.log(msg.msg);
if(msg.msg=="Successfully Registered"){
$window.location=('home.html');
}
});
};
}]);
</script>
</body>
</html>