
/* estilo estudis
doble columna con navegador a la derecha usando tablas
*/

/* etiquetas estandar*/
/* config del cuerpo de la web*/

body {
	background-color : #E0EBF8;
	font-family : 'Sans Serif';
	font-size : 12px;
	line-height : 22px;
	margin-bottom : 10px;
	margin-left : 10px;
	margin-right : 10px;
	margin-top : 10px;
	padding-bottom : 0px;
	padding-left : 0px;
	padding-right : 0px;
	padding-top : 0px;
  }

input   {
border: thin dotted;
background-color:#E0EBF8;
}

textarea {
border: thin dotted;
background-color:#E0EBF8;
}

a {
	color: #3B5666;
	text-decoration: none;
	font-weight: bold;
}

/* clases y definiciones propias*/
.logo {
background-image:url(./imagenes/logo_arriba.jpg);
height: 80px;
padding: 5px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:30px;
font-weight: bold;
color: #CCCCCC;
}

.contenido{
border-top:1px dotted #000000;
border-right:1px dotted #000000;
padding: 10px;
margin:5px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:12px;
text-align:justify;
}

#titulo_noticia {
	text-transform:uppercase;
	line-height:20px;
	color:#446376;
	font-weight: bold;
	font-size : 10px;
}

.navegacion {
border-top:1px dotted #000000;
padding: 5px;
margin:0px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:12px;
color: #4C6F83;
}

#navegacion {
    margin: 0px;
    padding: 5px;
    background-color: #FFF;
    font-size : 13px;
  }

#navegacion ul
{
margin: 0;
padding: 0;
list-style-type: none;
}

#navegacion li a { 
	display: block;
	color: #4C6F83;
	background-color: #E0EBF8;
	padding: 0px 0px 0px 0px;
	text-decoration: none;
	font-weight: bold;
	border-top: 1px dotted ;
	
}
#navegacion a:hover {
	background-color:#E6F1FF;
	color:#72A4C4;
	text-transform:uppercase;
}

#historico {
    margin: 0px;
    padding: 5px;
    background-color: #FFF;
    font-size : 10px;
    border-top: 1px dotted ;
  }

#historico ul
{
margin: 0;
padding: 0;
list-style-type: none;
}

#historico li a { 
	display: block;
	color: #000000;
	padding: 0px 0px 0px 0px;
	text-decoration: none;
	font-weight: bold;
	
	
}
#historico a:hover {
	color:#72A4C4;
}

.login {
border-top:1px dotted #000000;
padding: 5px;
margin:0px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:10px;
}

.estadistica {
border-top:1px dotted #000000;
padding: 5px;
margin:0px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:12px;
color: #000000;
}

.pie_pagina {
padding: 10px;
margin:5px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:11px;
border-top:1px dotted;
text-align:justify;
}

.menu_superior {
margin:5px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:12px;
text-align:justify;
font-weight: bold;

}

a.menu_superior {
text-decoration:none;
}

#banner {
border-top: 1px dotted;
}

#curri{
padding: 10px;
margin:5px;
vertical-align: top;
font-family:'Sans Serif','Verdana';
font-size:11px;
text-align:justify;
}

#curri:a {
font-weight: none;
}
	
ht='7' hspace='5' border='0'>".$datos["asunto"]."</div></td>
    </tr>
</table>
</div>");
}


// cuenta de los elementos en la tabla de noticias
$query   = "SELECT COUNT(asunto) AS numrows FROM mensajes";
$result  = mysql_query($query) or die('Error, query failed');
$row     = mysql_fetch_array($result, MYSQL_ASSOC);
$numrows = $row['numrows'];

// cuantas noticias por pg
$maxPage = ceil($numrows/$rowsPerPage);

$self = $_SERVER['PHP_SELF'];


//enlaces primero, ultimo, siguiente, anterior
if ($pageNum > 1)
{
    $page = $pageNum - 1;
    $prev = " <a href=\"$self?page=$page\">[Anterior]</a> ";
    
    $first = " <a href=\"$self?page=1\">[Principio]</a> ";
} 
else
{
    $prev  = ' [Anterior] ';
    $first = ' [Principio] '; 
}

// si es la ultima o la primera pg se muestra el enlace sin activar
if ($pageNum < $maxPage)
{
    $page = $pageNum + 1;
    $next = " <a href=\"$self?page=$page\">[Siguiente]</a> ";
    
    $last = " <a href=\"$self?page=$maxPage\">[Final]</a> ";
} 
else
{
    $next = ' [Siguiente] ';
    $last = ' [Final] '; 
}
     ÿØÿà JFIF  H H  ÿáExif  MM *        @   ž        Þ        þ                   &(       1      .2      >       ‚˜      R‡i      h    7__o.w[~}+T:u*u
T*t+U*P*U.UbU*.]jU+Q*jU~t"U(V(U<]+Q(U*Y* DIGITAL CAMERA                  1.0                                         1.0             2003:02:23 17:00 	 Copyright 9,2002       ‚š      ²‚      ºˆ"       ˆ'     d       0210      Â      Ö‘     ‘      ê’ 
     ò’      ú’ 
     ’      
’       ’        ’	        ’|   Ì        0100               X               Þ¢      ì¢       £        £              ô                2003:02:23 17:00 	 2003:02:23 17:00 	  ©0 S                          %   
 d -      $  ” 	ç    ª;  «ºº«º««º«º         º««º«ºº«º««º                                                                                                                                                                                                                                                                                                                                                                                                                                      R98      0100                         l      t(             |      „                ÿØÿà JFIF      ÿÛ C 		
 $.' ",#(7),01444'9=82<.342ÿÛ C			2!!22222222222222222222222222222222222222222222222222ÿÀ  Ä “" ÿÄ           	
ÿÄ µ   } !1AQa"q2‘¡#B±ÁRÑð$3br‚	
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ        	
ÿÄ µ  w 