forked from ElenaMedvedeva/Contact-Manager-Application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacts.html
138 lines (126 loc) · 5.41 KB
/
contacts.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
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
132
133
134
135
136
137
138
<!--
/*******************************************************************************
* Copyright 2012 IBBT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
-->
<html>
<head>
<title>Contact Manager</title>
<meta charset="utf-8"/>
<title>Contact Manager1</title>
<link rel="stylesheet" href="main.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" ></script>
<script type="text/javascript" src="../webinos.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"></script>
<script type="text/javascript" src="Authentificate.js"></script>
</head>
<body>
<table border="1" align="center" width="100%" >
<tr valign="top">
<td width="50%">
<div>
<div>
<button id="registerBrowser" class="button">Register Browser</button>
<br>
<button id="btnFindService" class="button">Find Contacts Service</button>
<br>
<select id="getContactsServices" size="5" width="500" style="width: 500px"></select>
<br><button id="btnBindService" class="button">Bind Service</button>
<p>
<input type="radio" name="contactType" value="remote"
id="cnt_remote" checked="checked"">Remote
Contacts (GMail) <br> <input type="radio"
name="contactType" value="local" id="cnt_local"">Local
Contacts (Address Book) <br>
<div id="localAuth" style="display: none;">
<label
for="addressBookNameText">Local Address Book: </label>
<!-- We'd better put an "open file" form -->
<input type="text" id="addressBookNameText" size="40"
placeholder="<path_to_your_Thunderbird_.mab file>" />
</div>
<div id="remoteAuth">
<label for="usernameText">Username: </label> <input
type="text" id="usernameText"
placeholder="enter username" /> <br> <label
for="passwordText">Password: </label> <input
type="password" id="passwordText"
placeholder="enter password" /> <br>
</div>
</p>
</div>
<div>
<button id="btnAuthenticate" class="button">Authenticate/Open</button>
</div>
<div id="html_contacts" style="background-color:lightgray; border:1px solid black">
<script> document.getElementById('html_contacts').innerHTML = "NO SERVICE";</script>
</div>
<div id="authStatus" style="background-color:lightgray; border:1px solid black">
<script> document.getElementById('authStatus').innerHTML = "NOT AUTHENTICATED, YET";</script>
</div>
</td>
<!--Right part of the table-->
<td width="50%">
<div>
<!-- <p id="cwd"></p>
<ul id="ls"></ul> -->
<div id="find_contacts">
<p><table>
<tr><td>
<label for="findContactName" >Name: </label>
</td><td>
<input type="text" id="findContactName" placeholder="Name" /><br>
</td></tr>
<tr><td>
<label for="findContactEmail">Email: </label>
</td><td>
<input type="text" id="findContactEmail" placeholder="Email Address" />
</td></tr>
<tr><td>
<label for="findContactPhone:" >Phone: </label>
</td><td>
<input type="text" id="findContactPhone" placeholder="Phone" />
</td></tr>
<tr><td>
<label for="findContactEmail">Address: </label>
</td><td>
<input
type="text" id="findContactAddress"
placeholder="Address" />
</td></tr>
</table>
</p>
</div>
<div>
<button id="btnFindServiceContacts" class="button">Find contacts</button>
<br>
<button id="btnAllServiceContacts" class="button">List all contacts</button>
<br>
Not supported yet
<br>
<button id="btnAddContact" class="button" title="Not supported yet">Add Contact</button>
<br>
<a href="https://twitter.com/share" class="twitter-share-button">Tweet!</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div id="contactList">
<script> document.getElementById('contactList').innerHTML = "";</script>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>