<?php
session_start();
$ruta = '../';
$fecha_actual = date("d/m/Y");

require_once("clases/covensol_fop_c_formulacion.php");
$objfop=new covensol_fop_c_formulacion('');
$resp = $objfop->ValidarSesion();
$objfop->cargar_seguridad("FOP","covensol_fop_d_ep3.php");
$datos=array();
$SegFases = $objfop->obtSegFases();
$datos = $objfop->InicializarDatosEp2($datos);	
if($_GET['codestpro1'] and $_GET['codestpro2'] and $_GET['codestpro3'] and $_GET['estcla'] and $_GET['anopresup'] and $_GET['codplangob']){
	
	$objfop->codintper = $_GET['anopresup'].' - '.$_GET['estcla'].' - '.$_GET['codestpro1'].' - '.$_GET['codestpro2'].' - '.$_GET['codestpro3'];		
	if($objfop->obtSegEstructuras()){	
		$param = $_GET;
		$param['criterio']='por_codigo';
		$resp = $objfop->ConsultaEp3($param);
		if(!$resp['rs']->RecordCount()){$objfop->io_mensajes->message("No existe el ".$_SESSION["la_empresa"]['nomestpro3'].": ".$_GET['codestpro3']);}
		else{
			 $datos = $resp['rs']->fields;	
			 $resp = $objfop->FaseCargaActual($datos);	
			 $datos = $objfop->FormatDatosEp3($datos);		 
		}
	}
}


//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DETALLE DE ACCIÓN ESPECÍFICA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../shared/css/tablas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/ventanas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/cabecera.css" rel="stylesheet" type="text/css">
<link href="../shared/css/general.css" rel="stylesheet" type="text/css">
<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" />
<link href="../shared/js/css_intra/datepickercontrol.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript1.2" src="../shared/js/librerias_comunes_covensol.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="../shared/js/number_format.js"></script>
<style type="text/css">
<!--


<!--

