-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloggedInPage.html
More file actions
131 lines (123 loc) · 6.5 KB
/
loggedInPage.html
File metadata and controls
131 lines (123 loc) · 6.5 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
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang = "en">
<head>
<script src="back-end.js"></script>
<!-- <script src="javacode.js"></script> -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></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 rel="stylesheet" href="Stylesheet.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto&display=swap" rel="stylesheet">
<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">
<meta charset = "utf-8" />
<title>CONTACT MNGR</title>
</head>
<body style="background-color:#FFFEEF;" onload = "displayAllContacts()">
<div id = "contactsPage">
<div id = "topOfPage">
<h1> Contact MNGR</h1>
<p innerHTML = 'Welcome ' + sessionStorage.getItem("firstName") + sessionStorage.getItem("lastName")></p>
<input type = "text"
id = "search_textbox"
onkeyup="searchContact()"
placeholder="Search for Contacts..."/>
<button class="btn btn-success" data-toggle="modal" data-target="#addModal">Add Contact</button>
<button onclick = "logout()" class = "btn btn-success">Logout</button>
</div>
<div id = "contactDisplay">
<table class="table table-hover" id = "tableID">
<thead class="thead-light">
<tr>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Phone Number</th>
<th scope="col">Email</th>
<th scope="col">Address</th>
<th scope="col">Edit Contact</th>
<th scope="col">Delete Contact</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<label id = "contact_added_result"></label>
</div>
<div class = "modal fade" role = "dialog" id = "editModal" tabindex="-1" aria-labelledby="exampleModalLabel2" aria-hidden="true">
<div class = "modal-dialog" role="document">
<div class = "modal-content">
<div class = "modal-header">
<h3 class = "modal-title" id="exampleModalLabel2">Edit Contact</h3>
<button type = "button" class = "close" data-dismiss = "modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class = "modal-body">
<div class="form-group">
<label for="inputAddress">First Name</label>
<input type="text" class="form-control" id="edited_first_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Last Name</label>
<input type="text" class="form-control" id="edited_last_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Phone Number</label>
<input type="text" class="form-control" id="edited_phone_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Email</label>
<input type="text" class="form-control" id="edited_email_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Address</label>
<input type="text" class="form-control" id="edited_address_textbox" placeholder="">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" id = "saveButtonEdit" class="btn btn-success">Save changes</button>
</div>
</div>
</div>
</div>
</div>
<div class = "modal fade" role = "dialog" id = "addModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class = "modal-dialog" role="document">
<div class = "modal-content">
<div class = "modal-header">
<h3 class = "modal-title" id="exampleModalLabel">Add Contact</h3>
<button type = "button" class = "close" data-dismiss = "modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class = "modal-body">
<div class="form-group">
<label for="inputAddress">First Name</label>
<input type="text" class="form-control" id="add_firstname_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Last Name</label>
<input type="text" class="form-control" id="add_lastname_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Phone Number</label>
<input type="text" class="form-control" id="add_phone_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Email</label>
<input type="text" class="form-control" id="add_email_textbox" placeholder="">
</div>
<div class="form-group">
<label for="inputAddress2">Address</label>
<input type="text" class="form-control" id="add_address_textbox" placeholder="">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" id = "saveButtonAdd" class="btn btn-success" data-dismiss="modal" onclick= "addContact()">Save changes</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>