<? require_once("checar.php"); 
session_name("SESION");
session_start(); 
$id=$_SESSION[id];
$pwd=$_SESSION[password];
$lugar=$_SESSION[lugar];
require_once("coneccion.php");
?>
<html>
<head>
<title>.: Sistema de Captura de Bibliotecas :.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="funciones1.js"></script>
<script>
	function cero(){
		location.href="0.php";
	}
	function uno(){
		location.href="i.php";
	}
	function dos(){
		location.href="ii.php";
	}
	function tres(){
		location.href="iii.php";
	}
	function cuatro(){
		location.href="iv.php";
	}
	function cinco(){
		location.href="v.php";
	}
	function seis(){
		location.href="vi.php";
	}						
	function siete(){
		location.href="vii.php";
	}						
	function salir(){
		location.href="salir.php";
	}	
	function oficializar(){
		location.href="oficializar.php";
	}
	function acuse(){
		location.href="acuse.php";
	}		
	function pdf(){ 
		location.href="pdfbib.php";
	}										
		
</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">
<?
if($lugar=='10')
	{
	$fecha=(date("Y-m-d")); 
	$hora=(date("H:i:s")); 
	$tiempo=$fecha."|". $hora;
	$sql = "insert into tmp_id ( id , sel ) value ('$id' , '$tiempo' )";
	$result = mysql_query($sql); 
	$sql="select * from seguimiento where id='$id'";
	$result = mysql_query($sql);
	$row = mysql_fetch_array($result);
	if($row["id"]==''){//$alain=$result;$ulises=$sql;}
		$result = mysql_query("insert into seguimiento (id) value ('$id')");
		}
	}

$result = mysql_query("select * from seguimiento where id='$id'");
$avance = mysql_fetch_array($result);
$m1 = $avance[1];
$m3 = $avance[2];
$m4 = $avance[3];
$m5 = $avance[4];
$m6 = $avance[5];
$m7 = $avance[6];
$m99 = $avance[9];
	
$sql = "SELECT * FROM cie_cct where row_id='$id'";
$result = mysql_query($sql);  
$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>
<CENTER>
<table width="852">
	<tr>
  		<td width="852"align="center" ><strong><font face="Arial, Helvetica, sans-serif" color="#000000" size="5"> MEN&Uacute; DE FORMAS</font></strong></td>
 	</tr>
	<tr>
  		<td width="852" align="right" ><strong><input type="button" value="       SALIR      " onClick="salir();"></strong></td>
	</tr>   
    <tr>
	  <td align="right" ><div align="center"><font color="#A3582B" size="2" face="Arial, Helvetica, sans-serif">La informaci&oacute;n contenia en este sistema es una precaptura tomada de los datos ingresados en el Sistema de Bibliotecas del a&ntilde;o anterior (<strong>Enero a Diciembre 2013</strong>), favor de actualizarlos.</font></div></td>
    </tr>
    <!--<tr>
    <td align="left"><font color="#FF0000" face="Arial, Helvetica, sans-serif" size="-1">NOTA.- </font><font face="Arial, Helvetica, sans-serif" size="-1"> Si no cuenta con la informaci&oacute;n reportada el a&ntilde;o anterior puede obtenerla aqu&iacute;:</font>
        <a href="pdfbibres12.php" target="_blank"><font face="Arial, Helvetica, sans-serif" size="1">IMPRIMIR FORMATO CAPTURADO A&Ntilde;O ANTERIOR 2013 (Enero a Diciembre 2012).</font></a>
    </td>
    </tr> --> 
      
</table>

</CENTER>
<br>
<TABLE width="852" align="center"  border=1  cellspacing=0 cellpadding=2 bordercolor="#E4E4E4" >
  <tr> 
    <td width="10%" height="23" align="center"> 
    <font size="3" face="Arial, Helvetica, sans-serif"><strong>MODULO</strong></font></td>
    <td width="79%" align="center"> 
    <font size="3" face="Arial, Helvetica, sans-serif"><strong>DESCRIPCION<? echo $alain.$ulises; ?></strong></font></td>
    <td width="11%" align="center"> 
    <font size="3" face="Arial, Helvetica, sans-serif"><strong>ESTADO</strong></font></td>
  </tr>

