<? require_once("checar.php"); 
session_name("SESION");
session_start(); 
$id=$_SESSION[id];
$pwd=$_SESSION[password];
$_SESSION[lugar]=10;
require_once("coneccion.php");
?>
<html>
<head>
<title>.:Catalogo de Inmuebles Escolares:.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
	function ind(boton){
		var pass = window.document.valor.pass.value;		
		location.href="index.php?mensaje="+pass;
	}
</script>
<style type="text/css">
.foot {	
	
	margin:0 auto;
	width:920px;
	padding:10px;
	margin-top:20px;
	background:#545454 url(bg-foot.jpg) no-repeat center top;
	
	position:relative;
	font-size:11px;
	/*text-transform:uppercase;*/
	line-height:1.4em;
}


.foot-texto {
	text-align:left;
	color:#ddd;
	padding:10px;
	padding-left:80px;
	background: url(bg-escudo-sonora.jpg) no-repeat  left center;

}

.foot-texto strong {
	color:#FFF;
	text-transform:uppercase;
}

.foot-texto a {
	color:#ddd;
}

.logo-ns-foot {
	background:url(logo-ns-foot.jpg) no-repeat center;
	width:137px;
	height:43px;
	position:absolute;
	top:25px;
	right:15px;
}
/*.contacto-aviso {
	background: #FFC63B url(bg-menu-portales-a-color.jpg) repeat-x bottom;
	padding:10px 5px;
	color:#ffffff;*/
	
.contacto-aviso {
	background: #3E5D72 url(bg-menu-res.jpg) repeat-x bottom;
	padding:10px 5px;
	color:#3E5D72;
}

<!--
@font-face { 
@font-family: MiFuente; 
src: url('http://148.235.6.240/upeo/insreal/geo_sans_light/GeosansLight.ttf'); 
} 
-->
</style>
</head>

<body bgcolor="#F7F7F7" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="valor" action="menu.php" method="post">
<? 
$sql = "SELECT * FROM cie_cct where row_id='$id'";
$result = mysql_query($sql); 
if($row = mysql_fetch_array($result)) { 
 ?>

	<center>
    <table width="806" border="0">
<tr> <td colspan="4" align="center"><img src="header.png" width="1000" height="120"></td> </tr>
<tr class="contacto-aviso">
    <td height="35" colspan="4" align="center" valign="bottom"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="+2">S</font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">ISTEMA  DE </font><font color="#FFFFFF" size="+2" face="Arial, Helvetica, sans-serif">B</font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">IBLIOTECAS - </font><font color="#FFFFFF" size="+2" face="Arial, Helvetica, sans-serif">2014</font></td>
    <!--<td height="39" colspan="4" align="left" ><font face="MiFuente" color="#E9690B" size="+2">SEGUIMIENTO de Estructuras Educativas</font></td>-->
  </tr>
</table>
	<table width="1000" border="0">
	<tr>
		<td width="71"><font face="Arial, Helvetica, sans-serif" color="#000000" size="-1">ESCUELA:</font></td>
		<td width="767"> <font color="#17375E" face="Arial, Helvetica, sans-serif"><strong><? echo $row["nombrect"];?></strong></font> </td> 
		<td width="39"><font face="Arial, Helvetica, sans-serif" color="#000000" size="-1">CCT:</font></td>
		<td width="105"> <font face="Arial, Helvetica, sans-serif" color="#17375E"><strong><? echo $row["clavecct"];?></strong></font> </td> 
	</tr>

	</table>
	</center>
    <br>
    <br>
<br>
    <br>
	<center>
	<TABLE width="762" height="147"   align="center" >
	<tr>
        <td width="199" height="26"><strong><font face="Arial, Helvetica, sans-serif" color="#000000">Clave CT</font><font face="Arial" size="2">:</font></strong></td>
   	    <td width="551"><font face="Arial, Helvetica, sans-serif"><? echo $row[clavecct];?></font></td>
	</tr>
   	<tr>
		<td height="26"><strong><font face="Arial, Helvetica, sans-serif" color="#000000">Nombre de la biblioteca:</font></strong></td>
    	<td><font face="Arial, Helvetica, sans-serif"><? echo $row[nombrect];?></font><br> </td>
    </tr>
    <tr>
   	    <td height="26"><strong><font face="Arial, Helvetica, sans-serif" color="#000000">Localidad:</font></strong></td>
       	<td width="551"><font face="Arial, Helvetica, sans-serif"><? echo $row[nombreloc];?></font></td>
   	</tr>  
    <tr>
   	    <td height="26"><strong><font face="Arial, Helvetica, sans-serif" color="#000000">Municipio:</font></strong></td>
       	<td width="551"><font face="Arial, Helvetica, sans-serif"><? echo $row[nombremun];?></font></td>
   	</tr>            
    <tr>
   	    <td height="26"><strong><font face="Arial, Helvetica, sans-serif" color="#000000">Turno:</font></strong></td>
       	<td width="551"><font face="Arial, Helvetica, sans-serif"><? echo $row[turno];?></font></td>
   	</tr>                
    <?
	$sql = "SELECT folio FROM seguimiento where id='$id'";
	$result = mysql_query($sql);  
	$row = mysql_fetch_array($result);
	if($row[0]!='')	$_SESSION[folio]=1;	
	if($_SESSION[folio]==1){?>
    	<tr>
   	    <td colspan="2" height="26" align="center"><strong><font face="Arial, Helvetica, sans-serif" size="2" color="#0000FF">&lt; CENTRO DE TRABAJO YA OFICIALIZADO - NO PODR&Aacute; REALIZAR CAMBIOS &gt;</font></strong></td>
   		</tr>  
        <? 
		}?>
    
	<tr>
		<td colspan="2" align="center">
        	<input type="submit" value="   Ingresar   " name="in"> &nbsp;&nbsp; 
			<input type="button" name="Button" value="   Regresar   " onClick='location.href="index.php";'>    	    
        </td>
    </tr>
    </table>
    
	</center>
	<? 
	}
else
	{ ?>
  <script>
		var pass = window.document.valor.pass.value;		
		location.href="index.php";
	</script> <?
	} ?>
	

</form>
</body>
</html>
