Example #1
0
 function getUTM()
 {
     return utm(-$this->lon, $this->lat);
 }
	<meta property="og:description" content="Hazte técnico laboral de <?php 
echo $programa;
?>
 en 3 semestres. Capacitamos auxiliares con ética y responsabilidad social. Preinscríbete ya sin Costo!">
	<meta property="og:image" content="http://www.congregacionmariana.org/lg/programas/images/og-facebook/auxiliar-en-enfermeria.jpg">
	<!-- InstanceEndEditable -->
    
	<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body>

	<!-- InstanceBeginEditable name="img-banner" -->img-enfermeria<!-- InstanceEndEditable -->
    
    <!-- InstanceBeginEditable name="input-utm_campaign" -->
    <input name="campaign" type="hidden" id="campaign" value="<?php 
echo utm(isset($_GET["utm_campaign"]) ? $_GET["utm_campaign"] : "", "{$programa} - Registro directo");
?>
">
    <!-- InstanceEndEditable -->
    
	<!-- InstanceBeginEditable name="titulo" -->
	<h1 class="programa__titulo">Técnico Laboral en: <span><?php 
echo $programa;
?>
</span></h1>
	<!-- InstanceEndEditable -->
    
    <!-- InstanceBeginEditable name="resolucion" -->
    	Resolucion de programa 733 de mayo - 05 -2009 por la secretaria de educación- concepto técnico favorable según  acuerdo No. 048 de diciembre  05-2008.
    <!-- InstanceEndEditable -->
    
Example #3
0
 function getMapFromServer($num = 0)
 {
     global $moduleRelPath, $mapServerActive;
     if (!$mapServerActive) {
         return;
     }
     require_once dirname(__FILE__) . "/CL_map.php";
     $filename = $this->getIGCFilename(1);
     $lines = @file($filename);
     if (!$lines) {
         return;
     }
     $i = 0;
     $min_lat = 1000;
     $max_lat = -1000;
     $min_lon = 1000;
     $max_lon = -1000;
     foreach ($lines as $line) {
         $line = trim($line);
         if (strlen($line) == 0) {
             continue;
         }
         if ($line[0] == 'B') {
             $thisPoint = new gpsPoint($line, $this->timezone);
             if ($thisPoint->lat > $max_lat) {
                 $max_lat = $thisPoint->lat;
             }
             if ($thisPoint->lat < $min_lat) {
                 $min_lat = $thisPoint->lat;
             }
             if ($thisPoint->lon > $max_lon) {
                 $max_lon = $thisPoint->lon;
             }
             if ($thisPoint->lon < $min_lon) {
                 $min_lon = $thisPoint->lon;
             }
             $i++;
         }
     }
     if ($i == 0) {
         return;
     }
     // no B records found
     $lat_diff = $max_lat - $min_lat;
     $lon_diff = $max_lon - $min_lon;
     DEBUG("MAP", 1, "MAP  min_lat: {$min_lat}, min_lon: {$min_lon}, max_lat: {$max_lat}, max_lon: {$max_lon} <BR>");
     if ($lat_diff > 20 || $lon_diff > 20) {
         return;
     }
     // too much
     list($MAP_LEFT, $MAP_TOP, $UTMzone, $UTMlatZone) = utm(-$max_lon, $max_lat);
     list($MAP_RIGHT, $MAP_BOTTOM, $UTMzone2, $UTMlatZone2) = utm(-$min_lon, $min_lat);
     $totalWidth1 = calc_distance($min_lat, $min_lon, $min_lat, $max_lon);
     $totalWidth2 = calc_distance($max_lat, $min_lon, $max_lat, $max_lon);
     $totalWidth = max($totalWidth1, $totalWidth2);
     $totalWidth_initial = $totalWidth;
     $totalHeight = $MAP_TOP - $MAP_BOTTOM;
     DEBUG("MAP", 1, "MAP (right, left) :" . $MAP_RIGHT . " [" . $UTMzone2 . "] ," . $MAP_LEFT . "[" . $UTMzone . "]<BR>");
     DEBUG("MAP", 1, "MAP (top, bottom) :" . $MAP_TOP . " ," . $MAP_BOTTOM . "<BR>");
     DEBUG("MAP", 1, "MAP (witdh,height) :" . $totalWidth . "," . $totalHeight . "<BR>");
     if ($totalWidth > $totalHeight) {
         // Landscape  style
         DEBUG("MAP", 1, "Landscape style <BR>");
         DEBUG("MAP", 1, "totalWidth: {$totalWidth}, totalHeight: {$totalHeight}, totalHeight/totalWidth: " . $totalHeight / $totalWidth . "<br>");
         if ($totalHeight / $totalWidth < 3 / 4) {
             $totalHeight = 3 / 4 * $totalWidth;
         }
     } else {
         // portait style
         DEBUG("MAP", 1, "Portait style <BR>");
         DEBUG("MAP", 1, "totalWidth: {$totalWidth}, totalHeight: {$totalHeight}, totalWidth/totalHeight: " . $totalWidth / $totalHeight . "<br>");
         if ($totalWidth / $totalHeight < 3 / 4) {
             $totalWidth = 3 / 4 * $totalHeight;
         }
     }
     $marginHor = 2000 + floor($totalWidth / 20000) * 1000 + ($totalWidth - $totalWidth_initial) / 2;
     //in meters
     $marginVert = 2000 + floor($totalHeight / 20000) * 1000 + ($totalHeight - ($MAP_TOP - $MAP_BOTTOM)) / 2;
     //in meters
     if ($marginHor > $marginVert) {
         // landscape style ...
         if ($marginVert / $marginHor < 3 / 4) {
             $marginVert = 3 / 4 * $marginHor;
         }
     } else {
         // portait style
         if ($marginHor / $marginVert < 3 / 4) {
             $marginHor = 3 / 4 * $marginVert;
         }
     }
     DEBUG("MAP", 1, "marginHor: {$marginHor}, marginVert:{$marginVert} <br>");
     $flMap = new flightMap($UTMzone, $UTMlatZone, $MAP_TOP + $marginVert, $MAP_LEFT - $marginHor, $UTMzone2, $UTMlatZone2, $MAP_BOTTOM - $marginVert, $MAP_RIGHT + $marginHor, 600, 800, $this->getIGCFilename(1), $this->getMapFilename(0), $this->is3D());
     DEBUG("MAP", 1, "MAP Required m/pixel = " . $flMap->metersPerPixel . "<br>");
     $flMap->drawFlightMap();
 }
	<meta name="description" content="">
	<meta name="keywords" content="">

	<meta property="og:title" content="Titulo de la publicacion">
	<meta property="og:image" content="http://www.dominio.com/imagen.jpg">
	<!-- TemplateEndEditable -->
    
	<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body>

	<!-- TemplateBeginEditable name="img-banner" -->img-enfermeria<!-- TemplateEndEditable -->
    
    <!-- TemplateBeginEditable name="input-utm_campaign" -->
    <input name="campaign" type="hidden" id="campaign" value="<?php 
