"; echo "
"; echo ""; ?> "; echo ""; echo " "; echo "
"; echo "Mapa del sitio"; echo "
"; //MENU DE OPCIONES echo ""; $men=pg_exec("select * from menu where estado='1' and id_sede='$sed' and id_unidad='$uni'"); $f0=pg_numrows($men); for($t=0;$t<$f0;$t++) { $idmen=pg_result($men,$t,0); $nome=pg_result($men,$t,3); $deta=pg_result($men,$t,4); $largo=pg_result($men,$t,7); echo ""; } $sobra=960-$utiliza; echo ""; echo "
"; echo '
    '; echo "
  • $nome"; echo "
      "; $submen=pg_exec("select * from submenu where estado='1' and id_menu='$idmen' order by orden ASC"); $f5=pg_numrows($submen); for($u=0;$u<$f5;$u++) { $idsub=pg_result($submen,$u,0); $nomesub=pg_result($submen,$u,4); $detasub=pg_result($submen,$u,5); $direc=pg_result($submen,$u,6); $donde=pg_result($submen,$u,7); echo "
    • $nomesub"; echo "
        "; $ssubmen=pg_exec("select * from ssubmenu where estado='1' and id_submenu='$idsub' order by orden ASC"); $f6=pg_numrows($ssubmen); for($s=0;$s<$f6;$s++) { $ssub=pg_result($ssubmen,$s,4); $ddetasub=pg_result($ssubmen,$s,5); $ddirec=pg_result($ssubmen,$s,6); $ddonde=pg_result($ssubmen,$s,7); echo "
      • $ssub
      • "; } echo "
      "; echo "
    • "; } echo "
    "; echo "
  • "; echo "
"; $utiliza=$utiliza+$largo; echo "
"; echo "
"; //CUERPO DE LA PAGINA 1 echo ""; echo "
"; ?>
    =$feci and $hoy<=$fecf) { echo "
  • "; echo "$tit"; echo "$det"; echo "
  • "; } } ?>
=$feci and $hoy<=$fecf) { echo "$tit1"; } } ?>
"; //PARTE SUPERIOR 2 COLUMNAS echo "
"; //MISIÓN VISIÓN DE LA UNIVERSIDAD SALESIANA DE BOLIVIA echo "
"; ?>
"; echo "
"; //CUERPO DE LA PAGINA 2 ----------------------------------------------------------------------- echo ""; echo ""; //PARTE SUPERIOR 2 COLUMNAS echo ""; echo "
"; echo ""; //&" echo "
"; echo ""; echo ""; echo "
"; $mensa=pg_exec("select * from mensaje where estado='1' and id_unidad='$uni'order by id_mensaje DESC limit 2"); $f1=pg_numrows($mensa); echo ""; for($i=0;$i<$f1;$i++) { $tit=pg_result($mensa,$i,5); $res=pg_result($mensa,$i,6); $fec=pg_result($mensa,$i,8); $resu=str_replace(Chr(13),"
",$res); echo "

$tit
"; echo "

$resu
"; echo "$fec"; } echo "

"; echo "
"; echo "
"; //COLUMNA IZQUIERDA NOTICIAS echo ""; //COLUMNA DERECHA echo ""; //EVENTOS MUESTRA EL CONTENIDO echo ""; echo ""; echo "
"; echo ""; $info=pg_exec("select * from informacion where estado='1' and id_sede='$sed' and id_unidad='$uni' 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,4); $cont=pg_result($info,$j,5); $inic=pg_result($info,$j,7); $fina=pg_result($info,$j,8); $conte=str_replace(Chr(13),"
",$cont); $ancho_tabla='290'; if($hoy>=$inic and $hoy<=$fina) { echo ""; echo ""; echo "
"; echo "$titul "; echo " $inic"; if($idinf!='') //id informacion {$imag=pg_exec("select * from imagen where id_informacion='$idinf'and estado='1'"); //id informacion imagen $f3=pg_numrows($imag); } if($f3!='')//MOSTRAR IMAGEN { for($l=0;$l<$f3;$l++) { $idima=pg_result($imag,$l,0); $nomb=pg_result($imag,$l,4); $ext=pg_result($imag,$l,5); $det=pg_result($imag,$l,6); $ancho=pg_result($imag,$l,7);//ancho de la imagen para mostrar $alinear=pg_result($imag,$l,8);//alinear a la derecho o a la izquierda } $foto=$idima.'.'.$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 ""; echo "
"; echo ""; echo ""; echo "
"; echo "
"; echo "$det"; echo "
"; echo "

$conte"; echo "

"; } if($f3=='')//MOSTRAR DOCUMENTO SIN IMAGEN { echo ""; echo "
"; echo "

$conte"; echo "

"; } echo "
"; echo "
"; } } echo "
"; echo ""; $even=pg_exec("select * from eventos where estado='1' order by orden DESC"); $ff=pg_numrows($even); for($y=0;$y<$ff;$y++) { $idin=pg_result($even,$y,0); $titu=pg_result($even,$y,4); $con=pg_result($even,$y,5); $ini=pg_result($even,$y,7); $fin=pg_result($even,$y,8); $conteni=str_replace(Chr(13),"
",$con); $ancho_tabla='290'; if($hoy>=$ini and $hoy<=$fin) { echo ""; echo ""; echo "
"; echo "$titu "; echo " $ini"; if($idin!='') //id informacion {$ima=pg_exec("select * from adjunto where id_evento='$idin'and estado='1'"); //id informacion imagen $f4=pg_numrows($ima); } if($f4!='')//MOSTRAR IMAGEN { for($ll=0;$ll<$f4;$ll++) { $idim=pg_result($ima,$ll,0); $nomb=pg_result($ima,$ll,4); $exte=pg_result($ima,$ll,5); $det=pg_result($ima,$ll,6); $ancho=pg_result($ima,$ll,7);//ancho de la imagen para mostrar $alinear=pg_result($ima,$ll,8);//alinear a la derecho o a la izquierda } $fot=$idim.'.'.$exte; $ancho_td=$ancho_tabla-$ancho; //REDIMENSIONAR FOTO $direccion_adjunto='adjunto/'.$fot; list($width,$height,$type,$attr)=getimagesize($direccion_adjunto); $alto=$height*$ancho/$width; $largo=$width*$alto/$height; echo ""; echo ""; echo "
"; echo ""; echo ""; echo "
"; echo "
"; echo "$det"; echo "
"; echo "

$conteni"; echo "

"; } if($f4=='')//MOSTRAR DOCUMENTO SIN IMAGEN { echo ""; echo "
"; echo "

$conteni"; echo "

"; } echo "
"; echo "
"; } } echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo "
"; echo ""; echo ""; echo "
"; //echo "
"; echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo "Telefono: 2305252 casilla 13102 usalesiana@usb.edu.bo
"; echo "La Paz - Bolivia"; echo "
"; ?>