include ("../cpm/Funciones.inc");
registrarvisita("mapa.php");
require "class.FastTemplate.php3";
//mandatory parameters
if (!$MAP) {
$MAP = "/SRT/mapas/fondo.jpg";//name of the image file, absolute path required
$SMALLMAP = "/SRT/mapas/t". "fondo.jpg";//name of the small image file, absolute path required
}
else {
$SMALLMAP = "/SRT/mapas/t" . $MAP;
$MAP = "/SRT/mapas/" . $MAP;
}
if (!$MAPTITLE) {
$MAPNAME = "Volcanes de El Salvador";//name of the map for windows Title and head in the printing function
}
else {
$MAPNAME = $MAPTITLE;
}
//optionnal parameters for printing
$INFO = "info line1\r\ninfo line2";//text to show in the bottom of the map when printing. Use \r\n for return. Default : no info
$TTF_FONT = "unused here";// file *.ttf, contain the font to print the title and info in printing page. Default : tahoma.ttf
$TTF_SIZE = 25;// size of the font in printing page. Default : 20
$TITLECOLOR = "F0F0F0"; //color of the title in printing page. Use Hexadecimal code like in HTML standard (FF0000 = red for example). Default : 000000
$INFOCOLOR = "010101";//same as above but for info. Default : 000000
$tpl = new FastTemplate(".");
$tpl->define(array(main => "srt.html"));
//position all the variables needed by zoomap component
$tpl->assign(MAP,urlencode($MAP));
$tpl->assign(SMALLMAP,urlencode($SMALLMAP));
$tpl->assign(MAPNAME,urlencode($MAPNAME));
$tpl->assign(INFO,urlencode($INFO));
$tpl->assign(TTF_SIZE,urlencode($TTF_SIZE));
$tpl->assign(TITLECOLOR,urlencode($TITLECOLOR));
$tpl->assign(INFOCOLOR,urlencode($INFOCOLOR));
$tpl->parse(MAIN,"main");
$tpl->FastPrint(MAIN);
?>