<?php //echo "index.php"; die; //error_reporting(E_ALL); //CHANGE THIS HERE AND IN boot_constants.php define("DS", "/"); include "php_boot" . DS . "boot_main.php"; if (TFW_USEWHOLEPAGES != 1) { Tfw::IMPORT(FOL_HTML_SINGLE_FILES, "0010_html"); } else { //bug(get_included_files(),FOL_HTML_WHOLE_FILES); Tfw::IMPORT(FOL_HTML_WHOLE_FILES, "0000_page"); } //bug(get_included_files());
<?php Tfw::IMPORT("php_single_files", "dir_tree"); //bug(get_included_files());
<?php Tfw::IMPORT(FOL_PHP_CLASSES, "CGmap"); $oGmap = new CGMap("España", "Madrid", "Carretera de Villaverde a vallecas 46", "28021", "Villaverde bajo"); bug($oGmap->get_xml_status(), "status"); bug($oGmap->get_latitud(), "Latitud"); bug($oGmap->get_longitud(), "Longitud"); bug($oGmap->get_xml_object_responsed(), "object xml");
<?php Tfw::IMPORT("php_classes" . DS . "helpers", "helper_google_maps_3"); //Obtener latitud y longitud con los datos de una dirección. //El array debe llevar $arDireccion[] = array("pais" => "España", "direccion" => "Villaverde a vallecas 50", "zona" => "madrid", "cp" => ""); $arDireccion[] = array("direccion" => "La granja 8", "zona" => "alcobendas", "cp" => ""); $arDireccion[] = array("pais" => "España", "direccion" => "Conde de Peñalver 51", "zona" => "madrid", "cp" => "28006"); //bug("antes"); //error_reporting(E_ALL); //creamos el objeto //bug(get_included_files()); $oGoogleMap = new HelperGoogleMaps3(); //bug($oGoogleMap,"gmapinc",1); $oGoogleMap->set_delay_time(500); //bug($oGoogleMap,"googlemaps"); //lo configuramos para que no esté acotado. Es decir que si encuentra la //dirección 0 fuera de España. p.e Latinoamérica que obtenga los datos. //$oGoogleMap->dont_narrow(); //La función bug es un var_dump() customizado. //bug($oGoogleMap->get_latlong_from_address($arDireccion[0]),$arDireccion[0]["direccion"]); //bug($oGoogleMap->get_latlong_from_address($arDireccion[1]),$arDireccion[1]["direccion"]); //bug($oGoogleMap->get_latlong_from_address($arDireccion[2]),$arDireccion[2]["direccion"]); //Esta traza mostraria lo siguiente: //VARIABLE La granja 8: //array(2){["latitude"]=>float(40.5475437)["longitude"]=>float(-3.6420912)} //VARIABLE Conde de Peñalver 51: //array(2){["latitude"]=>float(40.4363505) ["longitude"]=>float(-3.685144)} //Los marcadores identifican a los globitos o chinchetas en el mapa. //El formato de los indices del array a pasar en el constructor debe ser el siguiente: //title : es equivalente al "tooltiptext" que aparece cuando se pasa el puntero
<?php Tfw::IMPORT(FOL_PHP_SINGLE_FILES, ""); ?> <!DOCTYPE html> <html> <head> <?php Tfw::IMPORT(FOL_HTML_SINGLE_FILES, "0001_html_head"); ?> </head> <?php Tfw::IMPORT(FOL_HTML_SINGLE_FILES, "0000_body"); ?> </html>
<?php //Libreria con elementos globales como: funciones, constantes y la clase lite Tfw include "../php_boot/boot_main.php"; //IMPORT_VENDOR lo que hace es un include de la clase "fpdf" recuperandolo de la carpeta /proy_anytest/mix_vendors/Fpdf17 Tfw::IMPORT_VENDOR("Fpdf17", "fpdf"); Tfw::IMPORT(FOL_PHP_CLASSES, "CCliente"); Tfw::IMPORT(FOL_PHP_CLASSES, "CFactura"); //Heredo de la clase FPDF //http://www.fpdf.org/ Version: 1.7 class CPdf extends FPDF { /*@author: Eduardo Acevedo Farje. *www.eduardoaf.com */ //El código ascci del € private $_AsciiEuro; //r: Ruta. La ruta de la imágen a insertar en el PDF private $_rImagen; private $_sEmpresaEmisora; private $_sCif; private $_oCliente; private $_oFactura; public function __construct(CCliente $oCliente, CFactura $oFactura, $sEmpresaEmisora = "", $sCif = "", $rImagen = "../Images/LogoHoja.jpg", $cOrientacion = "P", $sUnidDistancia = "mm", $sTamanoFolio = "A4") { parent::__construct($cOrientacion, $sUnidDistancia, $sTamanoFolio); $this->_AsciiEuro = chr(128); $this->_sEmpresaEmisora = $sEmpresaEmisora; $this->_sCif = $sCif; $this->_rImagen = $rImagen; $this->_oCliente = $oCliente;
<?php Tfw::IMPORT(FOL_MIX_VENDORS . DS . "whatsapi", "whatsapp");