#!/usr/bin/perl use strict; my %para; my $html; my $linea; $ENV{DOCUMENT_ROOT}.='/' if $ENV{DOCUMENT_ROOT}; my $hoy = time; require $ENV{DOCUMENT_ROOT}.'_adm/incs/Generales.pm'; open (ARCHI, $ENV{DOCUMENT_ROOT}.'contacto/tpl/registrarse.htm')||die $!."- registrarse.pl
\n"; while ($linea = ){ $html .= $linea; } close ARCHI; require $ENV{DOCUMENT_ROOT}.'_adm/incs/clInteres.pm'; my $oInteres=clInteres->new(); my @Interes; my @InteresTmp; my $contador=0; my @RowInteres=$oInteres->lista(); foreach my $Puntero(@RowInteres){ if ($contador>2) { push @Interes, [@InteresTmp]; $contador=0; @InteresTmp=[]; } @InteresTmp[$contador]="$$Puntero[1]"; $contador++ } #if ($contador!=3) { push @Interes, [@InteresTmp]; #} $contador=0; my $htmlTablaInt; foreach my $Puntero (@Interes) { $$Puntero[1]=" " if !$$Puntero[1]; $$Puntero[2]=" " if !$$Puntero[2]; $htmlTablaInt.=qq~
$$Puntero[0]
$$Puntero[1]
$$Puntero[2]
~; } my $htmlTabla=qq~ $htmlTablaInt
Todos
 
 
~; $html=~s//$htmlTabla/gi; $html =Generales::procesarEstatico($html);