echo utm(isset($_GET["utm_campaign"]) ? $_GET["utm_campaign"] : "", "Auxiliar en Enfermería - Registro directo");
?>
">
    <!-- TemplateEndEditable -->
    
	<!-- TemplateBeginEditable name="titulo" -->
	<h1 class="programa__titulo">Técnico Laboral por competencias en: <span>Auxiliar en Enfermeria</span></h1>
	<!-- TemplateEndEditable -->
    
    <!-- TemplateBeginEditable name="resolucion" -->
    	Este programa técnico está aprobado por la Secretaría de Educación de Bucaramanga con la Resolución No.733 del  5 de mayo del 2009, concepto técnico favorable según Acuerdo  No. 048 del 5 de diciembre del 2008 expedido por la Comisión Intersectorial para el Talento Humano en Salud.
    <!-- TemplateEndEditable -->
    
	<!-- TemplateBeginEditable name="horario" -->
	<div class="contenedor-flex  duracion-jornada">
		<div class="col-50">
echo utm(isset($_GET["utm_term"]) ? $_GET["utm_term"] : "", "");
?>
">

					<input name="contenido" type="hidden" id="contenido" value="<?php 
echo utm(isset($_GET["utm_content"]) ? $_GET["utm_content"] : "", "");
?>
">

					<input name="fecha" type="hidden" id="fecha" value="<?php 
echo fecha_registro();
?>
" />

					<input name="medio" type="hidden" id="medio" value="<?php 
