#!/usr/bin/perl
use strict;
$ENV{DOCUMENT_ROOT}.='/' if $ENV{DOCUMENT_ROOT};
my $html;
require $ENV{DOCUMENT_ROOT}.'_adm/incs/clAeci.pm';
require $ENV{DOCUMENT_ROOT}.'_adm/incs/Generales.pm';
my $ref=Generales::Entrada();
open (ARCHI, $ENV{DOCUMENT_ROOT}.'institucional/tpl/aeci.htm')||print $!."- aeci.pl
\n";
while (my $linea = ){
$html .= $linea;
}
close ARCHI;
$html =Generales::sacaLineas($html);
#############################################################################################
my $oTxt=clAeci->new();
$oTxt->buscar();
$html=~s//$oTxt->{cTitulo}/gi;
$html=~s//$oTxt->{cCopete}/gi;
$html=~s//$oTxt->{cCuerpo}/gi;
$html=~s//$oTxt->{urlFoto}/gi;
$html=~s//$oTxt->{epigrafeFoto}/gi;
########################## IMPRIMISION ############################################
$html =Generales::procesarDinamico($html);
$html =Generales::poneLineas($html);
Generales::imprimir($html);
#############################################################################################