<? require_once("checar.php"); 
session_name("SESION");
session_start(); 
require_once("coneccion.php");
$id=$_SESSION[id];
$pwd=$_SESSION[password];
$_SESSION[lugar]=3;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--<meta http-equiv="X-UA-Compatible" content="IE=8" />-->

<title>.::Estadistica de Bibliotecas::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="estilos1.css">
<script type="text/javascript" src="funciones3.js"></script>

<script language="JavaScript">
function deshabilitar(campo){
	campo0=campo.name;
	campo1=campo0+1;

	if (!campo.checked) {
		document.forma[campo1].disabled=true;
		document.forma[campo1].value=" ";		
		if (document.forma[campo1].name=="otros1"){
			document.forma.espe.value=" ";	
			document.forma.espe.disabled=true;
			}
		}

	else {
		document.forma[campo1].disabled=false;
		if (document.forma[campo1].name=="otros1")	document.forma.espe.disabled=false;	
		}

	}

function numbersonly(myfield, e, dec)
{
var key;
var keychar;
if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
{	//Capt_Val();
   	return true;
}
keychar = String.fromCharCode(key);
// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
{   
return true;
}
else if ((("0123456789").indexOf(keychar) > -1))
{	//Capt_Val();
   	return true;
}
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   
   return false;
   }
else
   return false;
}

function menu(){
	location.href="menu.php";
	}
