[Pmap-commits] r3 - / trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 30 07:03:24 CET 2006


Author: cavallini
Date: 2006-10-30 07:03:23 +0100 (Mon, 30 Oct 2006)
New Revision: 3

Added:
   trunk/
   trunk/README.txt
   trunk/blank.html
   trunk/config/
   trunk/doc/
   trunk/download.phtml
   trunk/downloaddlg.phtml
   trunk/images/
   trunk/incphp/
   trunk/index.html
   trunk/info.phtml
   trunk/javascript/
   trunk/map.phtml
   trunk/printdlg.phtml
   trunk/printmap.phtml
   trunk/templates/
   trunk/util/
Removed:
   README.txt
   blank.html
   config/
   doc/
   download.phtml
   downloaddlg.phtml
   images/
   incphp/
   index.html
   info.phtml
   javascript/
   map.phtml
   printdlg.phtml
   printmap.phtml
   templates/
   util/
Log:


Deleted: README.txt
===================================================================
--- README.txt	2006-10-29 15:56:52 UTC (rev 2)
+++ README.txt	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,21 +0,0 @@
-
-----------------------------------
-        pmap README
-----------------------------------
-
-This is pmap, a community version of p.mapper:
-http://www.pmapper.net
-You are welcome to join the development team at:
-http://pmap.wald.intevation.org/
-
-See directory /doc for
-
-* quick install instructions (quick_install.txt)
-
-* documentation (manual.html)
-
-* acknowledgements (acknowledgements.txt)
-
-* license (license.txt)
-
-* change log (changelog_versions.txt)

Deleted: blank.html
===================================================================
--- blank.html	2006-10-29 15:56:52 UTC (rev 2)
+++ blank.html	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,8 +0,0 @@
-<HTML>
-<HEAD>
- <link rel="stylesheet" href="templates/default.css"><style type="text/css"></style>
-</HEAD>
-<BODY>
-</BODY>
-</HTML>
-

Deleted: download.phtml
===================================================================
--- download.phtml	2006-10-29 15:56:52 UTC (rev 2)
+++ download.phtml	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,86 +0,0 @@
-<?php
-require_once("config/startup_config.php");
-require_once("$PM_INCPHP/group.php");
-session_start();
-require_once("$PM_INCPHP/globals.php");
-require_once("$PM_INCPHP/common.php");
-require_once("$PM_INCPHP/map.php");
-require_once("$PM_INCPHP/print/print.php");
-
-
-// GET NEW DPI FOR OUT IMG
-if (isset ($_POST["dldpi"])) {
-   $imgDPI = $_POST["dldpi"];
-} else {
-   $imgDPI = 300; 
-}
-
-if (isset ($_POST["imgFormat"])) {
-    $imgFormat = $_POST["imgFormat"];
-} else {
-    $imgFormat = false;
-}
-
-// CALCULATE NEW MAP SIZES
-$mapfileDPI = $map->resolution;
-$mapW = $_SESSION["mapwidth"];
-$mapH = $_SESSION["mapheight"];
-
-$dpiFactor = $imgDPI/$mapfileDPI;
-$newMapW = round($mapW * $dpiFactor);
-$newMapH = round($mapH * $dpiFactor);
-
-
-// APPLY TO MAP
-$map->set("width", $newMapW);
-$map->set("height", $newMapH);
-$map->set("resolution", $imgDPI);
-
-$scale = round($_SESSION["geo_scale"]);
-
-
-// APPLY ON VISIBLE GROUPS/LAYERS
-$groups = $_SESSION["groups"];
-// call function
-setGroups($map, $groups, 0, 1);
-
-/*   
-// Show also feature highlight
-// ADD RESULTLAYERS
-if (isset($_SESSION["resultlayers"])) {
-    $resultlayers = $_SESSION["resultlayers"];
-    foreach ($resultlayers as $reslayer => $shpindexes) {
-        addResultLayer($map, $reslayer, $shpindexes);
-    }
-} 
-*/
-
-
-// GET MAP IMAGE URL
-$printMap = new PrintMap($map, $newMapW, $newMapH, $scale, "dl", $imgDPI, $imgFormat);
-$printUrlList = $printMap->returnImgUrlList(); 
-$printmapUrl = $printUrlList[0];
-
-
-if ($imgFormat):
-    header('Content-type: image/tiff');
-    header('Content-Disposition: attachment; filename="mapdownload.tif"');
-    readfile($printmapUrl);
-
-else:  
-    $printlegUrl = $printUrlList[1];
-    ?>
-    <HTML>
-    <HEAD>
-    <TITLE>Download</TITLE>
-    </HEAD>
-    <BODY>
-     <?php echo ("<img src='$printmapUrl' border=0> $basePath <br><br> <!-- <img src='$printlegUrl' border=0> $basePath -->") ?>
-    </BODY>
-    </HTML>
-
-<?php
- endif;
-?> 
-
-

