<? require_once("checar.php"); 
session_name("SESION");
session_start(); 
require_once("coneccion.php");
$id=$_SESSION[id];
$pwd=$_SESSION[password];
$_SESSION[lugar]=4;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<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="funciones4.js"></script>
<script language="JavaScript">
function habilitar(){
	document.forma.colecciones.disabled=false;
	document.forma.volumenes.disabled=false;		
//	document.forma.temas.disabled=false;		

	document.forma.temas1.disabled=false;		
	document.forma.temas2.disabled=false;		
	document.forma.temas3.disabled=false;					
	document.forma.temas4.disabled=false;					
	}
function deshabilitar(){	
	document.forma.colecciones.disabled=true;
	document.forma.volumenes.disabled=true;		
//	document.forma.temas.disabled=true;		

	document.forma.temas1.disabled=true;		
	document.forma.temas2.disabled=true;		
	document.forma.temas3.disabled=true;		
	document.forma.temas4.disabled=true;				
		
	document.forma.colecciones.value=" ";	
	document.forma.volumenes.value=" ";	
	//document.forma.temas.value=" ";			

	document.forma.temas1.value=" ";			
	document.forma.temas2.value=" ";			
	document.forma.temas3.value=" ";			
	document.forma.temas4.value=" ";				
	}


function menu()
	{
	location.href="menu.php";
	}
	
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);

$colec02 = "SELECT * FROM colecciones where id='$_SESSION[id]'";
$colec01 = mysql_query($colec02);  
if($colec01!='') $colec = mysql_fetch_array($colec01);
?>
<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" method="post" action="cam.php">
	<input type="hidden" name="var" value="4">
    	<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>
 
<TABLE class="tabla1" width="850" border=1 rules="none" cellspacing=0 cellpadding=2 bordercolor="#E4E4E4" >
  <tr> 
    <td colspan="5" bgcolor="#E4E4E4"><font size="2" face="Arial, Helvetica, sans-serif"><strong>IV. 
      COLECCIONES</strong></font></td>
  </tr>
  <tr > 
    <td colspan="2"><font size="2" face="Arial">1. Seleccione si la biblioteca cuenta con <strong>colecciones de consulta.</strong></font></td>
    
	<td align="center"><font size="2" face="Arial">SI</font>
	  <input class="radio" type="radio" name="consulta" value="1"<? if ($colec[1]==1) echo "checked"; ?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td>

    <td align="center"><font size="2" face="Arial">NO</font>
      <input class="Radio" type="radio" name="consulta" value="2"<? if ($colec[1]==0) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?> ></td>
  </tr>

  <tr> 
    <td colspan="2"><font size="2" face="Arial, Helvetica, sans-serif">2. Seleccione si la biblioteca cuenta con <strong>colecciones especiales.</strong></font></td>
    
	<td align="center"><font size="2" face="Arial">SI</font>
	  <input class="Radio" type="radio" name="especiales" value="1"<? if ($colec[2]==1) echo "checked";?>  onClick="habilitar();"<? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<td align="center"><font size="2" face="Arial">NO</font>
	  <input class="Radio" type="radio" name="especiales" value="2"<? if ($colec[2]==0) echo "checked";?> onClick="deshabilitar();" <? if($_SESSION[folio]==1) echo "disabled"; ?>></td></tr>
  <tr> 
    <td colspan="4"><font size="2" face="Arial">3. Si tiene <strong>colecciones especiales</strong> anote el n&uacute;mero de colecciones y volumenes.</font></td>
  </tr>
  <tr> 
    <td  width="183" align="right"><font size="2" face="Arial">COLECCIONES </font>
      <input type="text" name="colecciones" size="3" maxlength="3" value="<? echo $colec[3]; ?>" onKeyPress="return numbersonly(this, event)" <? if ($colec[2]==0) echo "disabled";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
    <td width="349"><font size="2" face="Arial">VOLUMENES</font>
      <input type="text" name="volumenes" maxlength="6" size="6" value="<? echo $colec[4]; ?>" onKeyPress="return numbersonly(this, event)" <? if ($colec[2]==0) echo "disabled";?><? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
      <td colspan="2">&nbsp;</td> 
    </tr>
  <tr> 
    <td colspan="4"><font size="2" face="Arial">4.Escriba los temas principales que abordan las colecciones especiales.</font></td>
    </tr>
