/
Form.html
103 lines (102 loc) · 3.26 KB
/
Form.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
<!DOCTYPE html>
<html>
<head>
<base target="_top" />
<link
href="https://fonts.googleapis.com/css?family=Open+Sans"
rel="stylesheet"
/>
<?!= include('Form.css'); ?>
</head>
<body>
<header>
<h1>Gmail Signature</h1>
</header>
<div id="form">
<div class="column1">
<label>Job Title</label
><input type="text" id="jobTitleField" class="field" value="<?=jobTitle?>" /><br />
<label>Department</label
><input type="text" id="departmentField" class="field" value="<?=dept?>" /><br />
<label>Location</label
><input
type="text"
id="locationField"
value="<?=location?>"
class="field"
/><br />
<label>Address</label
><input
type="text"
id="addressField"
value="<?=address?>"
class="field"
/><br />
<label>Phone Number</label
><input
type="text"
id="phoneNumberField"
value="<?=phoneNumber?>"
class="field"
/><br />
<label>Style</label
><select id="styleField" class="field"
><option>Round</option
><option>Square</option></select
><br />
</div>
<div class="column2">
<div id="outcome"></div>
<div id="sig">
<table
style="font-family:Tahoma; font-size:9pt; color: #666666; border-radius: 0.5em;border:1px solid #c0c0c0"
id="signature"
>
<tr>
<td style="padding:0.5em">
<img
id="photoUrl"
style="display:block; border-radius: 50%"
src="<?=photoUrl?>"
width="100"
height="100"
/>
</td>
<td
style="border-width: 0px 0px 0px 3px; border-style: solid;border-color: #c0c0c0; padding:0.5em;"
>
<address style="font-style:normal; margin-bottom: 1em">
<div
style="width:100%; font-weight:bold; font-size: 12pt;padding-bottom:0.5em"
>
<?=userName?>
</div>
<div style="font-weight:bold" id="jobTitle"><?=jobTitle?></div>
<span id="department"><?=dept?></span><br />
<span id="location"><?=location?></span><br />
<span id="address"><?=address?></span><br />
</address>
<div style="display:inline-block">
Tel: <span id="phoneNumber"><?=phoneNumber?></span>
</div>
</td>
</tr>
</table>
</div>
<!--/sig-->
</div>
<!--/column2-->
<div class="spacer"></div>
<div class="column1">
<button id="updateButton" class="primary">Update Preview</button>
</div>
<div class="column2">
<button id="submitButton" class="warning">Set New Signature</button>
</div>
<div class="spacer"></div>
</div>
<!--/form-->
<div id="busy" class="available"></div>
</body>
<?!= include('Form.js'); ?>
</html>