Deleted: downloaddlg.phtml
===================================================================
--- downloaddlg.phtml	2006-10-29 15:56:52 UTC (rev 2)
+++ downloaddlg.phtml	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,57 +0,0 @@
-<?php
-session_start();
-
-require_once($_SESSION['PM_INCPHP'] . "/common.php");
-require_once($_SESSION['PM_INCPHP'] . "/globals.php");
-
-header("Content-type: text/html; charset=$defCharset");
-
-if (isset($_SESSION['dpiLevels'])) {
-    $dpiList = preg_split('/[\s,]+/', $_SESSION['dpiLevels']);
-} else {
-    $dpiList = array(100, 200, 300);
-}
-
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $gLanguage ?>" xml:lang="<?php echo $gLanguage ?>">
-
-<head>
- <script type="text/javascript">
-    function initPage() {
-        document.getElementById('dlform').target = 'dlwin';
-        window.focus();
-    }
- </script>
- <title>Download</title>
- <link rel="stylesheet" href="templates/print.css" type="text/css" />
-</head>
-
-<body class="PRDLG" onload="initPage()">
- 
-<h4> <?php echo (_p("Map Resolution for Download")) ?> :</h4>
-<form id="dlform" action="download.phtml" method="post">
- <p>
-  <?php
-    foreach($dpiList as $d) {
-        echo ("<input type=\"radio\" name=\"dldpi\" value=\"$d\" />$d DPI<br />\n");
-    }
-  ?>
-  </p>
-  <p>
-   <input type="checkbox" name="imgFormat" value="GTiff" />GeoTIFF
-  </p>
-  <p>
-   <input type="button" value=" OK " onclick="javascript:submit();self.close()" />
-  </p>
-  <p>  
-   <?php echo ("<input type=\"hidden\" name=\"" . ini_get("session.name") . "\" value=\"" . session_id() . "\" />") ?>
-  </p>
-</form>
-
-</body>
-</html>
-
-
-
-

Deleted: index.html
===================================================================
--- index.html	2006-10-29 15:56:52 UTC (rev 2)
+++ index.html	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,33 +0,0 @@
-<HTML>
-<HEAD>
-<SCRIPT LANGUAGE="JavaScript1.2">
-  function openFrames(sizevals, gLanguage, config, startParameters){
-    var sizearray = sizevals.split('#');
-    var winwidth  = parseInt(sizearray[0]);
-    var winheight = parseInt(sizearray[1]);
-    var winsize   = sizearray[2];
-    myw=window.open("map.phtml?winsize=" + winsize + "&language=" + gLanguage + "&config=" + config + startParameters, "MapServerTestSuite", "width=" + winwidth + ",height=" + winheight + ",menubar=no,scrollbar=auto,resizable=yes,top=0,left=0,status=yes");
-  }
-</SCRIPT>
-</HEAD>
-<HTML>
-<BODY bgcolor="white" >
-<h2> Examples how to start the application from hyperlinks</h2>
-
-
-<h3>Starting with different window size, style and language:</h3>
-<a href="javascript:openFrames('820#580#small', 'en', '', 'flat')">Small, layer flat view, English</a><p>
-<a href="javascript:openFrames('960#700#medium', 'de', '', '')">Medium, layer tree view, German </a><p>
-<a href="javascript:openFrames('1100#860#large', 'fr', '', '')">Large, layer tree view, French </a><p>
-<a href="javascript:openFrames('960#700#medium', 'en', '', 'world')">Medium, layer flat view, EN, World </a><p>
-<p><br><br>
-
-<h3>Zoom to pre-defined extent:</h3>
-<a href="javascript:openFrames('820#580#small', 'en', '', '&me=3678982,2134585,4721175,3092410')">Extent defined manually (x/y min/max)</a><p>
-<a href="javascript:openFrames('960#700#medium', 'it', '', '&zoomLayer=countries&zoomQuery=NAME at 1@Italy at 1@1')">Extent from feature (countries, Italy), Italian</a><p>
-<a href="javascript:openFrames('960#700#medium', 'it', '', '&zoomLayer=countries&zoomQuery=name at 1@Italy at 0@1')">Extent from feature, NO highlight</a><p>
-<a href="javascript:openFrames('960#700#medium', 'it', '', '&zoomLayer=countries&zoomQuery=NAME at 1@Italy at 0@0')">Extent from feature, NO highlight, NO max extent</a><p>
-<br>
-
-</BODY>
-</HTML>