function salir(){
	location.href="salir.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 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?
$sql = "SELECT * FROM cie_cct where row_id='$_SESSION[id]'";
$result = mysql_query($sql);  
$row = mysql_fetch_array($result);

$servi02 = "SELECT * FROM servicios where id='$_SESSION[id]'";
$servi01 = mysql_query($servi02);  
if($servi01!='') $servi = mysql_fetch_array($servi01);
?>
<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>
<form name="forma">
	<input type="hidden" name="var" value="3"></center>

	<div id="transparencia"><div id="transparenciaMensaje"></div>
		</div>    
<center> 	
<TABLE  width="850" border=0 cellpadding=0 cellspacing=0 bordercolor="#FFFFFF" rules="none" class="tabla1" >
	<tr>
	    <td align="left"><button id="botonEnviar" onClick="menu()" type="button">Ir al menu</button></td>
    	<td align="right" ><strong><input type="button" value="SALIR" onClick="salir();"></strong></td>
    </tr>
    <tr>
	    <td colspan="2"><button id="botonEnviar" onClick="validaForm()" type="button" <? if($_SESSION[folio]==1) echo "disabled"; ?>>Guardar</button></td>
	</tr>
</TABLE>
<br>
<TABLE class="tabla1"  width="850" border=1 cellpadding=2 cellspacing=0 bordercolor="#E4E4E4" rules="none" >
  <tr bgcolor="E4E4E4"> 
    <td colspan="4"><strong><font size="2" face="Arial">III .SERVICIOS</font></strong></td>
  </tr>
  <tr bgcolor="E4E4E4"> 
      <td colspan="4" ><font size="2" face="Arial">1. Marque 
        si la biblioteca presta el anexo, enseguida registre el numero de veces que se proporcion&oacute; este servicio durante el a&ntilde;o. En los cuadros de pr&eacute;stamo en sala siempre debe existir informaci&oacute;n; los dem&aacute;s servicios pueden marcarse sin anotar la cantidad prestada durante el a&ntilde;o, siempre y cuando no se tenga un control o no haya gran cantidad de demanda del servicio ofrecido.</font></td>
  </tr>
  <tr> 
    <td width="339" height="52">&nbsp;</td>
    <td width="83" align="center"><font size="2" face="Arial">SI TIENE</font></td>
    <td width="141" align="CENTER"><font size="2" face="Arial">NUMERO DE VECES QUE SE PROPORCIONO EL SERVICIO</font></td>
    <TD width="370">&nbsp;</TD>
  </tr>
  
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">PRESTAMO EN SALA</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="sala" type="checkbox" onClick="deshabilitar(this)" <? if($servi[1]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="sala1" size="8" maxlength="8" <? if($servi[1]==0)echo "disabled"; echo "value=".$servi[2]; ?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<TD width="370">&nbsp;</TD>    
    </tr> 
  <tr > 
    <td><font size="2" face="Arial">PRESTAMO A DOMICILIO</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="domicilio" type="checkbox" onClick="deshabilitar(this)" <? if($servi[3]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="domicilio1" size="6" maxlength="6" <? if($servi[3]==0)echo "disabled"; echo "value=".$servi[4];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<TD width="370">&nbsp;</TD>    
    </tr>
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">PRESTAMO INTER-BIBLIOTECARIO</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="inter" type="checkbox" onClick="deshabilitar(this)" <? if($servi[5]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="inter1" size="6" maxlength="6" <? if($servi[5]==0)echo "disabled"; echo "value=".$servi[6];?> onKeyPress="return numbersonly(this, event)" <? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<TD width="370">&nbsp;</TD>    
    </tr>
  <tr > 
    <td><font size="2" face="Arial">PRESTAMOS ESPECIALES</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="especiales" type="checkbox" onClick="deshabilitar(this)" <? if($servi[7]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="especiales1" size="6" maxlength="6" <? if($servi[7]==0)echo "disabled"; echo "value=".$servi[8];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<TD width="370">&nbsp;</TD>    
    </tr>
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">PRESTAMO EN RESERVA</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="reserva" type="checkbox" onClick="deshabilitar(this)" <? if($servi[9]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="reserva1" size="6" maxlength="6" <? if($servi[9]==0)echo "disabled"; echo "value=".$servi[10];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<TD width="370">&nbsp;</TD>    
    </tr>
  <tr > 
    <td><font size="2" face="Arial">ORIENTACION A USUARIOS</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="orientacion" type="checkbox" onClick="deshabilitar(this)" <? if($servi[11]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="orientacion1" size="6" maxlength="6" <? if($servi[11]==0)echo "disabled"; echo "value=".$servi[12];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">ACTIVIDADES DE FOMENTO A LA LECTURA</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="fomento" type="checkbox" onClick="deshabilitar(this)" <? if($servi[13]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="fomento1" size="6" maxlength="6" <? if($servi[13]==0)echo "disabled"; echo "value=".$servi[14];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr > 
    <td><font size="2" face="Arial">ELABORACION DE BIBLIOGRAFIAS</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="elaboracion" type="checkbox" onClick="deshabilitar(this)" <? if($servi[15]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="elaboracion1" size="6" maxlength="6" <? if($servi[15]==0)echo "disabled"; echo "value=".$servi[16];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">BUSQUEDA AUTOMATIZADA DE INFORMACION</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="busqueda" type="checkbox" onClick="deshabilitar(this)" <? if($servi[17]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="busqueda1" size="6" maxlength="6" <? if($servi[17]==0)echo "disabled"; echo "value=".$servi[18]; ?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr > 
    <td><font size="2" face="Arial">DISEMINACION SELECTIVA DE INFORMACION</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="diseminacion" type="checkbox" onClick="deshabilitar(this)" <? if($servi[19]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="diseminacion1" size="6" maxlength="6" <? if($servi[19]==0)echo "disabled"; echo "value=".$servi[20]; ?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">DOCUMENTACION</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="documentacion" type="checkbox" onClick="deshabilitar(this)" <? if($servi[21]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="documentacion1" size="6" maxlength="6" <? if($servi[21]==0)echo "disabled"; echo "value=".$servi[22];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?> ></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr > 
    <td><font size="2" face="Arial">FOTOCOPIADO</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="fotocopiado" type="checkbox" onClick="deshabilitar(this)" <? if($servi[23]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="fotocopiado1" size="6" maxlength="6" <? if($servi[23]==0)echo "disabled"; echo "value=".$servi[24];?> onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?> ></td>
  <TD width="370"><font size="2" face="Arial">Numero de veces que se proporcion&oacute; el servicio, no numero de copias.</font></TD>    
    </tr>
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">CUBICULO DE ESTUDIO</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="estudio" type="checkbox" onClick="deshabilitar(this)" <? if($servi[25]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="estudio1" size="6" maxlength="6" <? if($servi[25]==0)echo "disabled"; echo "value=".$servi[26];?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>
  <tr > 
    <td><font size="2" face="Arial">CUBICULO DE MECANOGRAFIA</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="mecanografia" type="checkbox" onClick="deshabilitar(this)" <? if($servi[27]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="mecanografia1" size="6" maxlength="6" <? if($servi[27]==0)echo "disabled"; echo "value=".$servi[28];?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr>  
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">SALA DE COMPUTADORAS</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="computadoras" type="checkbox" onClick="deshabilitar(this)" <? if($servi[29]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="computadoras1" size="6" maxlength="6" <? if($servi[29]==0)echo "disabled"; echo "value=".$servi[30];?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr> 
  <tr > 
    <td><font size="2" face="Arial">FORMACION DE USUARIOS</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="fusuarios" type="checkbox" onClick="deshabilitar(this)" <? if($servi[31]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="fusuarios1" size="6" maxlength="6" <? if($servi[31]==0)echo "disabled"; echo "value=".$servi[32]; ?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370"><font size="2" face="Arial">(INSTRUCCION BIBLIOGRAFICA)</font></TD>    
    </tr> 
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">EMISION DE BOLETINES DE ALERTA</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="alerta" type="checkbox" onClick="deshabilitar(this)" <? if($servi[33]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="alerta1" size="6" maxlength="6" <? if($servi[33]==0)echo "disabled"; echo "value=".$servi[34];?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr> 
  <tr > 
    <td><font size="2" face="Arial">EMISION DE BOLETINES DE ADQUISICIONES</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="adquisiciones" type="checkbox" onClick="deshabilitar(this)" <? if($servi[35]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>>
    </font></td>
    <td align="center"><INPUT type="text" name="adquisiciones1" size="6" maxlength="6" <? if($servi[35]==0)echo "disabled"; echo "value=".$servi[36];?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370">&nbsp;</TD>    
    </tr> 
  <tr bgcolor="E4E4E4"> 
    <td><font size="2" face="Arial">OTROS*</font></td>
    <td align="center"><font size="2" face="Arial">
      <input class="Radio" name="otros" type="checkbox" onClick="deshabilitar(this)" <? if($servi[37]==1)echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?> >
    </font></td>
    <td align="center"><INPUT type="text" name="otros1" size="6" maxlength="6" <? if($servi[37]==0)echo "disabled"; echo $servi[38];?>  onKeyPress="return numbersonly(this, event)"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
  <TD width="370"><font size="2" face="Arial">*ESPECIFIQUE</font>
    <font size="2">
	<textarea name="espe" cols="30" rows="1" <? if($servi[37]==0)echo "disabled"; ?> <? if($_SESSION[folio]==1)echo "disabled";?>><? echo $servi[39];?></textarea>    
    </font><input type="hidden" name="nada"></TD>    
    </tr>         
</table>
</center>
</form>
<div id="mensajesAyuda">
	<div id="ayudaTitulo"></div>
	<div id="ayudaTexto"></div>
</div>

</body>
</html>
