forked from ondras/wwwsqldesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
283 lines (263 loc) · 7.51 KB
/
index.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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!doctype html>
<!--
WWW SQL Designer, (C) 2005-2015 Ondrej Zara, [email protected]
Version: 2.7
See license.txt for licencing information.
-->
<html>
<head>
<title>WWW SQL Designer</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1" />
<meta charset="utf-8" />
<link rel="stylesheet" href="styles/style.css" media="all" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="styles/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="styles/ie7.css" /><![endif]-->
<link rel="stylesheet" href="styles/print.css" type="text/css" media="print" />
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js"></script>
<script src="js/oz.js"></script>
<script src="js/config.js"></script>
<script src="js/globals.js"></script>
<script src="js/visual.js"></script>
<script src="js/row.js"></script>
<script src="js/table.js"></script>
<script src="js/relation.js"></script>
<script src="js/key.js"></script>
<script src="js/rubberband.js"></script>
<script src="js/map.js"></script>
<script src="js/toggle.js"></script>
<script src="js/io.js"></script>
<script src="js/tablemanager.js"></script>
<script src="js/rowmanager.js"></script>
<script src="js/keymanager.js"></script>
<script src="js/window.js"></script>
<script src="js/options.js"></script>
<script src="js/wwwsqldesigner.js"></script>
</head>
<body>
<div id="area"></div>
<div id="controls">
<div id="bar">
<div id="toggle"></div>
<input type="button" id="saveload" />
<hr/>
<input type="button" id="addtable" />
<input type="button" id="edittable" />
<input type="button" id="tablekeys" />
<input type="button" id="removetable" />
<input type="button" id="aligntables" />
<input type="button" id="cleartables" />
<hr/>
<input type="button" id="addrow" />
<input type="button" id="editrow" />
<input type="button" id="uprow" class="small" /><input type="button" id="downrow" class="small"/>
<input type="button" id="foreigncreate" />
<input type="button" id="foreignconnect" />
<input type="button" id="foreigndisconnect" />
<input type="button" id="removerow" />
<hr/>
<input type="button" id="options" />
<a href="https://github.com/ondras/wwwsqldesigner/wiki" target="_blank"><input type="button" id="docs" value="" /></a>
</div>
<div id="rubberband"></div>
<div id="minimap"></div>
<div id="background"></div>
<div id="window">
<div id="windowtitle"><img id="throbber" src="images/throbber.gif" alt="" title=""/></div>
<div id="windowcontent"></div>
<input type="button" id="windowok" />
<input type="button" id="windowcancel" />
</div>
</div> <!-- #controls -->
<div id="opts">
<table>
<tbody>
<tr>
<td>
* <label id="language" for="optionlocale"></label>
</td>
<td>
<select id="optionlocale"><option></option></select>
</td>
</tr>
<tr>
<td>
* <label id="db" for="optiondb"></label>
</td>
<td>
<select id="optiondb"><option></option></select>
</td>
</tr>
<tr>
<td>
<label id="snap" for="optionsnap"></label>
</td>
<td>
<input type="text" size="4" id="optionsnap" />
<span class="small" id="optionsnapnotice"></span>
</td>
</tr>
<tr>
<td>
<label id="pattern" for="optionpattern"></label>
</td>
<td>
<input type="text" size="6" id="optionpattern" />
<span class="small" id="optionpatternnotice"></span>
</td>
</tr>
<tr>
<td>
<label id="hide" for="optionhide"></label>
</td>
<td>
<input type="checkbox" id="optionhide" />
</td>
</tr>
<tr>
<td>
* <label id="vector" for="optionvector"></label>
</td>
<td>
<input type="checkbox" id="optionvector" />
</td>
</tr>
<tr>
<td>
* <label id="showsize" for="optionshowsize"></label>
</td>
<td>
<input type="checkbox" id="optionshowsize" />
</td>
</tr>
<tr>
<td>
* <label id="showtype" for="optionshowtype"></label>
</td>
<td>
<input type="checkbox" id="optionshowtype" />
</td>
</tr>
</tbody>
</table>
<hr />
* <span class="small" id="optionsnotice"></span>
</div>
<div id="io">
<table>
<tbody>
<tr>
<td style="width:60%">
<fieldset>
<legend id="client"></legend>
<div id="singlerow">
<input type="button" id="clientsave" />
<input type="button" id="clientload" />
</div>
<div id="singlerow">
<input type="button" id="clientlocalsave" />
<input type="button" id="clientlocalload" />
<input type="button" id="clientlocallist" />
</div>
<div id="singlerow">
<input type="button" id="dropboxsave" /><!-- may get hidden by dropBoxInit() -->
<input type="button" id="dropboxload" /><!-- may get hidden by dropBoxInit() -->
<input type="button" id="dropboxlist" /><!-- may get hidden by dropBoxInit() -->
</div>
<hr/>
<input type="button" id="clientsql" />
</fieldset>
</td>
<td style="width:40%">
<fieldset>
<legend id="server"></legend>
<label for="backend" id="backendlabel"></label> <select id="backend"><option></option></select>
<hr/>
<input type="button" id="serversave" />
<input type="button" id="quicksave" />
<input type="button" id="serverload" />
<input type="button" id="serverlist" />
<input type="button" id="serverimport" />
</fieldset>
</td>
</tr>
<tr>
<td colspan="2">
<fieldset>
<legend id="output"></legend>
<textarea id="textarea" rows="1" cols="1"></textarea><!--modified by javascript later-->
</fieldset>
</td>
</tr>
</tbody>
</table>
</div>
<div id="keys">
<fieldset>
<legend id="keyslistlabel"></legend>
<select id="keyslist"><option></option></select>
<input type="button" id="keyadd" />
<input type="button" id="keyremove" />
</fieldset>
<fieldset>
<legend id="keyedit"></legend>
<table>
<tbody>
<tr>
<td>
<label for="keytype" id="keytypelabel"></label>
<select id="keytype"><option></option></select>
</td>
<td></td>
<td>
<label for="keyname" id="keynamelabel"></label>
<input type="text" id="keyname" size="10" />
</td>
</tr>
<tr>
<td colspan="3"><hr/></td>
</tr>
<tr>
<td>
<label for="keyfields" id="keyfieldslabel"></label><br/>
<select id="keyfields" size="5" multiple="multiple"><option></option></select>
</td>
<td>
<input type="button" id="keyleft" value="<<" /><br/>
<input type="button" id="keyright" value=">>" /><br/>
</td>
<td>
<label for="keyavail" id="keyavaillabel"></label><br/>
<select id="keyavail" size="5" multiple="multiple"><option></option></select>
</td>
</tr>
</tbody>
</table>
</fieldset>
</div>
<div id="table">
<table>
<tbody>
<tr>
<td>
<label id="tablenamelabel" for="tablename"></label>
</td>
<td>
<input id="tablename" type="text" />
</td>
</tr>
<tr>
<td>
<label id="tablecommentlabel" for="tablecomment"></label>
</td>
<td>
<textarea rows="5" cols="40" id="tablecomment"></textarea>
</td>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
var d = new SQL.Designer();
</script>
</body>
</html>