Deleted: info.phtml
===================================================================
--- info.phtml	2006-10-29 15:56:52 UTC (rev 2)
+++ info.phtml	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,60 +0,0 @@
-<?php
-/*********************************************************************************
- Copyright (c) 2002-2006 Armin Burger
- 
- Permission is hereby granted, free of charge, to any person obtaining 
- a copy of this software and associated documentation files (the "Software"), 
- to deal in the Software without restriction, including without limitation 
- the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- and/or sell copies of the Software, and to permit persons to whom the Software 
- is furnished to do so, subject to the following conditions:
- 
- The above copyright notice and this permission notice shall be included 
- in all copies or substantial portions of the Software.
- 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR 
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-**********************************************************************************/
-session_start();
-require_once($_SESSION['PM_INCPHP'] . "/common.php");
-require_once($_SESSION['PM_INCPHP'] . "/globals.php");
-
-header("Content-type: text/html; charset=$defCharset");
-
-$infoWin = $_SESSION['infoWin'];
-$alignQueryResults = $_SESSION['alignQueryResults'];
-
-?>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $gLanguage ?>" xml:lang="<?php echo $gLanguage ?>">
-
-<head>
-<title><?php echo (_p("Query Results")) ?></title>
- <script type="text/javascript" src="<?php echo $_SESSION['PM_JAVASCRIPT'] ?>/common.js"></script>
- <script type="text/javascript" src="<?php echo $_SESSION['PM_JAVASCRIPT'] ?>/sorttable.js"></script>
- <script type="text/javascript" src="<?php echo $_SESSION['PM_JAVASCRIPT'] ?>/custom.js"></script>
- <script type="text/javascript" src="<?php echo $_SESSION['PM_JAVASCRIPT'] ?>/pmjson.js"></script>
- <script type="text/javascript" src="<?php echo ($_SESSION['PM_INCPHP_LOCATION'] . "/js_custom.php?" . SID) ?>"></script>
-
- <script type="text/javascript">
-   var SID = '<?php echo SID ?>';
-   var resultJSON = <?php  echo $_SESSION['JSON_Results']; ?>;
-
- </script>
- 
- <link rel="stylesheet" href="templates/default.css" type="text/css" />
- <link rel="stylesheet" href="templates/query.css" type="text/css" />
-</head>
-
-<body  onload="writeQResult(); window.focus(); <?php if ($alignQueryResults) echo "ts_alignTables();" ?>">
-
-
-<div id="queryresult"></div>
-
-</body>
-</html>

