-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigWindow.html
199 lines (197 loc) · 7.34 KB
/
configWindow.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Alma Print Daemon - Configuration</title>
<style>
#container {
width: 575px;
height: 500x;
position: relative;
}
#profilelist,
#addprofile {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
#infoi {
z-index: 10;
}
.column {
float: left;
width: 50%;
}
</style>
</head>
<body>
<form>
<div id="settings">
<div id="regionSetting">
<label>Region:</label>
<select id="region">
<option value="ap" selected="selected">Asia Pacific</option>
<option value="ca">Canada</option>
<option value="cn">China</option>
<option value="eu">Europe</option>
<option value="na">North America</option>
</select>
</div>
<br>
<div id="apiKeySetting">
<label>API key with read permission for the Configuration area, and read/write permissions for the Task-Lists area:</label>
<br>
<input type="password" id="apiKey" size="50"> <button type="button" onclick="javascript:testAPIKey()">Test API Key</button>
</div>
<br>
<div id="intervalSettings">
<input type="radio" id="methoda" name="method" value="auto" checked="checked" onclick="javascript:disableAutomaticOptions(false)">Automatic printing
  <input type="radio" id="methodm" name="method" value="manual" onclick="javascript:disableAutomaticOptions(true)">Manual printing<br>
Interval in minutes (ie: .25, 1, 1.5, 5):<input type="text" id="interval" size=3>
  <input type="checkbox" id="autostart" name="autostart">Auto Start <br>
</div>
<div id="activeHours">
Active time (ie: 08:00. 21:30):
<label>From:</label>
<input type="text" id="fromTime" size="3">
<label>Until:</label>
<input type="text" id="untilTime" size="3">
</div>
</div>
<br>
<div id="container">
<div id="addprofile" >
<div id ="newPrinterProfile" style="display:none; overflow:auto; height:350px; border:1px solid black; padding-left:15px">
<br>
<div id="addPrinter" style="display:none">
<label>Select Alma Printer Queue(s):</label>
<select id = "almaPrinter"
multiple = "multiple"
size = "3"
style="width: 545px"
onclick="javascript:setAddOKButtonState()">
</select>
<br>
</div>
<div id="editPrinter" style="display:none">
<label id="editAlmaPrinterQueue"></label>
<input type="hidden" id="almaPrinterId" name="almaPrinterId" size="50">
<br>
</div>
<br>
<label>Select Local/Network Printer:</label>
<select id = "localPrinter"
size = "1"
style="width: 545px;">
</select>
<br><br>
<div class="row">
<div class="column">
<label for="borderUnits">Unit of measure:</label>
<select id = "borderUnits" name="borderUnits"
size = "1"
style="width: 100px;">
<option value="mm">millimeters</option>
<option value="cm">centimeters</option>
<option value="in">inches</option>
<option value="px">pixels</option>
</select>
</div>
<div class="column">
<label for="colorOption">Color:</label>
<select id = "colorOption" name="colorOption"
size = "1"
style="width: 100px;">
<option value="true">Color</option>
<option value="false">Grayscale</option>
</select>
</div>
</div>
<div class="row"><br><br></div>
<div class="row">
<div class="column">
<label for="borderTop">Border Top:</label>
<input type="text" id="borderTop" name="borderTop" size="5">
</div>
<div class="column">
<label for="borderRight">Border Right:</label>
<input type="text" id="borderRight" name="borderRight" size="5"><br>
</div>
</div>
<div class="row">
<div class="column">
<label for="borderBottom">Border Bottom:</label>
<input type="text" id="borderBottom" name="borderBottom" size="5">
</div>
<div class="column">
<label for="borderLeft">Border Left:</label>
<input type="text" id="borderLeft" name="borderLeft" size="5">
</div>
</div>
<div class="row"><br><br><br></div>
<div class="row">
<div class="column">
<label for="letterFormat">Format:</label>
<select id = "letterFormat" name="letterFormat" onchange="formatChange()"
size = "1"
style="width: 75px;">
<option value="A3">A3</option>
<option value="A4">A4</option>
<option value="A5">A5</option>
<option value="Legal">Legal</option>
<option value="Letter">Letter</option>
<option value="Tabloid">Tabloid</option>
<option value="Custom">Custom...</option>
</select>
</div>
<div class="column" id="orientation" style="display:block">
<label for="orientationOption">Orientation:</label>
<select id = "orientationOption" name="orientationOption"
size = "1"
style="width: 100px;">
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
</div>
<div class="row"><br><br></div>
<div class="row" id="customFormat" style="display:none">
<div class="column">
<label for="pageWidth">Page Width:</label>
<input type="text" id="pageWidth" name="pageWidth" size="5"><br>
</div>
<div class="column">
<label for="pageHeight">Page Height:</label>
<input type="text" id="pageHeight" name="pageHeight" size="5">
</div>
</div>
<br><br>
<button type="button" id="addOK" onclick="javascript:savePrinterProfile()">OK</button>
<button type="button" id="addCancel" onclick="javascript:showPrinterProfiles()">Cancel</button>
</div>
</div>
<div id="profilelist">
<label>Printer Profiles:</label>
<div id="printerProfiles" style="overflow:auto; height:250px; border:1px solid black; padding-left:10px">
</div>
<br>
<button type="button" id="addPrinterProfileButton" disabled="true" onclick="javascript:addPrinterProfile()">Add Printer Profile</button>
<button type="button" id="editPrinterProfileButton" disabled="true" onclick="javascript:editPrinterProfile()">Edit Printer Profile</button>
<button type="button" id="removePrinterProfileButton" disabled="true" onclick="javascript:removePrinterProfile()">Remove Printer Profile</button>
<br><br>
<button type="submit">Save and Continue Printing</button>
 
<button type="button" id="cancelSettings" onclick="javascript:resumePrinting()">Cancel and Continue Printing</button>
  <label style="color: red" id="globalConfig" name="globalConfig" hidden>Global Configuration</label>
<!--
<input type='text' id='message' size=1000>
<br>
-->
</div>
</div>
</form>
</body>
<script src="./configWindow.js"></script>
</html>