echo utm(isset($_GET["medio"]) ? $_GET["medio"] : "", "organic/directo");
?>
">
                    

				</form>
			</div>

			<div class="programa">
				<h1 class="programa__titulo">Técnico Laboral por competencias en: <span>Auxiliar en Enfermeria</span></h1>
				<p class="programa__p">Este programa técnico está aprobado por la Secretaría de Educación de Bucaramanga con la Resolución No.733 del  5 de mayo del 2009, concepto técnico favorable según Acuerdo  No. 048 del 5 de diciembre del 2008 expedido por la Comisión Intersectorial para el Talento Humano en Salud.</p>
				<img class="programa__icontec" src="images/logos-icontec@2x.png" alt="Logos Icontec">
			</div>
		</div>

	</header>
Example #6
0
 function drawWaypoints()
 {
     $waypointSize = 3;
     $textwaypointColor = imagecolorallocate($this->img, 255, 255, 255);
     $textShadowCol = imagecolorallocate($this->img, 33, 33, 33);
     $waypoints = getWaypoints();
     foreach ($waypoints as $waypoint) {
         list($UTMx, $UTMy, $zone, $UTMlatZone) = utm(-$waypoint->lon, $waypoint->lat);
         //x==lon
         //y==lat
         if ($zone == $this->UTMzoneUpLeft && $this->MAP_TOP >= $UTMy && $this->MAP_LEFT <= $UTMx && $this->MAP_BOTTOM <= $UTMy && $this->MAP_RIGHT >= $UTMx) {
             list($x, $y) = $this->UTM2xy($UTMx, $UTMy);
             $y = $this->pixelHeight - $y;
             $this->renderWaypoint($x, $y, $waypoint->type);
             // imagefilledrectangle($this->img,$x-$waypointSize,$y-$waypointSize,$x+$waypointSize,$y+$waypointSize,$waypointColor );
             $this->putStringShadow(2, $x, $y + $waypointSize + 2, $waypoint->intName, $textwaypointColor, $textShadowCol);
         }
     }
 }
Example #7
0
} else {
    if ($op == "get_map") {
        require_once dirname(__FILE__) . "/CL_map.php";
        $min_lat = $_GET[min_lat] + 0;
        $max_lat = $_GET[max_lat] + 0;
        $min_lon = $_GET[min_lon] + 0;
        $max_lon = $_GET[max_lon] + 0;
        $lat_diff = $max_lat - $min_lat;
        $lon_diff = $max_lon - $min_lon;
        DEBUG("MAP", 1, "MAP  min_lat: {$min_lat}, min_lon: {$min_lon}, max_lat: {$max_lat}, max_lon: {$max_lon} <BR>");
        if ($lat_diff > 20 || $lon_diff > 20) {
            return;
        }
        // too much
        list($MAP_LEFT, $MAP_TOP, $UTMzone, $UTMlatZone) = utm(-$max_lon, $max_lat);
        list($MAP_RIGHT, $MAP_BOTTOM, $UTMzone2, $UTMlatZone2) = utm(-$min_lon, $min_lat);
        $totalWidth1 = calc_distance($min_lat, $min_lon, $min_lat, $max_lon);
        $totalWidth2 = calc_distance($max_lat, $min_lon, $max_lat, $max_lon);
        $totalWidth = max($totalWidth1, $totalWidth2);
        $totalWidth_initial = $totalWidth;
        $totalHeight = $MAP_TOP - $MAP_BOTTOM;
        DEBUG("MAP", 1, "MAP (right, left) :" . $MAP_RIGHT . " [" . $UTMzone2 . "] ," . $MAP_LEFT . "[" . $UTMzone . "]<BR>");
        DEBUG("MAP", 1, "MAP (top, bottom) :" . $MAP_TOP . " ," . $MAP_BOTTOM . "<BR>");
        DEBUG("MAP", 1, "MAP (witdh,height) :" . $totalWidth . "," . $totalHeight . "<BR>");
        if ($totalWidth > $totalHeight) {
            // Landscape  style
            DEBUG("MAP", 1, "Landscape style <BR>");
            DEBUG("MAP", 1, "totalWidth: {$totalWidth}, totalHeight: {$totalHeight}, totalHeight/totalWidth: " . $totalHeight / $totalWidth . "<br>");
            if ($totalHeight / $totalWidth < 3 / 4) {
                $totalHeight = 3 / 4 * $totalWidth;
            }