-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteste3.html
71 lines (62 loc) · 1.91 KB
/
teste3.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<title>Teste Git Modified</title>
<style>
#content{
margin-top:60px;
align:center;
width: 800px;
}
</style>
</head>
<body>
<div id='content' class="center-block">
<form class="form-inline pull-right">
<div class="form-group">
<input type="search" class="form-control" id="exampleInputEmail2" placeholder="pesquisa palavra-chave">
</div>
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-search"></span></button>
</form>
<br><br><br>
<div>
<table class="table table-bordered">
<thead>
<th>Funcionário</th>
<th>Ramal</th>
<th>Telefone</th>
<th>Departamento</th>
</thead>
<tbody id='tbody'>
</tbody>
</table>
</div>
</div>
<script>
$.getJSON(
"agenda.js",
function(data){
//$('#tbody').text(data.employees[0].funcionario);
for(var i in data.employees){
var txt =
"<tr><td>" + data.employees[i].funcionario + "</td>" +
"<td>" + data.employees[i].ramal + "</td>" +
"<td>" + data.employees[i].telefone + "</td>" +
"<td>" + data.employees[i].departamento + "</td></tr>";
$(tbody).append(txt);
}
}
);
</script>
</body>
</html>