-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
216 lines (211 loc) · 8.97 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OMC</title>
<link href="css/template.css" rel="stylesheet" type="text/css" />
<link href="css/ui/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.9.1.custom.min.js" type="text/javascript"></script>
<script src="js/manage-column.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
//json : maintain show and hide column values
// edit table json
var editIndexJson = [ {count:0, value:'hidden' },
{count:1, value:'visible' },
{count:2, value:'hidden' },
{count:3, value:'visible' },
{count:4, value:'visible' },
{count:5, value:'visible' },
{count:6, value:'visible' },
{count:7, value:'hidden' }
]
// data table json
var dataIndexJson = [ {count:0, value:'hidden' },
{count:1, value:'visible' },
{count:2, value:'visible' },
{count:3, value:'visible' },
{count:4, value:'visible' },
{count:5, value:'visible' },
{count:6, value:'hidden' },
{count:7, value:'visible' }
]
$('#edit').manageColumn(editIndexJson);
$('#data').manageColumn(dataIndexJson);
});
</script>
</head>
<body>
<div class="top">DIVYA MOYAL</div>
<div class="menu">Column Manager</div>
<div class="wrapper">
<!-- top panel table -->
<div class="box">
<div class="toolbar">
<span>Table First</span>
<div id="editOpener" class="toolbarButton bgPosition">
<div class="toolbarText">Edit<span><img src="css/images/icons/edit.png" alt="1"></span></div>
</div>
<div id="editDialog" class=" uiDialog" title="Edit Table">
<table cellpadding="0" cellspacing="0" class="accessColl simpleTbl">
<tbody>
<tr>
<td><input type="checkbox" id="chk1-1" /><label for="chk1-1">Column ID</label></td><td><span class="colSpan" idName="firstE">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk2-1" /><label for="chk2-1">Column Name</label></td><td><span class="colSpan" idName="secondE">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk3-1" /><label for="chk3-1">Columne Status</label></td><td><span class="colSpan" idName="thirdE">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk4-1" /><label for="chk4-1">Column Width</label></td><td><span class="colSpan" idName="fourthE">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk5-1" /><label for="chk5-1">Column Value</label></td><td><span class="colSpan" idName="fifthE">hide</span></td>
</tr>
</tbody>
</table>
<div class="dialogueBtn">
<input id="editHide" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" value="Hide">
<input id="editShow" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" value="Show">
</div>
</div>
</div>
<div class="content">
<div id="edit">
<table border="0" cellspacing="0" cellpadding="5" class="themeTable targetColl">
<thead>
<tr>
<th idName="firstE" value="visible">Column ID</th>
<th idName="secondE" value="visible">Column Name</th>
<th idName="thirdE" value="visible">Column Status</th>
<th idName="fourthE" value="visible">Column Width Type</th>
<th idName="fifthE" value="visible">Column Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>01</td>
<td>ABC</td>
<td>yes</td>
<td>Full</td>
<td>04</td>
</tr>
<tr>
<td>02</td>
<td>ABCD</td>
<td>yes</td>
<td>Small</td>
<td>10</td>
</tr>
<tr>
<td>03</td>
<td>XYZ</td>
<td>yes</td>
<td>Full</td>
<td>0</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- bottom panel table -->
<div class="box">
<div class="toolbar">
<span>Table Second</span>
<div id="dataOpener" class=" toolbarButton bgPosition">
<div class="toolbarText">Data<span><img src="css/images/icons/edit.png" alt="1"></span></div>
</div>
<div id="dataDialog" class=" uiDialog" title="Data Table">
<table cellpadding="0" cellspacing="0" class="accessColl simpleTbl">
<tbody>
<tr>
<td><input type="checkbox" id="chk1-2" /><label for="chk1-2">Column 1</label></td><td><span class="colSpan" idName="firstD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk2-2" /><label for="chk2-2">Column 2</label></td><td><span class="colSpan" idName="secondD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk3-2" /><label for="chk3-2">Column 3</label></td><td><span class="colSpan" idName="thirdD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk4-2" /><label for="chk4-2">Column 4</label></td><td><span class="colSpan" idName="fourthD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk5-2" /><label for="chk5-2">Column 5</label></td><td><span class="colSpan" idName="fifthD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk6-2" /><label for="chk6-2">Column 6</label></td><td><span class="colSpan" idName="sixthD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk7-2" /><label for="chk7-2">Column 7</label></td><td><span class="colSpan" idName="sevenD">hide</span></td>
</tr>
<tr>
<td><input type="checkbox" id="chk8-2" /><label for="chk8-2">Column 8</label></td><td><span class="colSpan" idName="eightD">hide</span></td>
</tr>
</tbody>
</table>
<div class="dialogueBtn">
<input id="dataHide" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" value="Hide">
<input id="dataShow" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" value="Show">
</div>
</div>
</div>
<div class="content">
<div id="data">
<table border="0" cellspacing="0" cellpadding="5" class="themeTable targetColl">
<thead>
<tr>
<th idName="firstD" value="visible">Column 1</th>
<th idName="secondD" value="hidden">Column 2</th>
<th idName="thirdD" value="visible">Column 3</th>
<th idName="fourthD" value="visible">Column 4</th>
<th idName="fifthD" value="visible">Column 5</th>
<th idName="sixthD" value="visible">Column 6</th>
<th idName="sevenD" value="visible">Column 7</th>
<th idName="eightD" value="visible">Column 8</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="footer">V 0.1</div>
</div>
</body>
</html>