Deleted: map.phtml
===================================================================
--- map.phtml	2006-10-29 15:56:52 UTC (rev 2)
+++ map.phtml	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,245 +0,0 @@
-<?php
-/*********************************************************************************
- Copyright (c) 2003-2006 Armin Burger
-
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of this software and associated documentation files (the "Software"),
- to deal in the Software without restriction, including without limitation
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
- and/or sell copies of the Software, and to permit persons to whom the Software
- is furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included
- in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-**********************************************************************************/
-/*
-header("Cache-Control: no-cache, must-revalidate, private, pre-check=0, post-check=0, max-age=0");
-header("Expires: " . gmdate('D, d M Y H:i:s', time()) . " GMT");
-header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
-header("Pragma: no-cache");
-*/
-
-session_start();
-
-// INCLUDE PHP FILES
-require_once("config/startup_config.php");
-require_once("$PM_INCPHP/group.php");
-require_once("$PM_INCPHP/globals.php");
-require_once("$PM_INCPHP/common.php");
-require_once("$PM_INCPHP/custom.php");
-require_once("$PM_INCPHP/util.php");
-require_once("$PM_INCPHP/init/initmap.php");
-require_once("$PM_INCPHP/legend.php");
-include_once("$PM_INCPHP/init/init.php");
-include_once("config/$PM_PHP_CONFIG");
-
-
-header("Content-type: text/html; charset=$defCharset");
-
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $gLanguage ?>" xml:lang="<?php echo $gLanguage ?>">
-
-<head>
- <meta name="description" content="p.mapper - MapServer PHP/MapScript Demo Suite" />
- <meta name="author" content="Armin Burger" />
- <meta name="keywords" content="p.mapper, pmapper, MapServer, PHP, MapScript" />
-
- <title><?php echo $pmTitle ?></title>
-
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/common.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/pmapper.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/zoombox.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/mapserver.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/wz_jsgraphics.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/geometry.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/pmdraw.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/toc.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/zslider.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/xmlhttp.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/custom.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/pmjson.js"></script>
- <script type="text/javascript" src="<?php echo $PM_JAVASCRIPT ?>/dragresize.js"></script>
- <script type="text/javascript" src="<?php echo $PM_INCPHP_LOCATION ?>/js_custom.php?<?php echo SID ?>"></script>
- <script type="text/javascript" src="config/<?php echo "$PM_JS_CONFIG?" . SID ?>"></script>
- 
- <script type="text/javascript">
-	
-    var PM_XAJAX_LOCATION = '<?php echo $PM_XAJAX_LOCATION ?>';
-    
-    var gLanguage = '<?php echo $gLanguage ?>';
-    var config = '<?php echo trim($config) ?>';
-    var tocStyle = '<?php echo $_SESSION["tocStyle"] ?>';
-    var mapW = <?php echo $mapW ?>;
-    var mapH = <?php echo $mapH ?>;
-    var refW = <?php echo $refW ?>;
-    var refH = <?php echo $refH ?>;
-    var SID = '<?php echo SID ?>';
-    var infoWin = '<?php echo $infoWin ?>';
-
-    var minx_geo, maxy_geo;
-    var xdelta_geo, ydelta_geo;
-    var dgeo_x = <?php echo $dgeo['x'] ?>;
-    var dgeo_y = <?php echo $dgeo['y'] ?>;
-    var dgeo_c = <?php echo $dgeo['c'] ?>;
-    var s1 = <?php echo $maxScale ?>;
-    var s2 = <?php echo $minScale ?>;
-
-    var enableRightMousePan = <?php echo $enableRightMousePan ?>;
-
-    var layerAutoRefresh = <?php echo ($_SESSION['layerAutoRefresh']) ?>;
-
-	<?php echo $jsArrays ?>
-	
- 
- </script>
- 
- <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
- <link rel="stylesheet" href="templates/default.css" type="text/css" />
- <link rel="stylesheet" href="templates/layout.css" type="text/css" />
- <link rel="StyleSheet" href="templates/dtree.css" type="text/css" />
- <link rel="StyleSheet" href="templates/toc.css" type="text/css" />
-</head>
-
-<body class="BGCLG" onload="init();">
-
-<!-- TOP AND BOTTOM OF WINDOW -->
-<div id="top" class="FRAME1">
-    <table width="100%">
-     <tr>
-      <td style="width:120px; white-space: nowrap;">
-      <a href="http://pmapper.sourceforge.net" id="home_href" title="p.mapper homepage" onclick="this.target = '_blank';"><img src="images/logo.gif" alt="logo" /></a>      
-      </td>
-      <td class="HEADING1"> <?php echo $pmHeading ?>  </td>
-      <td ><a href="" id="current_maplink"><?php echo _p("Link to current map") ?></a></td>
-     </tr>
-    </table>
-</div>
-
-<div id="bottom" class="FRAME1">
-    <form id="searchForm" action="blank.html" onsubmit="submitSearch()">
-      <div style="float:left; margin:8px 10px 1px 3px ;">
-        <div id="bottom1" style="position:absolute; left:20px; top:7px"></div>
-        <div id="bottom2" style="position:absolute; left:140px; top:8px; width:400px"></div>
-      </div>
-      <div style="float:right; margin:4px 10px 1px 3px ;">
-        <a href="http://validator.w3.org/check?uri=referer"><img
-            src="images/valid-xhtml10.png"
-            alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
-      </div>
-      <div style="float:right; margin:4px 10px 1px 3px ;"><a href="http://mapserver.gis.umn.edu" id="mapserver_href_2" onclick="this.target = '_blank';"><img src="images/powered_mapserver.png" title="UMN MapServer homepage" alt="logo map server" /></a></div>
-      <div style="float:right; margin:8px 10px 1px 3px ;"><?php echo _p("Geo-data source") ?>: DCW; <a href="http://www.geotorrent.org" id="geotorrent_href" onclick="this.target = '_new';">geoTorrent</a></div>
-    </form>
-</div>
-
-
-<!-- MAIN MAP WITH NAVIGATION BARS-->
-<div id="mapFrame" style="position:absolute; left:20px; top:45px; width:580px; height:500px">
-
-    <!-- TOP WITH SCALE AND SLIDER-->
-    <div id="topMapFrame" class="TOOLFRAME" style="height: 35px;">
-        <form id="scaleform" action="javascript:zoom2scale(document.getElementById('scaleinput').value)">
-        <div style="position:absolute; left:10px; top:5px; margin:3px 4px 4px 3px ;"><?php echo (_p("Scale")) ?>
-            <input type="text" id="scaleinput" name="scale" size="10" value="" />
-        </div>
-        </form>
-
-        <div id="sliderArea" style="position:absolute; left:250px; top:5px; margin-top:5px; white-space: nowrap;">
-            <div style="position:absolute; left:5px; ">Zoom &#177; &nbsp;<img src="images/buttons/zoomminus.gif" alt="zoom out" /></div>
-            <div id="zslider" style="position:absolute; left:70px;"></div>
-            <div style="position:absolute; left:240px; "><img src="images/buttons/zoomplus.gif" alt="zoom in" /></div>
-        </div>
-    </div>
-
-    <!-- MAIN MAP -->
-    <div id="map" style="left:0px; top:35px">
-        <div id="scalebarimg" style="position:absolute; left:5px; top:0px; z-index:90"></div>
-        <div id="showcoords" class="showcoords"><div id="xcoord"></div><div id="ycoord"></div></div>
-        <div id="iqueryLayer" style="position:absolute; right:10px; top:2px;"></div>
-        <div id="mapimgLayer" style="position:absolute; left:0px; top:0px; <?php echo ("width:" . $mapW . "px; height:" . $mapH . "px") ?>; z-index:0; overflow: hidden">
-                <img id="mapImg"   src="images/pixel.gif"  style="overflow:hidden; <?php echo ("width:" . $mapW ."px; height:" . $mapH ."px") ?>" alt="map image" />
-        </div>
-        <div id="measureLayer" class="measureLayer"></div>
-        <div id="zoombox" class="zoombox"></div>
-        <div id="loading" style="position: absolute; z-index: 96;
-             <?php echo ("left:" . ($mapW/2 - 60) . "px; top:" . ($mapH/2 -20) ."px;\"") ?> >
-             <img id="pixel" src="images/loading.gif" width="118" height="32" alt="loading" />
-        </div>
-        
-    </div>
-
-    <!-- TOOL BAR -->
-    <div id="toolBar" class="TOOLFRAME"   style="width:40px; height:500px">
-        <?php  writebuttons($buttons, $toolBarOrientation); ?>
-    </div>
-
-    <div id="bottomMapFrame" class="TOOLFRAME" style="height: 35px;"></div>
-</div>
-
-
-<!-- LEGEND/TOC -->
-<form id="layerform" method="get" action="">
-<div id="toc" class="TOC" style="position:absolute; left:610px; top:45px; width:220px; height:350px; overflow: auto; z-index:0;">
-    <table width="100%" border="0" cellspacing="0" cellpadding="2">
-      <?php
-        if ($_SESSION['layerAutoRefresh'] == 0) {
-            echo ("<tr><td class=\"TOOLFRAME\"><input class=\"button_off\" type=\"button\"
-                    onClick=\"changeLayersDraw()\"
-                    onmouseover=\"changeButtonClr(this, 'over')\"
-                    onmouseout=\"changeButtonClr (this, 'out')\"
-                    size=\"10\" value=\"" . _p("Refresh Map") . "\" /></td></td></tr>");
-        }
-      ?>
-     <tr>
-      <td>
-       <div></div>
-      </td>
-     </tr>
-    </table>
-</div>
-</form>
-
-
-<!-- REFERENCE MAP -->
-<div id="refmap" class="refmap" style="position:absolute; left:615px; top:400px;
-     <?php echo (" width:{$refW}px; height:{$refH}px") ?>; z-index:10"  >
-    <img id="refMapImg" <?php echo (" src=\"images/$refImg\" width=\"$refW\"  height=\"$refH\"")?> onmouseover="startUpRef()"  alt="reference" />
-    <div id="refsliderbox" class="sliderbox"></div>
-    <div id="refbox" class="refbox"></div>
-    <div id="refzoombox" class="zoombox"></div>
-    <div id="refcross" class="refcross"><img id="refcrossimg" src="images/refcross.gif"  alt="reference cross image" /> </div>
-</div>
-<div id="refmapBG" class="TOOLFRAME" style="position:absolute; left:610px; top:400px; z-index:2; width:220px; <?php echo (" height:{$refH}px") ?>"></div>
-
-
-<!-- IFRAME FOR IDENTIFY -->
-<?php if($infoWin == "frame"): ?>
-  <div id="infoFrame" name="infoFrame" style="visibility:visible; border:1px; position:absolute; left:20px; top:554px; width:810px; height:100px; z-index:10"></div>
-<?php endif; ?>
-
-
-<!-- FORM FOR STORING STATUS VARIABLES -->
-<form id="varform" action="">
- <div>
- <input type="hidden" name="mode" value="map" />
- <input type="hidden" name="zoom_type" value="zoomrect" />
- <input type="hidden" name="zoom_factor" value="1" />
- <input type="hidden" name="maction" value="box" />
- <input type="hidden" name="zoomselected" value="0" />
- <input type="hidden" name="tool" value="zoomin" />
- </div>
-</form>
-
-<script type="text/javascript">
-    // Create drawing object for measure function
-    jg = new jsGraphics('measureLayer');
-</script>
-</body>
-</html>

