forked from lt-mayonesa/wwwsqldesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
349 lines (333 loc) · 17.9 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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!doctype html>
<!--
WWW SQL Designer, (C) 2005-2015 Ondrej Zara, ondras@zarovi.cz
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" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="styles/print.css" type="text/css" media="print" />
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="styles/mui.min.css" />
<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>
<!--Let browser know website is optimized for mobile-->
<script src="js/jquery.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/snackbar.js"></script>
<script src="js/tooltip.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>
<script src="js/mui.min.js"></script>
</head>
<body>
<div id="area"></div>
<div id="controls">
<div id="menu" class="mui-dropdown mui--z1">
<button class="mui-btn mui-btn--raised mui-btn" data-mui-toggle="dropdown"><i class="material-icons">menu</i></button>
<ul class="mui-dropdown__menu">
<li>
<button class="mui-btn mui-btn--flat" type="button" id="saveload"></button>
</li>
<li>
<button class="mui-btn mui-btn--flat" type="button" id="options">Hola</button>
</li>
<li>
<a id="docs" class="mui-btn mui-btn--flat" href="https://github.com/lt-mayonesa/sqldesigner/wiki" target="_blank">Docs</a>
</li>
</ul>
</div>
<p style="margin-left: 12px; padding-top: 60px;">
<small>[F2] Save local | [F4] Load local<br>[+] / [-] zoom</small>
</p>
<button id="toogle_min" class="mui-btn mui-btn--raised mui-btn--small mui--align-middle"><i class="material-icons">keyboard_arrow_up</i></button>
<div id="bar" class="mui-panel mui--z2">
<!--tooltips-->
<span class="tooltip" data-for="addtable"></span>
<span class="tooltip" data-for="edittable"></span>
<span class="tooltip" data-for="tablekeys"></span>
<span class="tooltip" data-for="removetable"></span>
<span class="tooltip" data-for="addrow"></span>
<span class="tooltip" data-for="editrow"></span>
<span class="tooltip" data-for="uprow"></span>
<span class="tooltip" data-for="downrow"></span>
<span class="tooltip" data-for="foreigncreate"></span>
<span class="tooltip" data-for="foreignconnect"></span>
<span class="tooltip" data-for="foreigndisconnect"></span>
<span class="tooltip" data-for="removerow"></span>
<span class="tooltip" data-for="aligntables"></span>
<span class="tooltip" data-for="cleartables"></span>
<div class="holder">
<button type="button" id="addtable" class="mui-btn mui-btn--raised mui-btn--accent"><i class="material-icons">add</i></button>
<button type="button" id="edittable" class="mui-btn mui-btn--raised"><i class="material-icons">edit</i></button>
<button type="button" id="tablekeys" class="mui-btn mui-btn--raised"><i class="material-icons">vpn_key</i></button>
<button type="button" id="removetable" class="mui-btn mui-btn--raised"><i class="material-icons">delete</i></button>
</div>
<div class="holder mui--divider-left">
<button type="button" id="addrow" class="mui-btn mui-btn--raised"><i class="material-icons">add_circle_outline</i></button>
<button type="button" id="editrow" class="mui-btn mui-btn--raised" ><i class="material-icons">border_color</i></button>
<div class="holder">
<button type="button" id="uprow" class="small mui-btn mui-btn--raised"><i class="material-icons">arrow_drop_up</i></button>
<button type="button" id="downrow" class="small mui-btn mui-btn--raised" ><i class="material-icons">arrow_drop_down</i></button>
</div>
<button type="button" id="foreigncreate" class="mui-btn mui-btn--raised" ><i class="material-icons">play_circle_outline</i></button>
<button type="button" id="foreignconnect" class="mui-btn mui-btn--raised" ><i class="material-icons">compare_arrows</i></button>
<button type="button" id="foreigndisconnect" class="mui-btn mui-btn--raised" ><i class="material-icons">content_cut</i></button>
<button type="button" id="removerow" class="mui-btn mui-btn--raised" ><i class="material-icons">remove</i></button>
</div>
<div class="holder mui--divider-left">
<button type="button" id="aligntables" class="mui-btn mui-btn--raised" ><i class="material-icons">grid_on</i></button>
<button type="button" id="cleartables" class="mui-btn mui-btn--raised" ><i class="material-icons">delete_sweep</i></button>
<button type="button" id="toggle" class="mui-btn mui-btn--flat" ><i class="material-icons">keyboard_arrow_down</i></button>
</div>
</div>
<div id="rubberband"></div>
<div id="minimap" class="mui--z1"></div>
<div id="snackbar"></div>
<div id="background"></div>
<div id="window" class="mui-panel mui--z3">
<img id="throbber" src="images/throbber.gif" alt="" title="" />
<div>
<h2 id="windowtitle"></h2>
</div>
<div id="windowcontent"></div>
<div id="windowcontrol">
<button id="windowok" class="mui-btn mui-btn--flat mui-btn--accent"><i class="material-icons">done</i></button>
<button id="windowcancel" class="mui-btn mui-btn--flat" ><i class="material-icons">clear</i></button>
</div>
</div>
</div>
<!-- #controls -->
<div id="opts">
<small>* <span class="small" id="optionsnotice"></span></small>
<hr>
<div class="mui-container-fluid">
<div class="mui-row">
<div class="mui-col-md-12 mui-select">
<label id="language" for="optionlocale"></label>
<select id="optionlocale">
<option></option>
</select>
<small>*</small>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-select">
<label id="db" for="optiondb"></label>
<select id="optiondb">
<option></option>
</select>
<small>*</small>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-textfield">
<input type="text" size="4" id="optionsnap" />
<label id="snap" for="optionsnap"></label>
<span class="small" id="optionsnapnotice"></span>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-textfield">
<input type="text" size="6" id="optionpattern" />
<label id="pattern" for="optionpattern"></label>
<span class="small" id="optionpatternnotice"></span>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-checkbox">
<input type="checkbox" id="optionhide"/>
<label id="hide" for="optionhide">
</label>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-checkbox">
<input type="checkbox" id="optionvector" />
<label id="vector" for="optionvector">
</label>
<small>*</small>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-checkbox">
<input type="checkbox" id="optionshowsize" />
<label id="showsize" for="optionshowsize">
</label>
<small>*</small>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-12 mui-checkbox">
<input type="checkbox" id="optionshowtype" />
<label id="showtype" for="optionshowtype"></label>
<small>*</small>
</div>
</div>
</div>
</div>
<div id="io">
<div class="mui-container-fluid">
<div class="mui-row">
<div class="mui-col-md-12">
<ul class="mui-tabs__bar mui-tabs__bar--justified">
<li class="mui--is-active"><a data-mui-toggle="tab" data-mui-controls="pane-client" id="client"></a></li>
<li><a data-mui-toggle="tab" data-mui-controls="pane-server" id="server"></a></li>
</ul>
<div class="mui-tabs__pane mui--is-active" id="pane-client">
<!--<h3 id="client"></h3>-->
<div>
<button class="mui-btn mui-btn--raised" id="clientsave" ></button>
<button class="mui-btn mui-btn--raised" id="clientload" ></button>
</div>
<div>
<button class="mui-btn mui-btn--raised" id="clientlocalsave" ></button>
<button class="mui-btn mui-btn--raised" id="clientlocalload" ></button>
<button class="mui-btn mui-btn--raised" id="clientlocallist" ></button>
</div>
<div>
<button class="mui-btn mui-btn--raised" id="dropboxsave" ></button>
<!-- may get hidden by dropBoxInit() -->
<button class="mui-btn mui-btn--raised" id="dropboxload" ></button>
<!-- may get hidden by dropBoxInit() -->
<button class="mui-btn mui-btn--raised" id="dropboxlist" ></button>
<!-- may get hidden by dropBoxInit() -->
</div>
</div>
<div class="mui-tabs__pane" id="pane-server" style="padding-top: 16px;">
<div class="mui-select">
<label for="backend" id="backendlabel"></label>
<select id="backend">
<option></option>
</select>
</div>
<button class="mui-btn mui-btn--raised" id="serversave" ></button>
<button class="mui-btn mui-btn--raised" id="quicksave" ></button>
<button class="mui-btn mui-btn--raised" id="serverload" ></button>
<button class="mui-btn mui-btn--raised" id="serverlist" ></button>
<button class="mui-btn mui-btn--raised" id="serverimport" ></button>
</div>
</div>
</div>
<hr>
<div class="mui-row">
<div class="mui-col-md-12">
<h3 id="output"></h3>
<div class="mui-textfield">
<textarea id="textarea" rows="1" cols="1"></textarea>
</div>
<button class="mui-btn mui-btn--raised mui-btn--accent" id="clientsql" ></button>
<!--modified by javascript later-->
</div>
</div>
</div>
</div>
<div id="keys" class="mui-container-fluid">
<div class="mui-row">
<h3 id="keyslistlabel"></h3>
<div class="mui-col-md-12">
<div class="mui-select">
<label for="keyslist">Keys</label>
<select id="keyslist">
<option></option>
</select>
</div>
<button id="keyadd" class="mui-btn mui-btn--primary" ></button>
<button id="keyremove" class="mui-btn mui-btn--danger" ></button>
</div>
</div>
<div class="mui-row">
<h3 id="keyedit"></h3>
<div class="mui-col-md-12">
<div class="mui-row">
<div class="mui-col-md-6">
<div class="mui-select">
<label for="keytype" id="keytypelabel"></label>
<select id="keytype">
<option></option>
</select>
</div>
</div>
<div class="mui-col-md-6">
<div class="mui-textfield">
<input type="text" id="keyname" size="10" />
<label for="keyname" id="keynamelabel"></label>
</div>
</div>
</div>
<div class="mui-row">
<div class="mui-col-md-5">
<div>
<label for="keyfields" id="keyfieldslabel"></label>
</div>
<select style="width: 100%" id="keyfields" size="5" multiple="multiple">
<option></option>
</select>
</div>
<div class="mui-col-md-2">
<ul class="mui-list--unstyled">
<li>
<button class="mui-btn mui-btn--raised small" id="keyleft"><i class="material-icons">fast_rewind</i></button>
</li>
<li>
<button class="mui-btn mui-btn--raised small" id="keyright"><i class="material-icons">fast_forward</i></button>
</li>
</ul>
</div>
<div class="mui-col-md-5">
<div>
<label for="keyavail" id="keyavaillabel"></label>
</div>
<select style="width: 100%" id="keyavail" size="5" multiple="multiple">
<option></option>
</select>
</div>
</div>
</div>
</div>
</div>
<div id="table" class="mui-container-fluid">
<div class="mui-row">
<div class="mui-col-md-12">
<div class="mui-textfield">
<input id="tablename" type="text" />
<label id="tablenamelabel" for="tablename"></label>
</div>
</div>
<div class="mui-col-md-12">
<div class="mui-textfield">
<textarea rows="5" cols="40" id="tablecomment"></textarea>
<label id="tablecommentlabel" for="tablecomment"></label>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var d = new SQL.Designer();
</script>
</body>
</html>