<?php
	session_start();	
	$ruta = '../';
	require_once("clases/covensol_fop_c_formulacion.php");
	$objfop=new covensol_fop_c_formulacion('');	
	$datos = $_GET;
	$disable['disable'] = "";
	if($datos['codsec']){$datos['disable'] = "disabled";}
	
	if($_GET['codsec']){
		    $datos['criterio'] = 'por_codigo';
			$resultado = $objfop->ConsultaSectores($datos);
			$DatosSec = $resultado['rs']->fields;
	}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Catálogo de Sub Sectores</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../shared/css/ventanas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/general.css" rel="stylesheet" type="text/css">
<link href="../shared/css/tablas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/catalogos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
	color: #006699;
}
a:visited {
	color: #006699;
}
a:active {
	color: #006699;
}
body {
	background-color: #DFE8F6;
}
-->
</style>

</head>
<script src="../base/librerias/js/jquery/jquery.js" type="text/javascript"></script>
<script src="../base/librerias/js/jquery/jquery.ui.draggable.js" type="text/javascript"></script>
<script src="../base/librerias/js/jquery/jquery.alerts.js" type="text/javascript"></script>
<link href="../base/librerias/js/jquery/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<script language="JavaScript" type="text/JavaScript" src="../shared/js/js_ajax.js"></script>
<script language="JavaScript" src="../shared/js/sigesp_js.js"></script>
<script language="JavaScript" type="text/JavaScript" src="js/covensol_fop_cat_subsector.js"></script>
<?php 

?>
<body>

<form name="form1" method="post" action="">
<table width="609" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="582" height="20" colspan="2" class="titulo-ventana">Sub Sectores</td>
    </tr>
  </table>
<br>
<table width="613" border="0" align="center" cellpadding="1" cellspacing="0" class="formato-blanco">
<tr>
  <td valign="top"><div align="right">Sector:</div></td>
  <td height="13" align="left"><input name="txtcodsec" type="text" id="txtcodsec"  value="<?php echo $DatosSec['codsec'];?>" size="15" readonly="yes" />    <a href="javascript: buscar('sector');" id="buscacat"><img src="../shared/imagebank/tools20/buscar.gif" alt="Haga click para buscar la oficina rectora" width="20" height="20" border="0" title="Haga click para buscar el ente dependiente" /></a> &nbsp;&nbsp;&nbsp;<a href="javascript: limpiar_estado();" id="limpiacat"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="20" height="20" border="0" title="Eliminar" /></a> <strong>
      <input name="txtdensec" type="text" class="sin-borde" id="txtdensec"  value="<?php echo $DatosSec['densec'];?>" size="45" maxlength="70"  readonly="readonly" />
    </strong></td>
</tr>
<tr>
  <td height="22" align="right">C&oacute;digo:</td>
  <td height="22" align="left" div><input name="txtcodsubsec" type="text" id="txtcodsubsec" size="45" maxlength="70" value="" /></td>
</tr>
<tr>
  <td width="97" height="22" align="right">Descripci&oacute;n:</td>
  <td width="510" height="22" align="left" div><input name="txtdensubsec" type="text" id="txtdensubsec" size="45" maxlength="70" value="" /></td>
</tr>
<tr>
      <td height="22">&nbsp;</td>
      <td><div align="right"><a href="javascript: buscar();"><img src="../shared/imagebank/tools20/buscar.gif" width="20" height="20" border="0"></a><a href="javascript: buscar();">Buscar</a> </div></td>
  </table> 
   
  <p>
  <div id="resultados" align="center"></div>	
	</p>
    <p>
    <input name="NOMBRE_FORM"  type="hidden" id="NOMBRE_FORM"  value="covensol_fop_cat_subsector">
   <input name="hcodsec"  type="hidden" id="hcodsec" value="<?php echo $datos['codsec'];?>">
  </p>
</form>      
</body>
</html>