Deleted: printdlg.phtml
===================================================================
--- printdlg.phtml	2006-10-29 15:56:52 UTC (rev 2)
+++ printdlg.phtml	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,43 +0,0 @@
-<?php
-session_start();
-require_once($_SESSION['PM_INCPHP'] . "/common.php");
-require_once($_SESSION['PM_INCPHP'] . "/globals.php");
-
-$geo_scale0 = round($_SESSION["geo_scale"]);
-$geo_scale = round($geo_scale0, -1 * (strlen($geo_scale0) - 2));
-
-header("Content-type: text/html; charset=$defCharset");
-
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $gLanguage ?>" xml:lang="<?php echo $gLanguage ?>">
-
-<head>
-<script type="text/javascript">
-    function initPage() {
-        document.getElementById('choosescale').target = 'blank';
-        window.focus();
-    }
-</script>
-
-<link rel="stylesheet" href="templates/print.css" type="text/css" />
-
-<title><?php echo (_p("Print Map"))?></title>
-</head>
-<body class="PRDLG" onload="initPage()">
-<form action="printmap.phtml" id="choosescale" method="get" >
-
- <table border="0" cellspacing="3" cellpadding="2">
-  <tr><td><b><?php echo (_p("Print Settings"))?></b></td></tr>
-  <tr><td><?php echo (_p("Set Scale"))?> &nbsp;&nbsp;1: <input type="text" name="prscale" value="<?php echo $geo_scale ?>" /></td></tr>
-  <tr><td><input type=checkbox name="prefmap" value="on" checked><?php echo (_p("With Overview Map"))?></td></tr>
-  <tr><td><input type="checkbox" name="docformat" value="pdf" /><?php echo (_p("Create PDF Document"))?></td></tr>
-  <tr><td><hr></td></tr>
-  <tr><td><input type="button"  value="<?php echo (_p("Create Print Page")) ?>"  onclick="submit();setTimeout('self.close()', 1000)" /></td></tr>
-  <tr><td> 
-    <?php echo ("<input type=\"hidden\" name=\"" . ini_get("session.name") . "\" value=\"" . session_id() . "\" />") ?>
-  </td></tr>  
-</table>
-</form>
-</body>
-</html>
\ No newline at end of file

