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

root/Chameleon/trunk/Chameleon/GpsUtil/GpsPopup.phtml

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

Latest Chameleon code checkout from previous repository

Line 
1 <?php
2 //set the language resource file
3 //$szLanguageResource = "../../data/language/GpsPopup.dbf";
4 //$szCommonLanguageResource = "../../data/language/common.dbf";
5
6 // include the session handling file (currently only required for MLT)
7 include_once("../session.inc.php");
8 include_once("../CWC2ButtonCache.php");
9 include("gpspopup.php");
10 ?>
11 <html>
12 <head>
13 <title>GPS</title>
14 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
15 <link href="<?php echo $szCSSFile; ?>" rel="stylesheet" type="text/css">
16
17 <style>
18
19 #configlayer
20 {
21       position                   :  absolute;
22       width                      :  420px;
23       height                     :  300px;
24       left                       :  10px;
25       top                        :  28px;
26       border                     :  1px solid #000000;
27       z-index                    :  2;
28 }
29
30 #positionlayer
31 {
32       position                   :  absolute;
33       width                      :  420px;
34       height                     :  300px;
35       left                       :  10px;
36       top                        :  28px;
37       border                     :  1px solid #000000;
38       z-index                    :  2;
39 }
40
41 #mapconfiglayer
42 {
43       position                   :  absolute;
44       width                      :  420px;
45       height                     :  300px;
46       left                       :  10px;
47       top                        :  28px;
48       border                     :  1px solid #000000;
49       z-index                    :  2;
50 }
51
52 #messagelayer
53 {
54       position                   :  absolute;
55       width                      :  420px;
56       height                     :  300px;
57       left                       :  10px;
58       top                        :  28px;
59       border                     :  1px solid #000000;
60       z-index                    :  2;
61 }
62
63 #configtab
64 {
65       position                   :  absolute;
66       width                      :  80px;
67       height                     :  20px;
68       left                       :  15px;
69       top                        :  10px;
70       background-color           :  #F0F0F0;
71       border                     :  1px solid #000000;
72       text-align                 :  center;
73       z-index                    :  3;
74 }
75
76 #positiontab
77 {
78       position                   :  absolute;
79       width                      :  80px;
80       height                     :  20px;
81       left                       :  100px;
82       top                        :  10px;
83       background-color           :  #F0F0F0;
84       border                     :  1px solid #000000;
85       text-align                 :  center;
86       z-index                    :  1;
87 }
88
89 #mapconfigtab
90 {
91       position                   :  absolute;
92       width                      :  80px;
93       height                     :  20px;
94       left                       :  185px;
95       top                        :  10px;
96       background-color           :  #F0F0F0;
97       border                     :  1px solid #000000;
98       text-align                 :  center;
99       z-index                    :  1;
100 }
101
102 #messagetab
103 {
104       position                   :  absolute;
105       width                      :  80px;
106       height                     :  20px;
107       left                       :  270px;
108       top                        :  10px;
109       background-color           :  #F0F0F0;
110       border                     :  1px solid #000000;
111       text-align                 :  center;
112       z-index                    :  1;
113 }
114
115 #frilly
116 {
117       position                   :  absolute;
118       font-family                :  Arial, Helvetica, sans-serif;
119       font-size                  :  2px;
120       width                      :  418px;
121       height                     :  3px;
122       left                       :  11px;
123       top                        :  29px;
124       background-color           :  #F0F0F0;
125       z-index                    :  4;
126 }
127
128 .ontabText
129 {
130       font-family                :  Arial, Helvetica, sans-serif;
131       font-size                  :  10px;
132       color                      :  #333333;
133       padding-left               :  0px;
134       margin-left                :  0px;
135       text-decoration            :  none;
136       font-weight                :  bold;
137 }
138
139 .ontabText:link
140 {
141       font-family                :  Arial, Helvetica, sans-serif;
142       font-size                  :  10px;
143       color                      :  #333333;
144       padding-left               :  0px;
145       margin-left                :  0px;
146       text-decoration            :  none;
147       font-weight                :  bold;
148 }
149
150 .ontabText:hover
151 {
152       font-family                :  Arial, Helvetica, sans-serif;
153       font-size                  :  10px;
154       color                      :  #333333;
155       padding-left               :  0px;
156       margin-left                :  0px;
157       text-decoration            :  underline;
158       font-weight                :  bold;
159 }
160
161 </style>
162
163 <script language="JavaScript" src="function_gps.js" type="text/javascript"></script>
164 <script language="JavaScript" type="text/javascript">
165
166 gsLatLongCoordinates = "<?php echo GetLatLongCoordinates()?>";
167 gsPlotPointType = "<?php if (GetPlotPointType() > 0) echo GetPlotPointType();else echo '0'; ?>";
168 gsSymbol = "<?php echo GetSymbolName()?>";
169 gsSymbolSize = "<?php echo GetSymbolSize()?>";
170 gsSymbolColor = "<?php echo GetMapSymbolColor()?>";
171 gsSymbolOutlineColor = "<?php echo GetMapSymbolOutlineColor()?>";
172
173 function myAutoSubmit()
174 {
175  
176     if (<?php echo IsGPSStarted(); ?>)
177     {
178         if (document != null &&  document.forms != null &&
179             document.forms[0] != null)
180           document.forms[0].submit();
181     }
182     else
183     {
184         setTimeout("myAutoSubmit()", 5000);
185     }
186  
187 }
188
189 function myOnLoad()
190 {
191     //alert(document.forms[0].NextUpdateMapTime.value);
192     setTimeout("myAutoSubmit()", 5000);
193
194     if (<?php if ($GLOBALS['RefreshMap'] == 1) echo 1; else echo 0;?>)
195     {
196         CallBackFunc(1);
197     }
198 }
199
200 function PageInit(sDivLayer)
201 {
202     ShowTabLayer(sDivLayer);
203 }
204
205
206 function ShowTabLayer(sTabName)
207 {
208
209     if (sTabName == 'configlayer')
210     {
211         //set tab
212         document.forms[0].CURRENTTAB.value = 'configlayer';
213
214         SetLayerVis('configlayer', true);
215         SetLayerVis('positionlayer', false);
216         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
217           SetLayerVis('messagelayer', false);
218         SetLayerVis('mapconfiglayer', false);
219
220         oLocal = UTLGetLayer( 'configtab' );
221         oLocal.backgroundColor = '#F0F0F0';
222         oLocal.zIndex = 3;
223
224         oLocal = UTLGetLayer( 'positiontab' );
225         oLocal.backgroundColor = '#D9D9D9';
226         oLocal.zIndex = 1;
227
228         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
229         {
230           oLocal = UTLGetLayer( 'messagetab' );
231           oLocal.backgroundColor = '#D9D9D9';
232           oLocal.zIndex = 1;
233         }
234
235         oLocal = UTLGetLayer( 'mapconfigtab' );
236         oLocal.backgroundColor = '#D9D9D9';
237         oLocal.zIndex = 1;
238     }
239     else if (sTabName == "positionlayer")
240     {
241          //set tab
242         document.forms[0].CURRENTTAB.value = 'positionlayer';
243
244         SetLayerVis('configlayer', false);
245         SetLayerVis('positionlayer', true );
246         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
247           SetLayerVis('messagelayer', false);
248         SetLayerVis('mapconfiglayer', false);
249
250         oLocal = UTLGetLayer( 'configtab' );
251         oLocal.backgroundColor = '#D9D9D9';
252         oLocal.zIndex = 1;
253
254         oLocal = UTLGetLayer( 'positiontab' );
255         oLocal.backgroundColor = '#F0F0F0';
256         oLocal.zIndex = 3;
257
258         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
259         {
260           oLocal = UTLGetLayer( 'messagetab' );
261           oLocal.backgroundColor = '#D9D9D9';
262           oLocal.zIndex = 1;
263         }
264         oLocal = UTLGetLayer( 'mapconfigtab' );
265         oLocal.backgroundColor = '#D9D9D9';
266         oLocal.zIndex = 1;
267     }
268     else if (sTabName == "messagelayer")
269     {
270         //set tab
271         document.forms[0].CURRENTTAB.value = 'messagelayer';
272
273         SetLayerVis('configlayer', false);
274         SetLayerVis('positionlayer', false );
275         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
276           SetLayerVis('messagelayer', true);
277         SetLayerVis('mapconfiglayer', false);
278
279         oLocal = UTLGetLayer( 'configtab' );
280         oLocal.backgroundColor = '#D9D9D9';
281         oLocal.zIndex = 1;
282
283         oLocal = UTLGetLayer( 'positiontab' );
284         oLocal.backgroundColor = '#D9D9D9';
285         oLocal.zIndex = 1;
286
287         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
288         {
289           oLocal = UTLGetLayer( 'messagetab' );
290           oLocal.backgroundColor = '#F0F0F0';
291           oLocal.zIndex = 3;
292         }
293         oLocal = UTLGetLayer( 'mapconfigtab' );
294         oLocal.backgroundColor = '#D9D9D9';
295         oLocal.zIndex = 1;
296     }
297     else if (sTabName == "mapconfiglayer")
298     {
299         //set tab
300         document.forms[0].CURRENTTAB.value = 'mapconfiglayer';
301
302         SetLayerVis('configlayer', false);
303         SetLayerVis('positionlayer', false );
304         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
305           SetLayerVis('messagelayer', false);
306         SetLayerVis('mapconfiglayer', true);
307
308         oLocal = UTLGetLayer( 'configtab' );
309         oLocal.backgroundColor = '#D9D9D9';
310         oLocal.zIndex = 1;
311
312         oLocal = UTLGetLayer( 'positiontab' );
313         oLocal.backgroundColor = '#D9D9D9';
314         oLocal.zIndex = 1;
315
316         if (<?php if(GPSDebugMode()) echo "1";else echo "0"; ?>)
317         {
318           oLocal = UTLGetLayer( 'messagetab' );
319           oLocal.backgroundColor = '#D9D9D9';
320           oLocal.zIndex = 1;
321         }
322         oLocal = UTLGetLayer( 'mapconfigtab' );
323         oLocal.backgroundColor = '#F0F0F0';
324         oLocal.zIndex = 3;
325     }
326 }
327
328 function SetNextUpdateMapTime()
329 {
330     stime = new Date();
331     nTime = stime.getTime();
332     nTime = nTime / 1000;
333     nTime = Math.floor(nTime);
334     if ( document.forms[0].RefreshMapDelay.value > 0)
335       nTime = nTime + Number(document.forms[0].RefreshMapDelay.value);
336
337     //sss = "seconds : " +  nTime;
338     //alert(sss);
339
340     document.forms[0].NextUpdateMapTime.value = nTime;
341 }
342
343 function RefreshMapDelayChanged()
344 {
345     if (document.forms[0].RefreshMapDelay.value <= 0)
346     {
347         alert("Refresh Map Delay is not valid.");
348         document.forms[0].RefreshMapDelay.value = 20;
349     }
350
351     ConfigHasChanged();
352     SetNextUpdateMapTime();
353 }
354
355 function PlotPointTypeClicked(nValue)
356 {
357     bChecked = false;
358     if (nValue == 1)
359     {
360         if (document.forms[0].PlotPointTypeAll.checked)
361         {
362             bChecked = true;
363             document.forms[0].PlotPointTypeOne.checked = false;
364         }
365        
366     }
367     else if (nValue == 2)
368     {
369         if (document.forms[0].PlotPointTypeOne.checked)
370         {
371             document.forms[0].PlotPointTypeAll.checked = false;
372              bChecked = true;
373         }
374     }
375     if ( bChecked == true)
376     {
377         SetNextUpdateMapTime();
378     }
379     else
380     {
381         document.forms[0].NextUpdateMapTime.value = -1;
382     }
383 }
384
385 function CallBackFunc(actionId)
386 {
387   //alert("CallBackFunc");
388 <?php
389 if (!isset($http_form_vars['szCallbackFunc']))
390 {
391     $_SESSION['gErrorManager']->setError(ERR_WARNING, $oMLT->get( "", "Callback function not set in GpsPopup.phtml"));
392     echo "window.close();\n";
393 }
394  else
395  {
396    if (GetLatestLatitude() != 0)
397      echo "opener.".$http_form_vars['szCallbackFunc']."(actionId, self);\n";
398  }
399 ?>
400 }
401
402 function ConfigHasChanged()
403 {
404   document.forms[0].ConfigChanged.value = 1;
405 }
406
407 function ColorChanged()
408 {       
409     if (document.forms[0].ColorRed.value < 0 ||
410         document.forms[0].ColorRed.value > 255)
411       document.forms[0].ColorRed.value = 0;
412
413     if (document.forms[0].ColorGreen.value < 0 ||
414         document.forms[0].ColorGreen.value > 255)
415       document.forms[0].ColorGreen.value = 0;
416
417     if (document.forms[0].ColorBlue.value < 0 ||
418         document.forms[0].ColorBlue.value > 255)
419       document.forms[0].ColorBlue.value = 0;
420 }
421
422 function OutlineColorChanged()
423 {
424     if (document.forms[0].OutlineColorRed.value < 0 ||
425         document.forms[0].OutlineColorRed.value > 255)
426       document.forms[0].OutlineColorRed.value = 0;
427
428     if (document.forms[0].OutlineColorGreen.value < 0 ||
429         document.forms[0].OutlineColorGreen.value > 255)
430       document.forms[0].OutlineColorGreen.value = 0;
431
432     if (document.forms[0].OutlineColorBlue.value < 0 ||
433         document.forms[0].OutlineColorBlue.value > 255)
434       document.forms[0].OutlineColorBlue.value = 0;
435 }
436
437 </script>
438 <!--<META http-equiv="REFRESH" content="5">-->
439
440 </head>
441
442 <body class="page" onload="myOnLoad()">
443
444 <form method="get" name="myform">
445 <INPUT TYPE="HIDDEN" NAME="GPSURL" VALUE=<?php echo GetGPSURL(); ?>>
446 <INPUT TYPE="HIDDEN" NAME="GPSBINARY" VALUE=<?php echo urlencode(GetGPSBinary()); ?>>
447 <INPUT TYPE="HIDDEN" NAME="GPSSTATUS" VALUE=<?php echo GetGPSStatus(); ?>>
448 <INPUT TYPE="HIDDEN" NAME="GPSBINARYSTATUS" VALUE="<?php echo $GLOBALS['GPSBINARYSTATUS'] ?>">
449 <INPUT TYPE="HIDDEN" NAME="GPSBINARYSTATUS2" VALUE="1">
450 <INPUT TYPE="HIDDEN" NAME="CURRENTTAB" VALUE="configlayer">
451 <INPUT TYPE="HIDDEN" NAME="NextUpdateMapTime" VALUE="<?php echo GetNextUpdateMapTime()?>">
452 <INPUT TYPE="HIDDEN" NAME="LatLongCoordinates" VALUE="<?php echo GetLatLongCoordinates()?>">
453 <input type="HIDDEN" name="szCallbackFunc" value="<?php echo $HTTP_FORM_VARS['szCallbackFunc']; ?>">
454
455 <INPUT TYPE="HIDDEN" NAME="DEBUG" value="<?php echo $GLOBALS['DEBUG'] ?>">
456
457 <INPUT TYPE="HIDDEN" NAME="Baud" value="<?php echo GetCurrentBaud() ?>">
458 <INPUT TYPE="HIDDEN" NAME="Port" value="<?php echo GetCurrentPort() ?>">
459 <INPUT TYPE="HIDDEN" NAME="DataBits" value="<?php echo GetCurrentDataBits() ?>">
460 <INPUT TYPE="HIDDEN" NAME="Parity" value="<?php echo GetCurrentParity() ?>">
461 <INPUT TYPE="HIDDEN" NAME="StopBits" value="<?php echo GetCurrentStopBits() ?>">
462
463 <INPUT TYPE="HIDDEN" NAME="ConfigChanged" value="0">
464 <!----------------->
465 <!-- Config Layer -->
466 <!----------------->
467 <div id="configlayer" name="configlayer" class="contentArea">
468 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
469   <tr>
470     <td align="center"><p class="helpArea">Configure GPS</p></td>
471   </tr>
472 </table>
473 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
474   <tr>
475     <td><span class="label">Port</span></td>
476     <td><input class="inputBox" type="text" name="Port" value="<?php echo GetCurrentPort();?>" onChange="ConfigHasChanged()" ></td>
477   </tr>
478   <tr>
479     <td><span class="label">Baud</span></td>
480     <td>
481       <span class="nnInputWrap"><select class="inputList" name="Baud" onChange="ConfigHasChanged()">
482         <option class="inputList" value="1200" <?php if (GetCurrentBaud() == 1200) echo "SELECTED";?>>1200</option>
483         <option class="inputList" value="1800" <?php if (GetCurrentBaud() == 1800) echo "SELECTED";?>>1800</option>
484         <option class="inputList" value="2400" <?php if (GetCurrentBaud() == 2400) echo "SELECTED";?>>2400</option>
485         <option class="inputList" value="4800" <?php if (GetCurrentBaud() == 4800) echo "SELECTED";?>>4800</option>
486         <option class="inputList" value="7200" <?php if (GetCurrentBaud() == 7200) echo "SELECTED";?>>7200</option>
487         <option class="inputList" value="9600" <?php if (GetCurrentBaud() == 9600) echo "SELECTED";?>>9600</option>
488         <option class="inputList" value="14400" <?php if (GetCurrentBaud() == 14400) echo "SELECTED";?>>14400</option>
489         <option class="inputList" value="19200" <?php if (GetCurrentBaud() == 19200) echo "SELECTED";?>>19200</option>
490         <option class="inputList" value="38400" <?php if (GetCurrentBaud() == 38400) echo "SELECTED";?>>38400</option>
491       </select></span>
492     </td>
493   </tr>
494   <tr>
495     <td><span class="label">Data Bits</span></td>
496     <td>
497       <span class="nnInputWrap"><select class="inputList" name="DataBits" onChange="ConfigHasChanged()">
498         <option class="inputList" value="4" <?php if (GetCurrentDataBits() == 4) echo "SELECTED";?>>4</option>
499         <option class="inputList" value="5" <?php if (GetCurrentDataBits() == 5) echo "SELECTED";?>>5</option>
500         <option class="inputList" value="6" <?php if (GetCurrentDataBits() == 6) echo "SELECTED";?>>6</option>
501         <option class="inputList" value="7" <?php if (GetCurrentDataBits() == 7) echo "SELECTED";?>>7</option>
502         <option class="inputList" value="8" <?php if (GetCurrentDataBits() == 8) echo "SELECTED";?>>8</option>
503       </select></span>
504     </td>
505   </tr>
506   <tr>
507     <td><span class="label">Partity</span></td>
508     <td>
509       <span class="nnInputWrap"><select class="inputList" name="Parity" onChange="ConfigHasChanged()">
510         <option class="inputList" value="None" <?php if (strcasecmp(GetCurrentParity(), "none") == 0 ) echo "SELECTED";?>>None</option>
511         <option class="inputList" value="Odd" <?php if (strcasecmp(GetCurrentParity(), "odd") == 0 ) echo "SELECTED";?>>Odd</option>
512         <option class="inputList" value="Even" <?php if (strcasecmp(GetCurrentParity(), "even") == 0 ) echo "SELECTED";?>>Even</option>
513       </select></span>
514     </td>
515   </tr>
516   <tr>
517     <td><span class="label">Stop Bits</span></td>
518     <td>
519       <span class="nnInputWrap"><select class="inputList" name="StopBits" onChange="ConfigHasChanged()">
520         <option class="inputList" value="1" <?php if (GetCurrentStopBits() == 1) echo "SELECTED";?>>1</option>
521         <option class="inputList" value="1.5" <?php if (GetCurrentStopBits() == 1.5) echo "SELECTED";?>>1.5</option>
522         <option class="inputList" value="2" <?php if (GetCurrentStopBits() == 2) echo "SELECTED";?>>2</option>
523       </select></span>
524     </td>
525   </tr>
526   <tr>
527     <td>
528       <input type="checkbox" name="AveragePoints" value="1" <?php if (GetAveragePoints() == 1) echo CHECKED?> onClick="ConfigHasChanged()">
529       <span class="label">Averaging</span></td>
530     <td>
531   </tr>
532  <!--
533   <tr>
534     <td><span class="label">Read Points Every (seconds):</span></td>
535     <td><input class="inputBox" type="text" name="ReadPointsDelay" value="<?php echo GetReadPointsDelay();?>" onChange="ConfigHasChanged()"></td>
536   </tr>
537  -->
538 </table>
539 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
540   <tr>
541     <td><input type="submit" name="StartGPS" value="StartGPS"></td>
542     <td><input type="submit" name="StopGPS" value="StopGPS"></td>
543   </tr>
544   <tr>
545     <td colspan="2"><input class="inputBox" type="text" name="startstopgpstext" size="40" value="<?php echo GetStartStopGPSMessage(); ?>"></td>
546   </tr>
547 </table>
548 </div>
549
550 <!------------------->
551 <!-- Position Layer -->
552 <!------------------->
553 <div id="positionlayer" name="positionlayer" class="contentArea">
554 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
555   <tr>
556     <td align="center"><p class="helpArea">Position of last collected point.</p></td>
557   </tr>
558 </table>
559 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
560   <tr>
561     <td><span class="label">Latitude:</span></td>
562     <td><input class="inputBox" type="text" name="Latitude" value="<?php echo GetLatestLatitude();?>"></td>
563   </tr>
564   <tr>
565     <td><span class="label">Longitude:</span></td>
566     <td><input class="inputBox" type="text" name="Longitude" value="<?php echo GetLatestLongitude();?>"></td>
567   </tr>
568 </table>
569 </div>
570
571 <!------------------->
572 <!-- MapConfig Layer -->
573 <!------------------->
574 <div id="mapconfiglayer" name="mapconfiglayer" class="contentArea">
575 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
576   <tr>
577     <td align="center"><p class="helpArea">Config Map.</p></td>
578   </tr>
579 </table>
580 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
581  
582   <tr>
583     <td><span class="label">Refresh Map Every (seconds):</span></td>
584     <td><input class="inputBox" type="text" name="RefreshMapDelay"  onChange="RefreshMapDelayChanged()" value="<?php echo GetRefreshMapDelay();?>"></td>
585   </tr>
586   <tr>
587     <td><span class="label">Symbol Name:</span></td>
588     <td><input class="inputBox" type="text" name="SymbolName"  onChange="" value="<?php echo GetSymbolName();?>"></td>
589   </tr>
590   <tr>
591     <td><span class="label">Symbol Size:</span></td>
592     <td><input class="inputBox" type="text" name="SymbolSize"  onChange="" value="<?php echo GetSymbolSize();?>"></td>
593   </tr>
594   <tr>
595       <td><span class="label">Color (RGB):</span></td>
596      <td>
597       <table>
598         <tr>
599           <td><input class="inputBox" type="text" name="ColorRed"  size="3" onChange="ColorChanged()" value="<?php echo GetColor('red');?>"></td>
600           <td><input class="inputBox" type="text" name="ColorGreen"  size="3" onChange="ColorChanged()" value="<?php echo GetColor('green');?>"></td>
601            <td><input class="inputBox" type="text" name="ColorBlue"  size="3" onChange="ColorChanged()" value="<?php echo GetColor('blue');?>"></td>
602        </tr>
603      </table>
604     </td>
605   </tr>
606   <tr>
607       <td><span class="label">OutlineColor (RGB):</span></td>
608      <td>
609       <table>
610         <tr>
611           <td><input class="inputBox" type="text" name="OutlineColorRed"  size="3" onChange="OutlineColorChanged()" value="<?php echo GetOutlineColor('red');?>"></td>
612           <td><input class="inputBox" type="text" name="OutlineColorGreen"  size="3" onChange="OutlineColorChanged()" value="<?php echo GetOutlineColor('green');?>"></td>
613            <td><input class="inputBox" type="text" name="OutlineColorBlue"  size="3" onChange="OutlineColorChanged()" value="<?php echo GetOutlineColor('blue');?>"></td>
614        </tr>
615      </table>
616     </td>
617   </tr>   
618   <tr>
619     <td>
620       <input type="checkbox" name="PlotPointTypeAll" value="1" <?php if (GetPlotPointType() == 1) echo CHECKED?> onClick="PlotPointTypeClicked(1)">
621       <span class="label">Plot All Points</span></td>
622     <td>
623       <input type="checkbox" name="PlotPointTypeOne" value="2" <?php if (GetPlotPointType() == 2) echo CHECKED?> onClick="PlotPointTypeClicked(2)">
624       <span class="label">Plot Last Point</span></td>
625   </tr>
626 </table>
627 </div>
628
629 <!------------------->
630 <!-- Message Layer -->
631 <!------------------->
632
633 <?php if (!GPSDebugMode()) echo "<!--"; ?>
634
635 <div id="messagelayer" name="messagelayer" class="contentArea">
636 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
637   <tr>
638     <td align="center"><p class="helpArea">Position of last collected point.</p></td>
639   </tr>
640 </table>
641 <table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0">
642   <tr>
643     <td><textarea name="RawMessageText" rows="20" cols="60"><?php echo GetRawMessages();?></textarea></td>
644   </tr>
645 </table>
646 </div>
647
648 <?php if (!GPSDebugMode()) echo "-->"; ?>
649
650 <!--------------------->
651 <!-- Config Tab Layer -->
652 <!--------------------->
653 <div id="configtab" name="configtab">
654 <a class="ontabText" href="javascript:void(0);" onclick="ShowTabLayer('configlayer');">GPS Config</a>
655 </div>
656
657 <!----------------------->
658 <!-- Position Tab Layer -->
659 <!----------------------->
660 <div id="positiontab" name="positiontab">
661   <a class="ontabText" href="javascript:void(0);" onclick="ShowTabLayer('positionlayer');">Position</a>
662 </div>
663
664 <!----------------------->
665 <!-- MapConfig Tab Layer -->
666 <!----------------------->
667 <div id="mapconfigtab" name="mapconfigtab">
668   <a class="ontabText" href="javascript:void(0);" onclick="ShowTabLayer('mapconfiglayer');">Map Config</a>
669 </div>
670
671 <!----------------------->
672 <!-- Message Tab Layer -->
673 <!----------------------->
674 <?php if (!GPSDebugMode()) echo "<!--"; ?>
675
676 <div id="messagetab" name="messagetab">
677   <a class="ontabText" href="javascript:void(0);" onclick="ShowTabLayer('messagelayer');">Message</a>
678 </div>
679 <?php if (!GPSDebugMode()) echo "-->"; ?>
680
681 <!------------------>
682 <!-- Frilly Layer -->
683 <!------------------>
684 <div id="frilly" name="frilly"><img src="images/a_pixel.gif" border="0" width="0" height="0"></div>
685
686
687 <script language="JavaScript"  type="text/javascript">
688     PageInit('<?php echo GetCurrentInterfaceTab(); ?>');
689 </script>
690
691
692 </form>
693 </body>
694 </html>
Note: See TracBrowser for help on using the browser.