]> dev.renevier.net Git - syp.git/blobdiff - inc/templates_index.php
multi user administration
[syp.git] / inc / templates_index.php
index 6fd516b09e46f6e8ed956417c50c2afc65533049..64b965fe5181fb2b1663a3dd8ab3e05666ff6f01 100644 (file)
@@ -10,12 +10,17 @@ try {
 } catch (Exception $e) {
 }
 
-$bbox = $connection->mbr ();
 if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
     $thumbsmaxsize = THUMBSMAXSIZE;
 } else {
     $thumbsmaxsize = 400; // default value;
 }
+
+if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
+    $popupnearfeature = true;
+} else {
+    $popupnearfeature = false;
+}
 ?>
 <html lang="<?php echo $lang?>">
 <head>
@@ -25,8 +30,8 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
     <link rel="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
     <link rel="stylesheet" href="./media/syp.css" type="text/css">
     <style type="text/css">
-        .olPopup {
-            <?php printf("width: %dpx;\n", $thumbsmaxsize)?>
+        .olPopup {
+            <?php printf("_width: %dpx;\n", ($thumbsmaxsize + 40))?>
         }
         .olPopup img {
             <?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>
@@ -46,10 +51,9 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
             propulsedByLink: "<?php ptrans('propulsed by <a href=\"http://syp.renevier.net\">syp</a>')?>",
             noImageRegistered: "<?php ptrans('There is no image registered on this site.')?>"
         };
-        <?php
-            printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
-                    $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
-        ?>
+        var sypSettings =  {
+            popupNearfeature: <?php printf ($popupnearfeature ? "true": "false")?>
+        };
     </script>
     <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>
     <script src="./js/syp.js" type="text/javascript"></script>
@@ -73,5 +77,15 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
         <div id="map"></div>
         <div id="message"></div>
 
+    <div id="bigimg_container">
+    <div id="bigimg_transparency"></div>
+        <div id="bigimg_content">
+            <img id="bigimg" onclick="SYP.closeBigImage()">
+            <img id="bigimg_close" alt="<?php ptrans('close')?>" 
+                    src="openlayers/theme/default/img/close.gif" 
+                    onclick="SYP.closeBigImage()">
+        </div>
+    </div>
+
 </body>
 </html>