Deleted: printmap.phtml
===================================================================
--- printmap.phtml	2006-10-29 15:56:52 UTC (rev 2)
+++ printmap.phtml	2006-10-30 06:03:23 UTC (rev 3)
@@ -1,87 +0,0 @@
-<?php
-require_once("config/startup_config.php");
-require_once("$PM_INCPHP/group.php");
-session_start();
-session_cache_limiter('private');
-require_once("$PM_INCPHP/globals.php");
-require_once("$PM_INCPHP/common.php");
-require_once("$PM_INCPHP/map.php");
-require_once("$PM_INCPHP/print/print.php");
-require_once("$PM_INCPHP/print/pdfprint.php");
-
-
-$prScale = $_GET["prscale"];
-if (isset($_GET["prTitle"])) {
-    $prTitle = $_GET["prTitle"];
-} else {
-    $prTitle = _p("Print Title");
-}
-
-if (isset($_GET["prefmap"])) {
-    $prefmap = true;
-} else {
-    $prefmap = false;
-}
-
-
-//
-// Create PRINT PAGE: PDF or HTML
-//
-
-// =====> PDF <=====
-if (isset($_GET["docformat"])):
-    //define('FPDF_FONTPATH','./incphp/fonts/');
-    
-    $pdf = new PDF($map, $prScale, 'P', 'pt', 'A4', $prefmap);
-    //Header('Pragma: public');
-    //header('Content-type: application/pdf');
-    $pdf->Output();
-    exit();
-
-// =====> HTML <=====
-else :
-    $printMap = new PrintMap($map, 630, 540, $prScale, "html", 250, 0, $prefmap);
-    $printUrlList = $printMap->returnImgUrlList(); 
-    $legendString = $printMap->returnLegStr();
-    
-    header("Content-Type: text/html; charset=$defCharset");
-
-?>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $gLanguage ?>" xml:lang="<?php echo $gLanguage ?>">
-
-<head>
-<link rel="stylesheet" href="templates/print.css" type="text/css" />
-<title><?php echo (_p("Print View")) ?></title>
-</head>
-<body>
-
-<table border="2" cellpadding="0" cellspacing="0">
- <tr>
-  <td>
-   <table border="0" cellpadding="2" cellspacing="1" width="100%" class="PRTITLE" >
-    <tr>
-     <td><img src="images/logo.png" alt="logo" /></td>
-     <td class="PRTITLE"><?php echo ($prTitle) ?></td>
-    </tr>
-   </table>
-  </td>
- </tr>      
- <tr><td><img src="<?php echo $printUrlList[0] ?>" alt="map" /></td></tr>
- <tr><td align="left" valign="middle"><?php echo ("&nbsp;&nbsp;" . _p("Scale") . " 1: $prScale") ?></td></tr>
- <tr>
-   <td>
-    <table>
-     <?php
-       echo $legendString;
-     ?>
-    </table>
-  </td>
- </tr>
-</table>
-
-</body>
-</html>
-
-<?php endif; ?>

Copied: trunk/README.txt (from rev 2, README.txt)

Copied: trunk/blank.html (from rev 2, blank.html)

Copied: trunk/config (from rev 2, config)

Copied: trunk/doc (from rev 2, doc)

Copied: trunk/download.phtml (from rev 2, download.phtml)

Copied: trunk/downloaddlg.phtml (from rev 2, downloaddlg.phtml)

Copied: trunk/images (from rev 2, images)

Copied: trunk/incphp (from rev 2, incphp)

Copied: trunk/index.html (from rev 2, index.html)

Copied: trunk/info.phtml (from rev 2, info.phtml)

Copied: trunk/javascript (from rev 2, javascript)

Copied: trunk/map.phtml (from rev 2, map.phtml)

Copied: trunk/printdlg.phtml (from rev 2, printdlg.phtml)

Copied: trunk/printmap.phtml (from rev 2, printmap.phtml)

Copied: trunk/templates (from rev 2, templates)

Copied: trunk/util (from rev 2, util)



More information about the Pmap-commits mailing list