-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontacts.php
More file actions
122 lines (100 loc) · 4.36 KB
/
contacts.php
File metadata and controls
122 lines (100 loc) · 4.36 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
session_start();
if(!isset($_SESSION["uid"]))
{
header("location:index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.min.js">
</script>
<script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
<link href="./css/style-starter.css" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Nunito:400,600,700,800,900&display=swap" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Hind&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/main.css">
<style>
body
{
background-image: url('pics/b8.jpg');
background-size: cover;
}
</style>
</head>
<body>
<section class="w3l-header-4">
<header id="headers4-block" class="editContent">
<div class="container">
<div class="d-grid nav-mobile-block header-align">
<div class="logo">
<a class="brand-logo editContent" href="index.php" style="outline: none; cursor: inherit;">Home</a>
</div>
<input type="checkbox" id="nav">
<label class="nav" for="nav"></label>
<nav>
<label for="drop" class="toggle"><span class="fa fa-bars" style="outline: none; cursor: inherit;"></span></label>
<input type="checkbox" id="drop">
<ul class="menu">
<li class="propClone"><a href="contacts.php">Contacts</a></li>
<li class="propClone"><a href="fixupmeeting.php">Fix up Meeting</a></li>
<li class="propClone"><a href="meetings.php">Your meetings</a></li>
<li class="propClone"><a href="profile.php">Your profile</a></li>
<li class="propClone"><a href="logout.php">logout</a></li>
</ul>
</nav>
</div>
</div>
</header>
</section>
<div id="mycontroller" ng-app="mymodule" ng-controller="mycontroller" ng-init=pp()>
<div class="container"> <h1>Your Contact List </h1><hr>
<div ng-repeat="oneObj in jsonAry " class="form row border border-dark mt-1">
<div class="col-md-3">
<img src="uploads/{{oneObj.pic}}" width="150" height="150" alt="...">
</div>
<div class="col-md-9">
<h5 >{{oneObj.name}}</h5>
<p class="card-text"><span class="text-danger"> Mobile: </span>{{oneObj.mobile}}</p>
<p class="card-text"><span class="text-danger"> Email: </span>{{oneObj.email}}</p>
<p class="card-text"><span class="text-danger"> Designation: </span>{{oneObj.designation}}</p>
</div>
<br><br>
</div>
</div>
</div>
</div>
</body>
<script >
var module = angular.module("mymodule", []);
module.controller("mycontroller", function($scope, $http) {
// console.log(1);
// console.log(1);
$scope.pp = function()
{
$scope.jsonAry;
$http.get("fetch-contact.php").then(fine, notfine);
function fine(response) {
$scope.jsonAry = response.data;
//console.log( $scope.jsonAry[0].name);
}
function notfine(response) {
alert(JSON.stringify(response));
}
}});
</script>
</html>