NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/Chameleon/trunk/Chameleon/WMSBrowser/mapbrowser_iframe_en.html

Revision 13 (checked in by jcleary, 17 years ago)

Latest Chameleon code checkout from previous repository

Line 
1 <!-- defaults for Text Buttons -->
2
3 <cwc2 type="SharedResource" name="TextButtons">
4
5     <textbuttonbackgroundimage value=""/>
6
7     <imagewidth value="120"/>
8
9     <imageheight value="24"/>
10
11     <textbuttonpadding value="0"/>
12
13     <textbuttonnudge value="0"/>
14
15     <labelcolor value="111111"/>
16
17     <labelfont value="fonts/Vera.ttf"/>
18
19     <labelalign value="left"/>
20
21     <labelfontsize value="8"/>
22
23     <labelantialias value="true"/>
24
25     <usetextbuttoncache value="false"/>
26
27     <state value="normal">
28
29         <textbuttoncolor value="f0f0f0"/>
30
31         <textbuttonborder_topleft_image value="borders/border_tl_1.png"/>
32
33         <textbuttonborder_top_image value="borders/border_t_1.png"/>
34
35         <textbuttonborder_topright_image value="borders/border_tr_1.png"/>
36
37         <textbuttonborder_right_image value="borders/border_r_1.png"/>
38
39         <textbuttonborder_left_image value="borders/border_l_1.png"/>
40
41         <textbuttonborder_bottomright_image value="borders/border_br_1.png"/>
42
43         <textbuttonborder_bottom_image value="borders/border_b_1.png"/>
44
45         <textbuttonborder_bottomleft_image value="borders/border_bl_1.png"/>
46
47     </state>
48
49     <state value="hover">
50
51         <textbuttoncolor value="cccccc"/>
52
53         <textbuttonborder_topleft_image value="borders/border_tl_2.png"/>
54
55         <textbuttonborder_top_image value="borders/border_t_2.png"/>
56
57         <textbuttonborder_topright_image value="borders/border_tr_2.png"/>
58
59         <textbuttonborder_right_image value="borders/border_r_2.png"/>
60
61         <textbuttonborder_left_image value="borders/border_l_2.png"/>
62
63         <textbuttonborder_bottomright_image value="borders/border_br_2.png"/>
64
65         <textbuttonborder_bottom_image value="borders/border_b_2.png"/>
66
67         <textbuttonborder_bottomleft_image value="borders/border_bl_2.png"/>
68
69     </state>
70
71     <state value="selected">
72
73         <textbuttoncolor value="cccccc"/>
74
75         <textbuttonborder_topleft_image value="borders/border_tl_3.png"/>
76
77         <textbuttonborder_top_image value="borders/border_t_3.png"/>
78
79         <textbuttonborder_topright_image value="borders/border_tr_3.png"/>
80
81         <textbuttonborder_right_image value="borders/border_r_3.png"/>
82
83         <textbuttonborder_left_image value="borders/border_l_3.png"/>
84
85         <textbuttonborder_bottomright_image value="borders/border_br_3.png"/>
86
87         <textbuttonborder_bottom_image value="borders/border_b_3.png"/>
88
89         <textbuttonborder_bottomleft_image value="borders/border_bl_3.png"/>
90
91     </state>
92
93 </cwc2>
94
95 <html>
96
97 <!-- shared resources to hold the wms servers and layers -->
98
99 <cwc2 type="SharedResource" name="WMSSERVERS" ENABLEJS="true"/>
100
101 <cwc2 type="SharedResource" name="WMSLAYERS" ENABLEJS="true"/>
102
103
104
105 <!-- wmscache widgets populate the shared resources -->
106
107 <CWC2 TYPE="WMSCache" SHAREDRESOURCENAME="WMSSERVERS" WMSCACHEDIRECTORY="../wmscache/" LISTSERVERS="true" LISTLAYERS="false"/>
108
109 <CWC2 TYPE="WMSCache" SHAREDRESOURCENAME="WMSLAYERS" WMSCACHEDIRECTORY="../wmscache" LISTSERVERS="false" LISTLAYERS="true" SERVERIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_server.gif" THEMEIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_layers.gif" THEMEOPENIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_layers.gif" LAYERIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_layer.gif"/>
110
111 <head>
112
113 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
114
115 <link href="[$gszCoreWebPath$]/skins/default/css/cwc2.css" rel="stylesheet" type="text/css">
116
117 <link href="[$gszCoreWebPath$]/widgets/css/mapbrowser.css" rel="stylesheet" type="text/css">
118
119 <style type="text/css">
120
121
122
123 .label
124
125 {
126
127   font-family : Arial, Helvetica, sans-serif;
128
129   font-size : 11px;
130
131 }
132
133 </style>
134
135 <script language="javascript" type="text/javascript">
136
137
138
139 var changing = false;
140
141
142
143 function myUpdateServers()
144
145 {
146
147   document.forms[0].WMSSERVERS.value = "0";
148
149   document.forms[0].WMSLAYERS.value = "0";
150
151   document.forms[0].submit();
152
153 }
154
155 /**
156
157  * handle the user changing WMS Servers by 'telling' the two wms cache
158
159  * widgets which server to consider 'active'
160
161  */
162
163 function myOnChange( obj, opt )
164
165 {
166
167         if (opt.value != "")
168
169         {
170
171                 document.forms[0].WMSSERVERS.value = opt.value;
172
173                 document.forms[0].WMSLAYERS.value = opt.value;
174
175                 document.forms[0].submit();
176
177         }
178
179 }
180
181
182
183 /**
184
185  * called when the user wants to manage servers
186
187  */
188
189 function manageServers()
190
191 {
192
193     wh = window.open("[$gszCoreWebPath$]/common/phpwms/manage_servers.phtml?sid=[$SID$]&callbackFunction=myUpdateServers", "ManageWMSServers","scrollbars=yes,resizable=yes,location=no,width=510,height=700");
194
195 }
196
197
198
199 function updateAndApplyCatalogSearchLayer(szLayerAltTitle)
200
201 {
202
203     document.forms[0].LAYER_ALT_TITLE.value = szLayerAltTitle;
204
205     applyCatalogSearchLayer();
206
207 }
208
209
210
211 NS4 = (document.layers) ? true : false;
212
213 function checkEnter(event)
214
215 {
216
217     var code = 0;
218
219
220
221     if (NS4)
222
223         code = event.which;
224
225     else
226
227         code = event.keyCode;
228
229     if (code==13)
230
231          {
232
233          clickCatalogSearch();
234
235          }
236
237 }
238
239
240
241
242
243 </script>
244
245 </head>
246
247
248
249 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#f0f0f0" onLoad="CWC2OnLoadFunction()">
250
251 <form name="treeviewform" method="post">
252
253
254
255
256
257
258
259 <script language="JavaScript" type="text/javascript">CatalogSearchResult_Select();</script>
260
261 <table border="0" cellpadding="0" cellspacing="5" height="100%">
262
263   <tr>
264
265     <td><cwc2 type="JSList" JSSHAREDRESOURCE="WMSSERVERS" LabelField="name" ValueField="server_id" OnChange="myOnChange">
266
267       </cwc2></td>
268
269     <td><cwc2 type="Link" linktype="javascript" jsfunction="manageServers" styleresource="TextButtons" Image="icons/icon_servers.png" Label="Servers" ImageTip="Manage available WMS servers" imagewidth="75">
270
271               <image state="normal"/>
272
273               <image state="hover"/>
274
275               <image state="selected"/>
276
277           </cwc2></td>
278
279   </tr>
280
281   <tr>
282
283     <td><input name="szSearchString" id="szSearchString" type="text" value="enter search terms" onKeyPress="checkEnter(event)"></td>
284
285     <td><cwc2 type="CatalogSearch" styleresource="TextButtons"  Image="icons/icon_find_layer.png" Label="Search" ImageTip="Catalog Search" imagewidth="75" popupwidth="500" popupheight="310" EmbededMode="true" LAYERSHAREDRESOURCENAME="WMSLAYERS" SERVERSHAREDRESOURCENAME="WMSSERVERS" SERVERIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_server.gif" THEMEIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_layers.gif" THEMEOPENIMAGE="[$gszCoreWebPath$]/skins/default/images/tree_layers.gif" HTMLInputName="WMSSERVERS" HTMLInputValue="CatalogSearchResult">
286
287               <image state="normal"/>
288
289               <image state="hover"/>
290
291               <image state="selected"/>
292
293                  </cwc2></td>
294
295   </tr>
296
297   <tr>
298
299     <td colspan="2" valign="bottom"><div class="rbevel1" id="Layer1" style="position:relative; width:320px; height:320px; overflow: scroll;">
300
301       <cwc2 type="JSTreeView" JSSHAREDRESOURCE="WMSLAYERS" LEAFONCLICK="parent.myTreeClicked" NODEONCLICK="parent.myTreeClicked" NODEDATAFIELD="layer_id" NODELABELFIELD="title" NODEICONFIELD="icon" NODEICONOPENFIELD="iconopen" LEAFLABELFIELD="title" LEAFICONFIELD="icon" LEAFDATAFIELD="layer_id" NODECLASS="treeLink" LINKCLASS="treeLink" NODESELECTEDSTYLE="background-color:#e3f0f0;border-color:#b2c4c4;font-weight:bold" NODENORMALSTYLE="background-color:#ffffff;border-color:#ffffff;font-weight:normal"/>
302
303       </div></td>
304
305   </tr>
306
307 </table>
308
309 </form>
310
311 </body>
312
313
314
315 <script language="javascript" type="text/javascript">parent.goJSSR = goJSSR;</script>
316
317 </html>
318
Note: See TracBrowser for help on using the browser.