1 |
<?php |
---|
2 |
/** |
---|
3 |
* CWC application |
---|
4 |
* |
---|
5 |
* @project CWC |
---|
6 |
* @revision $Id: production.phtml,v 1.6 2004/12/03 03:31:55 pspencer Exp $ |
---|
7 |
* @purpose This page is the main interface page. |
---|
8 |
* @author William A. Bronsema, C.E.T. (bronsema@dmsolutions.ca) |
---|
9 |
* @copyright |
---|
10 |
* <b>Copyright (c) 2001, DM Solutions Group Inc.</b> |
---|
11 |
* Permission is hereby granted, free of charge, to any person obtaining a |
---|
12 |
* copy of this software and associated documentation files (the "Software"), |
---|
13 |
* to deal in the Software without restriction, including without limitation |
---|
14 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
---|
15 |
* and/or sell copies of the Software, and to permit persons to whom the |
---|
16 |
* Software is furnished to do so, subject to the following conditions: |
---|
17 |
* |
---|
18 |
* The above copyright notice and this permission notice shall be included |
---|
19 |
* in all copies or substantial portions of the Software. |
---|
20 |
* |
---|
21 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
---|
22 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
---|
23 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
---|
24 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
---|
25 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
---|
26 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
---|
27 |
* DEALINGS IN THE SOFTWARE. |
---|
28 |
*/ |
---|
29 |
|
---|
30 |
/***************************************************************************** |
---|
31 |
* $Log: production.phtml,v $ |
---|
32 |
* Revision 1.6 2004/12/03 03:31:55 pspencer |
---|
33 |
* bug MT 866: modify script tags to input type='text/javascript' |
---|
34 |
* |
---|
35 |
* Revision 1.5 2004/11/16 15:23:40 pspencer |
---|
36 |
* bug MT 377: renamed PrintWidget to PrintProduction |
---|
37 |
* |
---|
38 |
* Revision 1.4 2004/06/05 13:38:26 pspencer |
---|
39 |
* bug 440: removed session variables related to gd module, free type. |
---|
40 |
* |
---|
41 |
* Revision 1.3 2004/04/28 13:43:14 pspencer |
---|
42 |
* fix file path related issues |
---|
43 |
* |
---|
44 |
* Revision 1.2 2004/04/25 04:20:39 pspencer |
---|
45 |
* fixed file references |
---|
46 |
* |
---|
47 |
* Revision 1.1 2004/04/23 16:51:51 pspencer |
---|
48 |
* moved production.phtml to PrintProduction/production.phtml |
---|
49 |
* |
---|
50 |
* Revision 1.39 2004/04/23 13:29:05 sfournier |
---|
51 |
* Make sure language file are located in the same directory of the widget and make sure to load them correctly |
---|
52 |
* |
---|
53 |
* Revision 1.38 2004/04/21 11:11:51 wbronsema |
---|
54 |
* corrected language path to point to widget directory instead of language directory |
---|
55 |
* |
---|
56 |
* Revision 1.37 2004/03/31 22:29:19 jlacroix |
---|
57 |
* Resize buttons |
---|
58 |
* |
---|
59 |
* Revision 1.36 2004/03/30 20:21:24 jlacroix |
---|
60 |
* Add some validation on variable that are not always setted. |
---|
61 |
* |
---|
62 |
* Revision 1.35 2004/01/22 18:41:49 pspencer |
---|
63 |
* major overhaul of buttons, consolidating all previous TextButton and NavTools into a single Button architecture. |
---|
64 |
* |
---|
65 |
* Revision 1.34 2003/10/27 20:46:19 sfournier |
---|
66 |
* Overwrite main branch with 1.1 stuff |
---|
67 |
* |
---|
68 |
* Revision 1.28.2.4 2003/10/21 01:32:31 pspencer |
---|
69 |
* removed unnecessary javascript code that caused javascript error |
---|
70 |
* |
---|
71 |
* Revision 1.28.2.3 2003/10/15 21:04:57 pspencer |
---|
72 |
* fixes to work with Chameleon 1.1 |
---|
73 |
* |
---|
74 |
* Revision 1.28.2.2 2003/06/11 20:29:17 sacha |
---|
75 |
* Make some cleaning |
---|
76 |
* |
---|
77 |
* Revision 1.28.2.1 2003/05/27 17:40:59 sacha |
---|
78 |
* added support for skinning |
---|
79 |
* |
---|
80 |
* Revision 1.28 2003/04/30 15:18:55 bronsema |
---|
81 |
* fixed "invalid syntax" javascript error by removing unecessary and |
---|
82 |
* un-intialized variables |
---|
83 |
* |
---|
84 |
* Revision 1.27 2003/04/30 14:58:07 bronsema |
---|
85 |
* removed SWF output option |
---|
86 |
* |
---|
87 |
* Revision 1.26 2003/04/29 20:48:39 sacha |
---|
88 |
* Fixed the scalebar preview in jpeg. |
---|
89 |
* |
---|
90 |
* Revision 1.25 2003/04/23 17:30:15 pspencer |
---|
91 |
* use sharedresource wait image from session if possible. Also, use GD version |
---|
92 |
* from session. |
---|
93 |
* |
---|
94 |
* Revision 1.24 2003/04/17 19:47:52 sacha |
---|
95 |
* Changed the Final Image Size to Final Map Size |
---|
96 |
* |
---|
97 |
* Revision 1.23 2003/04/10 13:09:08 sacha |
---|
98 |
* Set title when downloading map preview |
---|
99 |
* |
---|
100 |
* Revision 1.22 2003/04/08 19:08:27 sacha |
---|
101 |
* Added error report to production dialog and also fixed a bug about PDF format. Only offer the choice if available |
---|
102 |
* |
---|
103 |
* Revision 1.21 2003/03/14 23:17:10 fredrock |
---|
104 |
* modified the popup with css to make it skinnable |
---|
105 |
* |
---|
106 |
* Revision 1.20 2003/03/05 21:14:11 sacha |
---|
107 |
* Just display support format |
---|
108 |
* |
---|
109 |
* Revision 1.19 2003/02/21 15:25:16 sacha |
---|
110 |
* 'Added more language file and fixed some language bugs' |
---|
111 |
* |
---|
112 |
* Revision 1.18 2003/02/20 21:24:20 sacha |
---|
113 |
* 'Added more language file' |
---|
114 |
* |
---|
115 |
* Revision 1.17 2003/01/15 15:21:21 pspencer |
---|
116 |
* fixed typo in php code |
---|
117 |
* |
---|
118 |
* Revision 1.16 2003/01/15 15:14:27 fredrock |
---|
119 |
* added buttonizer buttons. |
---|
120 |
* |
---|
121 |
* Revision 1.15 2003/01/10 19:01:56 fredrock |
---|
122 |
* added the help text |
---|
123 |
* |
---|
124 |
* Revision 1.14 2003/01/07 20:04:20 bronsema |
---|
125 |
* Included serveral misc settings |
---|
126 |
* |
---|
127 |
* Revision 1.13 2003/01/07 18:33:45 bronsema |
---|
128 |
* Added legend |
---|
129 |
* |
---|
130 |
* Revision 1.12 2003/01/03 18:51:01 bronsema |
---|
131 |
* Moved the download file capabiltiy to the production page. |
---|
132 |
* |
---|
133 |
* Revision 1.11 2002/12/13 19:42:19 bronsema |
---|
134 |
* Updated the print and production dialogs to new style. Fixed neat line. |
---|
135 |
* |
---|
136 |
* Revision 1.10 2002/11/28 22:18:39 fredrock |
---|
137 |
* changed to close, and moved the query results |
---|
138 |
* |
---|
139 |
* Revision 1.9 2002/11/28 18:29:19 sacha |
---|
140 |
* Fixed path |
---|
141 |
* |
---|
142 |
* Revision 1.8 2002/11/28 04:14:04 pspencer |
---|
143 |
* removed variables causing notices in javascript code. |
---|
144 |
* |
---|
145 |
* Revision 1.7 2002/11/26 14:31:32 sacha |
---|
146 |
* added focus to popup |
---|
147 |
* |
---|
148 |
* Revision 1.6 2002/11/25 16:15:27 fredrock |
---|
149 |
* fixed title |
---|
150 |
* |
---|
151 |
* Revision 1.5 2002/11/21 19:54:50 fredrock |
---|
152 |
* changed the image in the preview button |
---|
153 |
* |
---|
154 |
* Revision 1.4 2002/11/21 19:34:44 fredrock |
---|
155 |
* removed centre tag |
---|
156 |
* |
---|
157 |
* Revision 1.3 2002/11/21 19:33:40 fredrock |
---|
158 |
* image path fixed |
---|
159 |
* |
---|
160 |
* Revision 1.2 2002/11/21 19:30:46 fredrock |
---|
161 |
* new buttons, and minor table editing |
---|
162 |
* |
---|
163 |
* Revision 1.1 2002/11/21 00:46:00 sacha |
---|
164 |
* added print widget |
---|
165 |
* |
---|
166 |
* Revision 1.10 2002/08/12 20:26:18 bronsema |
---|
167 |
* Added delayed drawing functionality to map production. |
---|
168 |
* |
---|
169 |
* Revision 1.9 2002/07/22 18:57:23 bronsema |
---|
170 |
* Fixed bug with displaying footer |
---|
171 |
* |
---|
172 |
* Revision 1.8 2002/07/11 19:37:25 bronsema |
---|
173 |
* Updated label to hide the special characters when converting bad chars |
---|
174 |
* |
---|
175 |
* Revision 1.7 2002/07/11 16:07:48 bronsema |
---|
176 |
* Added ability to turn margins on and off |
---|
177 |
* |
---|
178 |
* Revision 1.6 2002/07/10 03:34:56 bronsema |
---|
179 |
* Updated to handle invalid characters |
---|
180 |
* |
---|
181 |
* Revision 1.5 2002/07/05 02:22:46 bronsema |
---|
182 |
* Removed dependancy on register_globals setting to be on. |
---|
183 |
* |
---|
184 |
* Revision 1.4 2002/06/27 02:19:09 bronsema |
---|
185 |
* Finished translation |
---|
186 |
* |
---|
187 |
* Revision 1.3 2002/06/26 03:24:03 bronsema |
---|
188 |
* Added map production |
---|
189 |
* |
---|
190 |
* Revision 1.2 2002/06/26 00:02:50 bronsema |
---|
191 |
* Under construction |
---|
192 |
* |
---|
193 |
* Revision 1.1 2002/06/25 13:15:39 bronsema |
---|
194 |
* Initial creation |
---|
195 |
* |
---|
196 |
*****************************************************************************/ |
---|
197 |
|
---|
198 |
//set the language resource file |
---|
199 |
$szLanguageResource = str_replace("\\","/",dirname(__FILE__))."/Production.dbf"; |
---|
200 |
|
---|
201 |
// include the production functions |
---|
202 |
include_once ( dirname(__FILE__)."/production.inc.php" ); |
---|
203 |
include_once(dirname(__FILE__)."/../CWC2ButtonCache.php"); |
---|
204 |
|
---|
205 |
$gdModule = "php_gd2"; |
---|
206 |
|
---|
207 |
// ensure that the gd module is loaded |
---|
208 |
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") |
---|
209 |
{ |
---|
210 |
if (!extension_loaded("gd")) dl($gdModule.".dll"); |
---|
211 |
if (!extension_loaded("dbase")) dl("php_dbase.dll"); |
---|
212 |
} |
---|
213 |
else |
---|
214 |
{ |
---|
215 |
if (!extension_loaded("gd")) dl($gdModule.".so"); |
---|
216 |
if (!extension_loaded("dbase")) dl("php_dbase.so"); |
---|
217 |
} |
---|
218 |
|
---|
219 |
/* ============================================================================ |
---|
220 |
* Mapscript Info |
---|
221 |
* ========================================================================= */ |
---|
222 |
// ensure mapscript module is loaded |
---|
223 |
if (!extension_loaded("MapScript")) |
---|
224 |
$bMapscriptValid = @dl($oAppContext->getContextValue("mapscript_module")); |
---|
225 |
else |
---|
226 |
$bMapscriptValid = true; |
---|
227 |
|
---|
228 |
// initialize array |
---|
229 |
$gaMSImageTypes = array(); |
---|
230 |
|
---|
231 |
if ( $bMapscriptValid ) |
---|
232 |
{ |
---|
233 |
// check each |
---|
234 |
if (strpos( ms_GetVersion(), "OUTPUT=GIF") > 0 ) |
---|
235 |
array_push( $gaMSImageTypes, "GIF" ); |
---|
236 |
if (strpos( ms_GetVersion(), "OUTPUT=PNG") > 0 ) |
---|
237 |
{ |
---|
238 |
array_push( $gaMSImageTypes, "PNG" ); |
---|
239 |
array_push( $gaMSImageTypes, "PNG24" ); |
---|
240 |
} |
---|
241 |
if (strpos( ms_GetVersion(), "OUTPUT=JPEG") > 0 ) |
---|
242 |
array_push( $gaMSImageTypes, "JPEG" ); |
---|
243 |
//if (strpos( ms_GetVersion(), "OUTPUT=WBMP") > 0 ) |
---|
244 |
// array_push( $gaMSImageTypes, "WBMP" ); |
---|
245 |
if (strpos( ms_GetVersion(), "OUTPUT=PDF") > 0 ) |
---|
246 |
array_push( $gaMSImageTypes, "PDF" ); |
---|
247 |
//if (strpos( ms_GetVersion(), "OUTPUT=SWF") > 0 ) |
---|
248 |
//array_push( $gaMSImageTypes, "SWF" ); |
---|
249 |
} |
---|
250 |
?> |
---|
251 |
<html> |
---|
252 |
<head> |
---|
253 |
<title><?php echo trim($oMLT->get("0", "Map Production")); ?></title> |
---|
254 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
255 |
<script language="JavaScript" src="<?php echo $_SESSION['gszCoreWebPath']; ?>/widgets/js/cwc_dhtml.js" type="text/javascript"></script> |
---|
256 |
<script language="JavaScript" src="<?php echo $_SESSION['gszCoreWebPath']; ?>/widgets/js/cwc_button.js" type="text/javascript"></script> |
---|
257 |
<script language="javascript" type="text/javascript"> |
---|
258 |
/** |
---|
259 |
* this function opens the preview window |
---|
260 |
**/ |
---|
261 |
function openPreview() |
---|
262 |
{ |
---|
263 |
// copy values over to hide the special chars |
---|
264 |
document.forms.main.txtTitleDesc.value = document.forms.main.txtTitleDesc2.value; |
---|
265 |
//document.forms.main.txtFootDesc.value = document.forms.main.txtFootDesc2.value; |
---|
266 |
|
---|
267 |
// remove nasty characters from the title & footer |
---|
268 |
document.forms.main.txtTitleDesc.value = replaceChars( document.forms.main.txtTitleDesc.value ); |
---|
269 |
|
---|
270 |
// set flag to open preview after form has loaded |
---|
271 |
document.forms.main.bShowPreview.value = 1; |
---|
272 |
|
---|
273 |
// submit the form |
---|
274 |
document.forms.main.submit(); |
---|
275 |
|
---|
276 |
// exit function |
---|
277 |
return; |
---|
278 |
} |
---|
279 |
|
---|
280 |
/** |
---|
281 |
* This function takes a string and replaces nasty chars |
---|
282 |
**/ |
---|
283 |
function replaceChars( checkString ) |
---|
284 |
{ |
---|
285 |
// initialize vars |
---|
286 |
var newString = ""; |
---|
287 |
|
---|
288 |
// loop through each letter |
---|
289 |
for (var i = 0; i < checkString.length; i++) |
---|
290 |
{ |
---|
291 |
// check for \, ', and " |
---|
292 |
if ( checkString.substr(i,1) == "\\" ) |
---|
293 |
{ |
---|
294 |
newString = newString + "#!#"; |
---|
295 |
} |
---|
296 |
else |
---|
297 |
{ |
---|
298 |
if ( checkString.substr(i,1) == "'" ) |
---|
299 |
{ |
---|
300 |
newString = newString + "#!!#"; |
---|
301 |
} |
---|
302 |
else |
---|
303 |
{ |
---|
304 |
if ( checkString.substr(i,1) == "\"" ) |
---|
305 |
{ |
---|
306 |
newString = newString + "#!!!#"; |
---|
307 |
} |
---|
308 |
else |
---|
309 |
{ |
---|
310 |
newString = newString + checkString.substr(i,1); |
---|
311 |
} |
---|
312 |
} |
---|
313 |
} |
---|
314 |
} |
---|
315 |
|
---|
316 |
// return the string |
---|
317 |
return newString; |
---|
318 |
|
---|
319 |
} |
---|
320 |
|
---|
321 |
/** |
---|
322 |
* This function is executed after the page has been loaded |
---|
323 |
**/ |
---|
324 |
function loaded() |
---|
325 |
{ |
---|
326 |
// check if a preview has been called |
---|
327 |
if ( document.forms.main.bShowPreview.value == 1 ) |
---|
328 |
{ |
---|
329 |
// reset the flag value |
---|
330 |
document.forms.main.bShowPreview.value = 0; |
---|
331 |
|
---|
332 |
// calculate the center |
---|
333 |
if (document.all) |
---|
334 |
var xMax = screen.width, yMax = screen.height; |
---|
335 |
else |
---|
336 |
if (document.layers) |
---|
337 |
var xMax = window.outerWidth, yMax = window.outerHeight; |
---|
338 |
else |
---|
339 |
var xMax = 640, yMax=480; |
---|
340 |
|
---|
341 |
// calc offsets |
---|
342 |
var xOffset = (xMax - 800)/2, yOffset = (yMax - 600)/2; |
---|
343 |
|
---|
344 |
// open the window |
---|
345 |
preview = window.open( "./preview.phtml?<?php echo SID."&selImageFormat=".$selImageFormat ?>", |
---|
346 |
'preview', |
---|
347 |
'menubar=yes,status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=600,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''); |
---|
348 |
|
---|
349 |
// give the window focus |
---|
350 |
preview.focus(); |
---|
351 |
} |
---|
352 |
else if ( document.forms.main.bShowDownload.value == 1 ) |
---|
353 |
{ |
---|
354 |
// reset the flag value |
---|
355 |
document.forms.main.bShowDownload.value = 0; |
---|
356 |
|
---|
357 |
// calculate the center |
---|
358 |
if (document.all) |
---|
359 |
var xMax = screen.width, yMax = screen.height; |
---|
360 |
else |
---|
361 |
if (document.layers) |
---|
362 |
var xMax = window.outerWidth, yMax = window.outerHeight; |
---|
363 |
else |
---|
364 |
var xMax = 640, yMax=480; |
---|
365 |
|
---|
366 |
// calc offsets |
---|
367 |
var xOffset = (xMax - 400)/2, yOffset = (yMax - 200)/2; |
---|
368 |
|
---|
369 |
// open the window |
---|
370 |
dl_win = window.open( "./production_download.phtml?<?php echo SID?>&selImageFormat=" + document.forms[0].selImageFormat.value, |
---|
371 |
'dl_win', |
---|
372 |
'status=no,toolbar=no,scrollbars=no,resizable=yes,width=400,height=200,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''); |
---|
373 |
|
---|
374 |
// give the window focus |
---|
375 |
dl_win.focus(); |
---|
376 |
|
---|
377 |
} |
---|
378 |
else |
---|
379 |
self.focus(); |
---|
380 |
|
---|
381 |
|
---|
382 |
// exit function |
---|
383 |
return; |
---|
384 |
} |
---|
385 |
|
---|
386 |
/** |
---|
387 |
* Postcondition: This function forces the download of the completed map |
---|
388 |
**/ |
---|
389 |
function download() |
---|
390 |
{ |
---|
391 |
// copy values over to hide the special chars |
---|
392 |
document.forms.main.txtTitleDesc.value = document.forms.main.txtTitleDesc2.value; |
---|
393 |
//document.forms.main.txtFootDesc.value = document.forms.main.txtFootDesc2.value; |
---|
394 |
|
---|
395 |
// remove nasty characters from the title & footer |
---|
396 |
document.forms.main.txtTitleDesc.value = replaceChars( document.forms.main.txtTitleDesc.value ); |
---|
397 |
|
---|
398 |
// set flag to open download after form has loaded |
---|
399 |
document.forms.main.bShowDownload.value = 1; |
---|
400 |
|
---|
401 |
// submit the form |
---|
402 |
document.forms.main.submit(); |
---|
403 |
|
---|
404 |
// exit function |
---|
405 |
return; |
---|
406 |
} |
---|
407 |
|
---|
408 |
function CloseWindow() |
---|
409 |
{ |
---|
410 |
window.close(); |
---|
411 |
} |
---|
412 |
</script> |
---|
413 |
<link href="<?php echo $szCSSFile; ?>" rel="stylesheet" type="text/css"> |
---|
414 |
</head> |
---|
415 |
<body class="page" onLoad="javascript:loaded()"> |
---|
416 |
<form name="main"> |
---|
417 |
|
---|
418 |
<table border="0" cellpadding="1" cellspacing="10"> |
---|
419 |
<tr> |
---|
420 |
<td class="layoutTable"> |
---|
421 |
<table class="titleArea" width="100%" border="0" cellpadding="4" cellspacing="0"> |
---|
422 |
<tr> |
---|
423 |
<td><img src="title_print.gif" width="22" height="22" align="texttop"> <span class="title"><?php echo trim($oMLT->get("0", "Map Production")); ?></span></td> |
---|
424 |
</tr> |
---|
425 |
</table> |
---|
426 |
<table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0"> |
---|
427 |
<tr> |
---|
428 |
<td align="center"><p class="helpArea"><?php echo trim($oMLT->get("1", "Select and position the cartographic elements that should appear on the final map layout.")); ?></p></td> |
---|
429 |
</tr> |
---|
430 |
</table> |
---|
431 |
<!----------------------------> |
---|
432 |
<!-- BEGIN MAP COMPOSITION --> |
---|
433 |
<!----------------------------> |
---|
434 |
<table class="contentArea" border="0" cellspacing="0" cellpadding="4" width="100%"> |
---|
435 |
<tr> |
---|
436 |
<td> |
---|
437 |
<table border="0" cellspacing="0" cellpadding="2"> |
---|
438 |
<tr> |
---|
439 |
<td colspan=2><span class="label"><strong><?php echo trim($oMLT->get("2", "Element")); ?></strong></span></td> |
---|
440 |
<td><span class="label"><strong><?php echo trim($oMLT->get("3", "Position")); ?></strong></span></td> |
---|
441 |
<td> </td> |
---|
442 |
<td colspan="1"><span class="label"><strong><?php echo trim($oMLT->get("4", "Value")); ?></strong></span></td> |
---|
443 |
<td colspan="2"><span class="label"><strong><?php echo trim($oMLT->get("27", "Font - required!")); |
---|
444 |
?></strong></span></td> |
---|
445 |
</tr> |
---|
446 |
<tr> |
---|
447 |
<td valign="top"><input type="checkbox" name="chkTitleElem" value="1" <?php if ( $chkTitleElem == 1 ) echo "checked" ?>></td> |
---|
448 |
<td valign="top"><span class="label"><?php echo trim($oMLT->get("5", "Title")); ?></span></td> |
---|
449 |
<td valign="top"><p class="helpArea" style="width:130px"> <?php echo trim($oMLT->get("9", "Above Map, Centre")); ?> </p></td> |
---|
450 |
<td> </td> |
---|
451 |
<td colspan="1"><input class="inputBox" type=text name="txtTitleDesc2" value="<?php echo restoreChars( $txtTitleDesc, true ) ?>"></td> |
---|
452 |
<td colspan="2"><select name="titleFont" class="inputList" ><?php |
---|
453 |
foreach( $aFonts as $szName => $szFontFile ) |
---|
454 |
{ |
---|
455 |
$szSelected = ""; |
---|
456 |
if ($szName == $selTitleFont) |
---|
457 |
$szSelected = " SELECTED"; |
---|
458 |
echo "<OPTION class=\"inputList\" value=\"".$szName."\"$szSelected>".$szName."</OPTION>"; |
---|
459 |
} |
---|
460 |
?></select></td> |
---|
461 |
</tr> |
---|
462 |
<tr> |
---|
463 |
<td><input type="checkbox" name="chkNeatElem" value="1" <?php if ( $chkNeatElem == 1 ) echo "checked" ?>></td> |
---|
464 |
<td><span class="label"><?php echo trim($oMLT->get("6", "Neatline")); ?> </span></td> |
---|
465 |
<td valign="top"><p class="helpArea" style="width:130px"> <?php echo trim($oMLT->get("10", "Surounding Map")); ?> </p></td> |
---|
466 |
<td colspan=4> </td> |
---|
467 |
</tr> |
---|
468 |
<tr> |
---|
469 |
<td><input type="checkbox" name="chkScalebarElem" value="1" <?php if ( $chkScalebarElem == 1 ) echo "checked" ?>></td> |
---|
470 |
<td><span class="label"><?php echo trim($oMLT->get("7", "Scale Bar")); ?></span></td> |
---|
471 |
<td> |
---|
472 |
<span class="nnInputWrap"><select class="inputList" name="selScalebarPos"> |
---|
473 |
<option class="inputList" value="TR"<?php if ( $selScalebarPos == "TR") echo "SELECTED"; ?>><?php echo trim($oMLT->get("12", "Top Right")); ?></option> |
---|
474 |
<option class="inputList" value="TC"<?php if ( $selScalebarPos == "TC") echo "SELECTED"; ?>><?php echo trim($oMLT->get("13", "Top Center")); ?></option> |
---|
475 |
<option class="inputList" value="TL"<?php if ( $selScalebarPos == "TL") echo "SELECTED"; ?>><?php echo trim($oMLT->get("14", "Top Left")); ?></option> |
---|
476 |
<option class="inputList" value="BR"<?php if ( $selScalebarPos == "BR") echo "SELECTED"; ?>><?php echo trim($oMLT->get("15", "Bottom Right")); ?></option> |
---|
477 |
<option class="inputList" value="BC"<?php if ( $selScalebarPos == "BC") echo "SELECTED"; ?>><?php echo trim($oMLT->get("16", "Bottom Center")); ?></option> |
---|
478 |
<option class="inputList" value="BL"<?php if ( $selScalebarPos == "BL") echo "SELECTED"; ?>><?php echo trim($oMLT->get("17", "Bottom Left")); ?></option> |
---|
479 |
</select></span> |
---|
480 |
</td> |
---|
481 |
<td colspan=4> </td> |
---|
482 |
</tr> |
---|
483 |
<!-- |
---|
484 |
<tr> |
---|
485 |
<td><input type="checkbox" name="chkLegendElem" value="1" <?php if ( $chkLegendElem == 1 ) echo "checked" ?>></td> |
---|
486 |
<td><span class="label"><?php echo trim($oMLT->get("8", "Legend")); ?></span></td> |
---|
487 |
<td> |
---|
488 |
<span class="nnInputWrap"><select class="inputList" name="selLegendPos"> |
---|
489 |
<option class="inputList" value="TR"<?php if ( $selLegendPos == "TR") echo "SELECTED"; ?>><?php echo trim($oMLT->get("12", "Top Right")); ?></option> |
---|
490 |
<option class="inputList" value="TC"<?php if ( $selLegendPos == "TC") echo "SELECTED"; ?>><?php echo trim($oMLT->get("13", "Top Center")); ?></option> |
---|
491 |
<option class="inputList" value="TL"<?php if ( $selLegendPos == "TL") echo "SELECTED"; ?>><?php echo trim($oMLT->get("14", "Top Left")); ?></option> |
---|
492 |
<option class="inputList" value="BR"<?php if ( $selLegendPos == "BR") echo "SELECTED"; ?>><?php echo trim($oMLT->get("15", "Bottom Right")); ?></option> |
---|
493 |
<option class="inputList" value="BC"<?php if ( $selLegendPos == "BC") echo "SELECTED"; ?>><?php echo trim($oMLT->get("16", "Bottom Center")); ?></option> |
---|
494 |
<option class="inputList" value="BL"<?php if ( $selLegendPos == "BL") echo "SELECTED"; ?>><?php echo trim($oMLT->get("17", "Bottom Left")); ?></option> |
---|
495 |
</select></span> |
---|
496 |
</td> |
---|
497 |
<td colspan=2> </td> |
---|
498 |
<td colspan="2"><select name="legendFont" class="inputList" ><?php |
---|
499 |
foreach( $aFonts as $szName => $szFontFile ) |
---|
500 |
{ |
---|
501 |
$szSelected = ""; |
---|
502 |
if ($szName == $selLegendFont) |
---|
503 |
$szSelected = " SELECTED"; |
---|
504 |
echo "<OPTION class=\"inputList\" value=\"".$szName."\"$szSelected>".$szName."</OPTION>"; |
---|
505 |
} |
---|
506 |
?></select></td> |
---|
507 |
</tr> |
---|
508 |
--> |
---|
509 |
</table> |
---|
510 |
</td> |
---|
511 |
</tr> |
---|
512 |
</table> |
---|
513 |
<!--------------------------> |
---|
514 |
<!-- END MAP COMPOSITION --> |
---|
515 |
<!--------------------------> |
---|
516 |
<table class="contentArea" border="0" cellspacing="0" cellpadding="0" width="100%"> |
---|
517 |
<tr> |
---|
518 |
<td><hr size="1" noshade></td> |
---|
519 |
</tr> |
---|
520 |
</table> |
---|
521 |
<table class="contentArea" width="100%" border="0" cellpadding="4" cellspacing="0"> |
---|
522 |
<tr> |
---|
523 |
<td align="center"><p class="helpArea"><?php echo trim($oMLT->get("19", "Note: \"Final Map Size\" refers to the size of the map produced excluding title, extent values, and the margins surrounding the map. As a result the final image size itself may change depending on the values provided.")); ?></p></td> |
---|
524 |
</tr> |
---|
525 |
</table> |
---|
526 |
<!----------------------> |
---|
527 |
<!-- BEGIN MAP SETUP --> |
---|
528 |
<!----------------------> |
---|
529 |
<table class="contentArea" border="0" cellspacing="0" cellpadding="4" width="100%"> |
---|
530 |
<tr> |
---|
531 |
<td> |
---|
532 |
<table border="0" cellspacing="0" cellpadding="2"> |
---|
533 |
<tr> |
---|
534 |
<td colspan=4 align=left> <span class="label"><strong><?php echo trim($oMLT->get("18", "Format")); ?></strong></span></td> |
---|
535 |
</tr> |
---|
536 |
<tr> |
---|
537 |
<td align=right> <span class="label"><?php echo trim($oMLT->get("20", "Final Map Size")); ?>:</span></td> |
---|
538 |
<td colspan=3><input class="inputBox" type="text" name="txtWidthPix" size="4" value="<?php echo $txtWidthPix ?>"><span class="label"> <?php echo trim($oMLT->get("25", "Pixels")); ?> x </span><input class="inputBox" type="text" name="txtHeightPix" size="4" value="<?php echo $txtHeightPix ?>"><span class="label"> <?php echo trim($oMLT->get("25", "Pixels")); ?></span></td> |
---|
539 |
</tr> |
---|
540 |
<tr> |
---|
541 |
<td align=right> <span class="label"><?php echo trim($oMLT->get("21", "Title Font Size")); ?>:</span></td> |
---|
542 |
<td colspan=3> |
---|
543 |
<span class="nnInputWrap"><select class="inputList" name="selFontSize"> |
---|
544 |
<option class="inputList" value="8" <?php if ( $selFontSize == "8") echo "SELECTED"; ?>>8</option> |
---|
545 |
<option class="inputList" value="10" <?php if ( $selFontSize == "10") echo "SELECTED"; ?>>10</option> |
---|
546 |
<option class="inputList" value="12" <?php if ( $selFontSize == "12") echo "SELECTED"; ?>>12</option> |
---|
547 |
<option class="inputList" value="14" <?php if ( $selFontSize == "14") echo "SELECTED"; ?>>14</option> |
---|
548 |
</select></span> |
---|
549 |
</td> |
---|
550 |
</tr> |
---|
551 |
<tr> |
---|
552 |
<td align="right"> <span class="label"><?php echo trim($oMLT->get("22", "Output Type")); ?>: </span></td> |
---|
553 |
<td colspan=3> |
---|
554 |
<span class="nnInputWrap"><select class="inputList" name="selImageFormat"> |
---|
555 |
<?php |
---|
556 |
foreach ($gaMSImageTypes as $szImageType) |
---|
557 |
{ |
---|
558 |
echo "<option class=\"inputList\" value=\"$szImageType\""; |
---|
559 |
if ( $selImageFormat == $szImageType) |
---|
560 |
echo " SELECTED"; |
---|
561 |
echo ">$szImageType Document</option>"; |
---|
562 |
} |
---|
563 |
?> |
---|
564 |
</select></span> |
---|
565 |
</td> |
---|
566 |
</tr> |
---|
567 |
</table> |
---|
568 |
</td> |
---|
569 |
</tr> |
---|
570 |
</table> |
---|
571 |
<!--------------------> |
---|
572 |
<!-- END MAP SETUP --> |
---|
573 |
<!--------------------> |
---|
574 |
</td> |
---|
575 |
</tr> |
---|
576 |
<tr> |
---|
577 |
<td align="right"> |
---|
578 |
<!-------------------------> |
---|
579 |
<!-- BEGIN MAP DOWNLOAD --> |
---|
580 |
<!-------------------------> |
---|
581 |
<table border="0" cellspacing="0" cellpadding="0"> |
---|
582 |
<tr> |
---|
583 |
|
---|
584 |
<td><?php echo makeButton( 'download', '', 'PrintProduction', "images/icon_save.png", trim($oMLT->get("23", "Download")), trim($oMLT->get("23", |
---|
585 |
"Download")), array( 'width' => 110 ) ); ?></td> |
---|
586 |
<td> </td> |
---|
587 |
<td><?php echo makeButton( 'openPreview', '', 'PrintProduction', "images/icon_preview.png", trim($oMLT->get("24", "Printer Friendly Map")), trim($oMLT->get("24", "Printer FriendlyMap")), array( 'width' => 170 ) ); ?></td> |
---|
588 |
<td> </td> |
---|
589 |
<td><?php echo makeButton( 'CloseWindow', '', 'PrintProduction', "images/icon_close.png", trim($oCommonMLT->get("Close", "Close")), trim($oCommonMLT->get("CancelTip", "Close Dialog")), array( 'width' => 75 ) ); ?></td> |
---|
590 |
</tr> |
---|
591 |
</table> |
---|
592 |
<!-----------------------> |
---|
593 |
<!-- END MAP DOWNLOAD --> |
---|
594 |
<!-----------------------> |
---|
595 |
</td> |
---|
596 |
</tr> |
---|
597 |
</table> |
---|
598 |
|
---|
599 |
<!--------------------------> |
---|
600 |
<!-- ADD HIDDEN VARIABLES --> |
---|
601 |
<!--------------------------> |
---|
602 |
<input type=hidden name="bShowPreview" value="<?php if(isset($http_form_vars["bShowPreview"])) echo $http_form_vars["bShowPreview"] ?>"> |
---|
603 |
<input type=hidden name="bShowDownload" value="<?php if(isset($http_form_vars["bShowDownload"])) echo $http_form_vars["bShowDownload"] ?>"> |
---|
604 |
<!--<input type=hidden name="PrevStateKey" value="<?php /*echo $http_form_vars["PrevStateKey"]*/ ?>">--> |
---|
605 |
<!--<input type=hidden name="lang" value="<?php /*echo $http_form_vars["lang"]*/ ?>">--> |
---|
606 |
<input type=hidden name="sid" value="<?php echo $http_form_vars["sid"] ?>"> |
---|
607 |
<input type=hidden name="txtTitleDesc" value="<?php if(isset($txtTitleDesc)) echo restoreChars( $txtTitleDesc, true ) ?>"> |
---|
608 |
<input type=hidden name="txtFootDesc" value="<?php if(isset($txtFootDesc)) echo restoreChars( $txtFootDesc, true ) ?>"> |
---|
609 |
|
---|
610 |
</form> |
---|
611 |
</body> |
---|
612 |
</html> |
---|