link.attr("x1", function(d) { return d.source.x; }) .attr("y1", function(d) { return d.source.y; }) .attr("x2", function(d) { return d.target.x; }) .attr("y2", function(d) { return d.target.y; }); node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; }); }); }); </script> <?PHP }elseif($fmt == 'svg'){ if( !isset($_GET['print']) ){echo "<h2>SVG Map</h2>";} Map(); WriteSVG( Condition($in,$op,$st,$co,1) ); ?> <embed width="<?= $xm ?>" height="<?= $ym ?>" src="map/map_<?= $_SESSION[user] ?>.svg" name="SVG Map" type="image/svg+xml" style="display:block;margin-left:auto;margin-right:auto;border:1px solid black"> <?php }else{ if($fmt){ if( !isset($_GET['print']) ){ echo "<h2><a href=\"Reports-Combination.php?map=1\"><img src=\"img/16/chrt.png\" title=\"$sholbl $cmblbl Report\"></a> PNG Map</h2>"; } Map(); WritePNG( Condition($in,$op,$st,$co,1) ); }else{ if( !isset($_GET['print']) ){echo "<h3>PNG Map ($laslbl)</h3>";} } if (file_exists("map/map_$_SESSION[user].php")) { ?>
} ?> </select></td></tr> </table> </th> <th width=80 valign=top title="png is a common bitmap- svg a vector oriented format."><h3>Draw</h3> <input type=submit name="draw" value="png"><p> <input type=submit name="draw" value="svg"> </th></tr> </tr></table><p> <div align="center"> <? if($fmt == 'svg'){ echo "<h3>SVG Map</h3>"; Layout(); WriteSVG($_SESSION['user'],count($dev) ); ?> <a href="log/map_<?php echo $_SESSION[user]; ?> .svg">Download SVG</a><p> <embed width="<?php echo $xm; ?> " height="<?php echo $ym; ?> " src="log/map_<?php echo $_SESSION[user]; ?> .svg" name="SVG Map" type="image/svg+xml" style="border:1px solid black">