forked from KalebOTB/ContactManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactManager.html
55 lines (55 loc) · 2.33 KB
/
contactManager.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
<html>
<head>
<title>Contact Manager</title>
<link href="css/styles.css" rel="stylesheet">
<script src="js/code.js"></script>
<script>window.onload = readCookie</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<header id="CM-header">
<div id="userName"></div>
<button type="button" onclick="doLogout()">Log out</button>
</header>
<body>
<div class="form-container" id="search-container">
<h3>Search For Contact</h3>
<form id="search-form">
<label for="addFirstName">First Name:</label>
<input type="text" id= "s-firstName" name="addFirstName"/>
<label for="addLastName">Last Name:</label>
<input type="text" id= "s-lastName" name="addLastName"/>
<label for="addEmail">Email:</label>
<input type="text" id= "s-email" name="addEmail"/>
<label for="addPhone">Phone Number:</label>
<input type="tel" id= "s-phoneNum" name="addPhone" pattern="[0-9]{3}[0-9]{2}[0-9]{3}"/>
<button type="button" id="searchContactButton" class="buttons" onclick="searchContact();"> Search </button>
<div id="contactSearchResult">
<div id="contactMessage"></div>
<div id="contactList"></div>
</div>
</form>
</div>
<div class="form-container" id='contact-container'></div>
<br></br>
<div class="form-container" id="add-container">
<h3>Add Contact</h3>
<form id="add-form">
<label for="addFirstName">First Name:</label>
<input type="text" id= "a-firstName" name="addFirstName"/>
<label for="addLastName">Last Name:</label>
<input type="text" id= "a-lastName" name="addLastName"/>
<label for="addEmail">Email:</label>
<input type="text" id= "a-email" name="addEmail"/>
<label for="addPhone">Phone Number:</label>
<input type="tel" id= "a-phoneNum" name="addPhone" pattern="[0-9]{3}[0-9]{2}[0-9]{3}"/>
<button type="button" id="addContactButton" class="buttons" onclick="addContact();"> Add Contact </button>
<div id="contactAddResult"></div>
</form>
</div>
<br></br>
<div class = "c">
<div class = "c c1"></div>
<div class = "c c2"></div>
</div>
</body>
</html>