<?php 
session_start();
$ruta='../';
require_once("covensol_apr_c_cxp.php");
$objcxp = new covensol_apr_c_cxp();
$objcxp->io_conexiones->decodificar_post();
$datos = $objcxp->io_conexiones->asignar_post();
$objcxp->ReleaseAPRCXP();

switch($datos['criterio']){

	  case "INFO_CONTABLE":														
			?>
            		
			<?php 		
			break;
					 
	   case "INFO_PRESUPUESTARIA":	
	        $ls_modalidad=$_SESSION["la_empresa"]["estmodest"];							
			?>

		
      <table width="576" border="0" align="center" cellpadding="0" cellspacing="3" class="sin-borde">
                    <tr>
                      <td width="140" height="22"><div align="right"><?php print $_SESSION["la_empresa"]["nomestpro1"];?></div></td>
                            <td width="427" height="22"><div align="left">
                              <input name="txtcodestpro1" type="text" id="txtcodestpro1" size="20" maxlength="20" style="text-align:center" readonly>
                              <a href="javascript:ue_estructura1();"><img src="../shared/imagebank/tools15/buscar.gif" width="15" height="15" border="0" alt="Buscar"></a>
                              <input name="txtdenestpro1" type="text" class="sin-borde" id="txtdenestpro1" size="45" readonly>
                              <input name="estmodest" type="hidden" id="estmodest" value="<?php print $ls_modalidad; ?>" />
                      </div></td>
                 </tr>
                          <tr>
                            <td height="22"><div align="right"><?php print $_SESSION["la_empresa"]["nomestpro2"];?></div></td>
                            <td height="22"><div align="left">
                              <input name="txtcodestpro2" type="text" id="txtcodestpro2" size="20" maxlength="6" style="text-align:center" readonly>
                              <a href="javascript:ue_estructura2();"><img src="../shared/imagebank/tools15/buscar.gif" width="15" height="15" border="0" alt="Buscar"></a>
                              <input name="txtdenestpro2" type="text" class="sin-borde" id="txtdenestpro2" size="45" readonly>
                            </div></td>
                          </tr>
                          <tr>
                            <td height="22"><div align="right"><?php print $_SESSION["la_empresa"]["nomestpro3"];?></div></td>
                            <td height="22"><div align="left">
                              <input name="txtcodestpro3" type="text" id="txtcodestpro3" size="20" maxlength="3" style="text-align:center" readonly>
                              <a href="javascript:ue_estructura3();"><img src="../shared/imagebank/tools15/buscar.gif" width="15" height="15" border="0" alt="Buscar"></a>
                              <input name="txtdenestpro3" type="text" class="sin-borde" id="txtdenestpro3" size="45" readonly>
                            </div></td>
                          </tr>
                    <?php if($ls_modalidad=="1") // Por Proyecto
                          {?>
                                    <input name="txtcodestpro4" type="hidden" id="txtcodestpro4" value="00">
                                    <input name="txtdenestpro4" type="hidden" id="txtdenestpro4" value="">
                                    <input name="txtcodestpro5" type="hidden" id="txtcodestpro5" value="00">
                                    <input name="txtdenestpro5" type="hidden" id="txtdenestpro5" value="">
                    <?php }
                          else
                          {?>
                          <tr>
                            <td height="22"><div align="right"><?php print $_SESSION["la_empresa"]["nomestpro4"];?></div></td>
                            <td height="22"><div align="left">
                              <input name="txtcodestpro4" type="text" id="txtcodestpro4" size="20" maxlength="2" style="text-align:center" readonly>
                              <a href="javascript:ue_estructura4();"><img src="../shared/imagebank/tools15/buscar.gif" width="15" height="15" border="0" alt="Buscar"></a>
                              <input name="txtdenestpro4" type="text" class="sin-borde" id="txtdenestpro4" size="45" readonly>
                            </div></td>
                          </tr>
                          <tr>
                            <td height="22"><div align="right"><?php print $_SESSION["la_empresa"]["nomestpro5"];?></div></td>
                            <td height="22"><div align="left">
                              <input name="txtcodestpro5" type="text" id="txtcodestpro5" size="20" maxlength="2" style="text-align:center" readonly>
                              <a href="javascript:ue_estructura5();"><img src="../shared/imagebank/tools15/buscar.gif" width="15" height="15" border="0" alt="Buscar"></a>
                              <input name="txtdenestpro5" type="text" class="sin-borde" id="txtdenestpro5" size="45" readonly>
                            </div></td>
                          </tr>	
                    <?php }?>
                          <tr>
                            <td height="22"><div align="right">Cuenta Presup.(411) </div></td>
                            <td height="22"><div align="left">
                              <input name="txtspgcuenta" type="text" id="txtspgcuenta" style="text-align:center" size="27" maxlength="25" readonly>
                              <a href="javascript:ue_cuentasspg();"><img src="../shared/imagebank/tools15/buscar.gif" width="15" height="15" border="0" alt="Cat&aacute;logo de Cuentas de Gastos"></a> 
                              <input name="txtdenominacion" type="text" class="sin-borde" id="txtdenominacion" style="text-align:left" size="40">
                              <input name="sccuenta" type="hidden" id="sccuenta">
                              <input name="disponibilidad" type="hidden" id="disponibilidad">
                            </div></td>
                          </table>
			<?php 								
			break;
	  
	  case "PROCESAR":
					
					$datos['solicitudes'] = explode(',',$datos['solicitudes']);						
					$resp = $objcxp->TransferirCXP($datos);
						
			break;
		
}


?>