body {
	background-color: #DFE8F6;
}
.style1 {color: #FFFFFF}
.style2 {color: #000066}
.style4 {color: #000066; font-size: 9px; }
.style12 {font-size: 10}
.style14 {font-size: 9px}
.style17 {color: #000066; font-size: 10px; }
.style18 {font-size: 10px}
.style19 {color: #FFFFFF; font-size: 10px; }


-->
</style></head>
<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" src="../public/js/funcion_nomina.js"></script>
<script language="JavaScript" type="text/JavaScript" src="js/covensol_fop_d_ep3.js"></script>
<script language="javascript" src="../shared/js/js_intra/datepickercontrol.js"></script>
<body>
<?php 

?>
 <form name="form1" method="post" action="">
   <div align="center">
     <table width="963" border="0" align="center" cellpadding="0" cellspacing="0" class="contorno">
       <tr>
         <td height="30" colspan="12" class="cd-logo"><img src="../shared/imagebank/header_fop.jpg" width="964" height="40"></td>
       </tr>
       <tr>
         <td height="20" colspan="12" bgcolor="#EAE8D9" ><table width="957" border="0" align="center" cellpadding="0" cellspacing="0">
                         <td width="540" height="20" class="descripcion_sistema"> Detalle de: <?php echo $_SESSION["la_empresa"]['nomestpro3'] ?></td>
                       <td width="417" ><div align="right"><span class="letras-pequenas"><b><?PHP print date("j/n/Y")." - ".date("h:i a");?></b></span></div></td>
           <tr>
             <td height="20"  class="descripcion_sistema">Estructura Presupuestaria de Nivel 3 </td>
             <td  class="texto-azul"><div align="right" class="letras-pequenas" ><b><?PHP print $_SESSION['nombre_completo'];?></b></div></td>
            <tr>
              <td height="20"  class="descripcion_sistema"><div align="left" id="descfasecarga"></div></td>
              <td  class="texto-azul">&nbsp;</td>
            </table></td>
       </tr>
       <tr>
         <td height="20" width="35" class="toolbar"><div align="center"><a href="javascript: nuevox();"><img src="../shared/imagebank/tools20/nuevo.gif" alt="Nuevo registro" width="20" height="20" border="0" title="Nuevo registro"></a></div></td>
         <td height="20" width="35" class="toolbar"><div align="center"><a href="javascript: guarda_modifica();"><img src="../shared/imagebank/tools20/grabar.gif" alt="Grabar" width="20" height="20" border="0" title="Guardar"></a></div></td>
         <td class="toolbar" width="35"><div align="center"><a href="javascript: buscar('ep3');"><img src="../shared/imagebank/tools20/buscar.gif" alt="Haga click para buscar y seleccionar la ventana" width="20" height="20" border="0" title="Haga click para buscar y seleccionar la ventana"></a></div></td>
         <td class="toolbar" width="35"><div align="center" id="boton_eliminar"><a href="javascript: eliminar('inicio');"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="20" height="20" border="0" title="Eliminar"></a></div></td>
         <td class="toolbar" width="35"><div align="center"><a href="javascript: salirx();"><img src="../shared/imagebank/tools20/salir.gif" alt="Salir" width="20" height="20" border="0" title="Salir"></a></div></td>
         <td class="toolbar" width="35"><div align="center"><img src="../shared/imagebank/tools20/ayuda.gif" alt="Ayuda" width="20" height="20"></div></td>
         <td class="toolbar" width="35"><div align="center"></div></td>
         <td class="toolbar" width="35"><div align="center"></div></td>
         <td class="toolbar" width="35"><div align="center"></div></td>
         <td class="toolbar" width="35"><div align="center"></div></td>
         <td class="toolbar" width="35"><div align="center"></div></td>
         <td class="toolbar" width="576">&nbsp;</td>
       </tr>
     </table>
    	<div align="center" class="MarronTNR_12" id="Que_hacer">&nbsp;</div>
     <table width="945" border="0" cellpadding="0" cellspacing="0" class="contorno">
      
      <tr>
        <td width="943" align="center">
          
        <table width="939" border="0" align="center" cellpadding="0" cellspacing="3" class="sin-borde">
        <tr class="titulo-ventana">
          <td height="17" colspan="2" class="titulo-ventana"><?php echo $_SESSION["la_empresa"]['nomestpro3']; ?>&nbsp;</td>
        </tr>
        
        <tr>
          <td class="letras-negrita" ><div align="right">C&oacute;digo de: <?php echo $_SESSION["la_empresa"]['nomestpro1'] ?>:</div></td>
          <td width="710" height="22" align="left"><input value="<?php echo $datos['codestpro1']; ?>" name="txtcodestpro1" type="text" id="txtcodestpro1" size="25" readonly="yes"  />
            <a href="javascript: buscar('ep1');" id="buscacat"><img src="../shared/imagebank/tools20/buscar.gif" alt="Haga click para buscar la directriz" width="20" height="20" border="0" title="Haga click para buscar la directriz" /></a> &nbsp;&nbsp;&nbsp;
            <input name="txtdenestpro1" type="text" class="sin-borde" id="txtdenestpro1" value="<?php echo $datos['denestpro1']; ?>" size="70"  readonly="yes" />            </td>
        </tr>
        <tr>
          <td valign="top" class="letras-negrita"><div align="right">Tipo de Estructura:</div></td>
          <td><select name="sel_estcla" id="sel_estcla">
                  <option value="A" <?php if($datos['estcla']=='A'){ echo 'selected';} ?> >Acci&oacute;n Centralizada</option>
                  <option value="P" <?php if($datos['estcla']=='P' or !$datos['estcla']){ echo 'selected';} ?> >Proyecto</option>
                </select>
          </td>
        </tr>
        <tr>
          <td valign="top" class="letras-negrita"><div align="right">A&ntilde;o:</div></td>
          <td>
            <input name="txtanopresup" type="text" id="txtanopresup" size="8" maxlength="4" value="<?php echo $datos['anopresup']; ?>"  readonly="yes" /></td>
        </tr>
        <tr>
          <td width="220" valign="top" class="letras-negrita"><div align="right">C&oacute;digo de: <?php echo $_SESSION["la_empresa"]['nomestpro2']; ?>:</div></td>
          <td  align="left" >
              <input name="txtcodestpro2" type="text" id="txtcodestpro2" size="25" maxlength="<?php echo $_SESSION["la_empresa"]['loncodestpro2']; ?>" value="<?php echo $datos['codestpro2']; ?>" onBlur="javascript: cerosizquierda(this,<?php echo $_SESSION["la_empresa"]['loncodestpro2']; ?>)" />
           <a href="javascript: buscar('ep2');" id="buscacat"><img src="../shared/imagebank/tools20/buscar.gif" alt="Haga click para buscar la directriz" width="20" height="20" border="0" title="Haga click para buscar la directriz" /></a> &nbsp;&nbsp;&nbsp;
            <input name="txtdenestpro2" type="text" class="sin-borde" id="txtdenestpro2" onkeypress="return cj_keyRestrict(event,'abcdefghijklmn&ntilde;opqrstuvexyzABCDEFGHIJKLMN&Ntilde;OPQRSTUVWXYZ0123456789 &aacute;&eacute;&iacute;&oacute;&uacute;*()$%,&middot;!?&iquest;;:-_&ordf;&ordm;#');" value="<?php echo $datos['denestpro2']; ?>" size="70" />
          </td>
        </tr>
		
		<tr>
          <td valign="top" class="letras-negrita"><div align="right">Ejecutor:</div></td>
		  <td height="13" align="left">
              <input name="txtcoduniadm" type="text" id="txtcoduniadm"  value="<?php echo $datos['coduniadm'];?>" size="15" readonly="yes" />
              <a href="javascript: buscar('uniadm');"><img src="../shared/imagebank/tools20/buscar.gif" alt="Buscar" width="20" height="20" border="0" title="" /></a> &nbsp;&nbsp;&nbsp;<a href="javascript: limpiar('orgges');"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="20" height="20" border="0" title="Eliminar" /></a> <strong>
              <input name="txtdenuniadm" type="text" class="sin-borde" id="txtdenuniadm"  value="<?php echo $datos['denuniadm'];?>" size="45" maxlength="70"  readonly="readonly" />
            </strong></td>
		  </tr>		
		<tr>
		  <td width="220" valign="top" class="letras-negrita"><div align="right">C&oacute;digo de: <?php echo $_SESSION["la_empresa"]['nomestpro3']; ?>:</div></td>
		  <td><input name="txtcodestpro3" type="text" id="txtcodestpro3" size="25" maxlength="<?php echo $_SESSION["la_empresa"]['loncodestpro3']; ?>" value="<?php echo $datos['codestpro3']; ?>" onblur="javascript: cerosizquierda(this,<?php echo $_SESSION["la_empresa"]['loncodestpro3']; ?>)" /></td>
		  </tr>
		<tr>
		  <td valign="top" class="letras-negrita"><div align="right">Denominaci&oacute;n:</div></td>
		  <td><input name="txtdenestpro3" type="text" id="txtdenestpro3" onkeypress="return cj_keyRestrict(event,'abcdefghijklmn&ntilde;opqrstuvexyzABCDEFGHIJKLMN&Ntilde;OPQRSTUVWXYZ0123456789 &aacute;&eacute;&iacute;&oacute;&uacute;*()$%,&middot;!?&iquest;;:-_&ordf;&ordm;#');" value="<?php echo $datos['denestpro3']; ?>" size="70" /></td>
		  </tr>
		<tr>
		  <td valign="top" class="letras-negrita"></td>
		  <td>&nbsp;</td>
		  </tr>
      </table></td>
      </tr>
     </table>
     <p><br /></p>
   </div>
	   
   <div id="resultados" align="center"></div>
    <input name="hanopresup"  type="hidden" id="hanopresup" value="<?php echo $datos['anopresup'];?>">
    <input name="hcodplangob"  type="hidden" id="hcodplangob" value="<?php echo $datos['codplangob'];?>">
    <input name="hcodestpro1"  type="hidden" id="hcodestpro1" value="<?php echo $datos['codestpro1']?str_pad($datos['codestpro1'],25,'0',STR_PAD_LEFT):"";?>">
    <input name="hcodestpro2"  type="hidden" id="hcodestpro2" value="<?php echo $datos['codestpro2']?str_pad($datos['codestpro2'],25,'0',STR_PAD_LEFT):"";?>">
    <input name="hcodestpro3"  type="hidden" id="hcodestpro3" value="<?php echo $datos['codestpro3']?str_pad($datos['codestpro3'],25,'0',STR_PAD_LEFT):"";?>">	
	<input name="hestcla"  type="hidden" id="hestcla" value="<?php echo $datos['estcla'];?>">
	
	<input name="hloncodestpro1"  type="hidden" id="hloncodestpro1" value="<?php echo $_SESSION["la_empresa"]['loncodestpro1'];?>">
	<input name="hloncodestpro2"  type="hidden" id="hloncodestpro2" value="<?php echo $_SESSION["la_empresa"]['loncodestpro2'];?>">
	<input name="hloncodestpro3"  type="hidden" id="hloncodestpro3" value="<?php echo $_SESSION["la_empresa"]['loncodestpro3'];?>">
	<input name="hnomestpro3"  type="hidden" id="hnomestpro3" value="<?php echo $_SESSION["la_empresa"]['nomestpro3'];?>">
    
    <input name="NOMBRE_FORM"  type="hidden" id="NOMBRE_FORM"  value="covensol_fop_d_ep3">
	
	<input name="hcoddefhist"  type="hidden" id="hcoddefhist" value="<?php echo $objfop->coddefhist;?>">
	<input name="hdenhist"  type="hidden" id="hdenhist" value="<?php echo $objfop->denhist;?>">
	<input name="habvrhist"  type="hidden" id="habvrhist" value="<?php echo $objfop->abvrhist;?>">
	<input name="hordenfase"  type="hidden" id="hordenfase" value="<?php echo $objfop->ordenfase;?>">
	<input name="hbloqcarga"  type="hidden" id="hbloqcarga" value="<?php echo $objfop->BloqCarga;?>">
	<input name="hbloqsegfase"  type="hidden" id="hbloqsegfase" value="">	
	<input name="hsegfases"  type="hidden" id="hsegfases" value="<?php echo $SegFases;?>">
    <?php 
	//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
		$objfop->imprimir_permisos($objfop->permisos,$objfop->la_permisos,$_SESSION["la_logusr"],"window.close()");
	//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
	?>	  
    

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



