=$feci and $hoy<=$fecf) { echo "
  • "; echo "$tit"; echo "$det"; echo "
  • "; } } ?>
=$feci and $hoy<=$fecf) { echo "$tit"; } } ?>
"; if($iss!='') { $progra=pg_exec("select * from programa_ofertas where id_unidad='$uni' and id_submenu='$ims' and id_ssubmenu='$iss' and estado='1' order by orden ASC"); $fil1=pg_numrows($progra); for($z=0;$z<$fil1;$z++) { $idp=pg_result($progra,$z,0); $tit=pg_result($progra,$z,6); $res=pg_result($progra,$z,7); $ext=pg_result($progra,$z,9); $foto=$idp.".".$ext; $conte=str_replace(Chr(13),"
",$res); if($tit!=''){ echo "

$tit


"; } if($ext!='') { echo "
"; } echo "

$conte


"; } } if($mod!='') { $info=pg_exec("select * from informacion where id_modulo='$mod' and id_sede='$sed' and id_unidad='$uni' and estado='1' order by orden DESC"); $f=pg_numrows($info); for($j=0;$j<$f;$j++) { $idinf=pg_result($info,$j,0); $titul=pg_result($info,$j,6); $cont=pg_result($info,$j,7); $det=pg_result($info,$j,8); $inic=pg_result($info,$j,10); $fina=pg_result($info,$j,11); $nomb=pg_result($info,$j,14); $ext=pg_result($info,$j,15); $ancho=pg_result($info,$j,16);//ancho de la imagen para mostrar $alto=pg_result($info,$j,17);//ancho de la imagen para mostrar $alinear=pg_result($info,$j,18);//alinear a la derecho o a la izquierda $conte=str_replace(Chr(13),"
",$cont); if($hoy>=$inic and $hoy<=$fina) { echo "

$titul

"; if($ext!='')//MOSTRAR IMAGEN { echo '
'; $foto=$idinf.'.'.$ext; $ancho_td=$ancho_tabla-$ancho; //REDIMENSIONAR FOTO $direccion_imagen='imagen/'.$foto; list($width,$height,$type,$attr)=getimagesize($direccion_imagen); $alto=$height*$ancho/$width; $largo=$width*$alto/$height; echo "
"; echo "

$det

"; echo '
'; $cont=strlen($conte); $limite=170; echo "

$inic

"; if($cont>$limite) { $texto=substr($conte,0,$limite); echo "

$texto...(leer más)"; } else { echo "

$conte

"; } } if($ext=='')//MOSTRAR DOCUMENTO SIN IMAGEN { $cont=strlen($conte); $limite=170; if($cont>$limite) { $texto=substr($conte,0,$limite); echo "

$texto...(leer más)"; } else { echo "

$conte"; } } echo "
"; } } } if($mod!='') { $fot="objetivo".$uni; echo ""; } echo "

"; ?>