<!--   <tr> 
    <td colspan="4" align="left"><textarea id="temas" name="temas" cols="30" rows="2" <? if ($colec[2]==0 or $_SESSION[folio]==1) echo "disabled";?> ><? echo $colec[5]; ?></textarea>    </td>
    </tr> -->
    <tr>
    	<td align="center"><font face="arial" size="2">1. </font></td>
    	<td colspan="3"><input class="input2" name="temas1" size="40" maxlength="40" value="<? echo $colec[temas1]; ?>" <? if ($colec[2]==0 or $_SESSION[folio]==1) echo "disabled";?>></td>    
    </tr>
    <tr>
       	<td align="center"><font face="arial" size="2">2. </font></td>
    	<td colspan="3"><input class="input2" name="temas2" size="40" maxlength="40" value="<? echo $colec[temas2]; ?>" <? if ($colec[2]==0 or $_SESSION[folio]==1) echo "disabled";?>></td>    
    </tr>
    <tr>
    	<td align="center"><font face="arial" size="2">3. </font></td>    
    	<td colspan="3"><input class="input2" name="temas3" size="40" maxlength="40" value="<? echo $colec[temas3]; ?>" <? if ($colec[2]==0 or $_SESSION[folio]==1) echo "disabled";?>></td>    
    </tr>
    <tr>
    	<td align="center"><font face="arial" size="2">4. </font></td>    
    	<td colspan="3"><input class="input2" name="temas4" size="40" maxlength="40" value="<? echo $colec[temas4]; ?>" <? if ($colec[2]==0 or $_SESSION[folio]==1) echo "disabled";?>></td>    
    </tr>            
  <tr> 
    <td colspan="2"><font size="2" face="Arial">5. Seleccione si la biblioteca cuenta con <strong>colecciones generales.</strong></font></td>
    
	<td align="center"><font size="2" face="Arial">SI</font>
	  <input class="radio" type="radio" name="generales" value="1"<? if ($colec[generales]==1) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<td align="center"><font size="2" face="Arial">NO</font>
	  <input class="radio" type="radio" name="generales" value="2"<? if ($colec[generales]==0) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td></tr>
  <tr> 
    <td colspan="2"><font size="2" face="Arial">6. Seleccione si la biblioteca cuenta con <strong>colecciones hemerogr&aacute;ficas.</strong></font></td>
    
	<td align="center"><font size="2" face="Arial">SI</font>
	  <input class="radio" type="radio" name="hemero" value="1"<? if ($colec[hemero]==1) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<td align="center"><font size="2" face="Arial">NO</font>
	  <input class="radio" type="radio" name="hemero" value="2"<? if ($colec[hemero]==0) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td></tr>

  <tr> 
    <td colspan="2"><font size="2" face="Arial">7. Seleccione si la biblioteca cuenta con <strong>colecciones audiovisuales.</strong></font></td>
    
	<td align="center"><font size="2" face="Arial">SI</font>
	  <input class="radio" type="radio" name="audio" value="1" <? if ($colec[audio]==1) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?> ></td>
	<td align="center"><font size="2" face="Arial">NO</font>
	  <input class="radio" type="radio" name="audio" value="2"<? if ($colec[audio]==0) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td></tr>
  <tr> 

    <td colspan="2"><font size="2" face="Arial">8. Seleccione si la biblioteca cuenta con <strong>colecciones el&eacute;ctronicas.</strong></font></td>
    
	<td align="center"><font size="2" face="Arial">SI</font>
	  <input class="radio" type="radio" name="electro" value="1"<? if ($colec[electro]==1) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?>></td>
	<td align="center"><font size="2" face="Arial">NO</font>
	  <input class="radio" type="radio" name="electro" value="2"<? if ($colec[electro]==0) echo "checked";?> <? if($_SESSION[folio]==1) echo "disabled"; ?> ></td></tr>
</table>
</center>
</form>

<div id="mensajesAyuda">
	<div id="ayudaTitulo"></div>
	<div id="ayudaTexto"></div>
</div>

</body>
</html>