<tr> 
<td height="28" align="center">
<!-- <form name="datos" method="post" action="0.php?id=<? echo $id; ?>">
<input type="hidden" name="id" value=<? echo $id; ?>>
<input type="submit" name="in" value="INICIO">
</form> -->
<input name="cero" type="button" value=" INICIO  " onClick="cero();" >
</td>
    <td><font size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;DATOS DE IDENTIFICACI&Oacute;N DEL INMUEBLE</strong></font></td>
    <td align="center"><?
if($m99==1) echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?></td>
  </tr>
  <tr> 

<td height="28" align="center">
<input name="uno" type="button" value="    I y II    " onClick="uno();">
</td>

<td><font size="2" face="Arial, Helvetica, sans-serif"><strong> &nbsp;CARACTER&Iacute;STICAS DE LA BIBLIOTECA y USUARIOS</strong></font></td>
<td align="center"> <?
if($m1==1) echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?>
</td>
</tr>
<tr> 
<td height="28" align="center"><input name="tres" type="button" value="       III     " onClick="tres();"></td>
<td><font size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;SERVICIOS</strong></font></td>
<td align="center"><?
if($m3==1)  echo  "<font size=2 face='Arial, Helvetica, sans-serif'color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?>
</td>
</tr>

<tr> 
<td height="28" align="center"><input name="cuatro" type="button" value="      IV     " onClick="cuatro();"></td>
<td><font size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;COLECCIONES</strong></font></td>
<td align="center"><?
if($m4==1) echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?>
</td>
</tr>

<tr> 
<td height="28" align="center"><input name="cinco" type="button" value="      V      " onClick="cinco();" ></td>
<td><font size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;ACERVO </strong></font></td>
<td align="center"> <?
if($m5==1) echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?>
</td>
</tr>

<tr> 
<td height="28" align="center"><input name="seis" type="button" value="      VI     " onClick="seis();"></td>
<td><font size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;PERSONAL POR FUNCI&Oacute;N </strong></font></td>
<td align="center"><?
if($m6==1)  echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?>
</td>
</tr>

<tr> 
<td height="28" align="center"><input name="siete" type="button" value="VII y VIII" onClick="siete();"></td>
<td><font size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;RECURSOS MATERIALES Y COMPUTACIONALES y AUTOMATIZACI&Oacute;N DE LA BIBLIOTECA </strong></font></td>
<td align="center"> <?
if($m7==1)  echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#0000FF>TERMINADO</font>";
else echo  "<font size=2 face='Arial, Helvetica, sans-serif' color=#FF0000>FALTANTE</font>";  ?>
</td>
</tr>

<? if($m1==1 and $m3==1 and $m4==1 and $m5==1 and $m6==1 and $m7==1 and $m99==1 and $_SESSION[folio]!=1){?>
	<tr>
		<td colspan=3 align="center" ><input type="button" value="OFICIALIZAR" onClick="oficializar();"></td>
	</tr>
  	<?
	} 
if($m1==1 and $m3==1 and $m4==1 and $m5==1 and $m6==1 and $m7==1 and $_SESSION[folio]==1){?>
	<tr>
		<td colspan=3 align="center" ><strong><font face="Arial, Helvetica, sans-serif" size="2" color="#0000FF">CENTRO DE TRABAJO YA OFICIALIZADO</font></strong></td>
	</tr>
	<tr>
		<td colspan=1>&nbsp;</td>
        <td colspan="2" align="left"><a href="acuse.php" target="_blank"><font face="Arial, Helvetica, sans-serif" size="1">IMPRIMIR ACUSE</font></a></td>
	</tr>    
  	<?
	} 	
	if($m1==1 and $m3==1 and $m4==1 and $m5==1 and $m6==1 and $m7==1 and $_SESSION[folio]==1){?>
	<tr>
    	<td>&nbsp;</td>
     	<td colspan=2 align="left">
        <a href="pdfbib.php" target="_blank"><font face="Arial, Helvetica, sans-serif" size="1">IMPRIMIR FORMATO CAPTURADO</font></a></td>
	</tr>    
  	<?
	} 	
	
	?>
</table>

</body>
</html>
