<?php
session_start();
if (!array_key_exists("la_logusr",$_SESSION))
   {
	 print "<script language=JavaScript>";
	 print "location.href='../sigesp_inicio_sesion.php'";
	 print "</script>";		
   }
require_once("class_funciones_gasto.php");
$io_fungas  = new class_funciones_gasto();
$ls_reporte = $io_fungas->uf_select_config("SPG","REPORTE","MODIFICACION_PRESUPUESTARIA_NO_APROBADAS","sigesp_spg_rpp_modificaciones_presupuestarias_no_aprobadas.php","C");
unset($io_fungas);
//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
	require_once("../shared/class_folder/sigesp_c_seguridad.php");
	$io_seguridad= new sigesp_c_seguridad();
    
	$dat         = $_SESSION["la_empresa"];
	$ls_empresa  = $dat["codemp"];
	$ls_logusr   = $_SESSION["la_logusr"];
	$ls_sistema  = "SPG";
	$ls_ventanas = "sigesp_spg_r_modificaciones_presupuestarias.php";
	$la_seguridad["empresa"]  = $ls_empresa;
	$la_seguridad["logusr"]   = $ls_logusr;
	$la_seguridad["sistema"]  = $ls_sistema;
	$la_seguridad["ventanas"] = $ls_ventanas;
	
	if (array_key_exists("permisos",$_POST)||($ls_logusr=="PSEGIS"))
	{	
		if($ls_logusr=="PSEGIS")
		{
			$ls_permisos="";
        </div></td>
      </tr>
      <tr>
        <td height="22">&nbsp;</td>
        <td height="22"><div align="right"><a href="javascript: ue_search();"><img src="../shared/imagebank/tools20/buscar.gif" alt="Buscar" width="20" height="20" border="0"> Buscar</a></div></td>
      </tr>
    </table>
	<br>
    <?php
require_once("../shared/class_folder/sigesp_include.php");
require_once("../shared/class_folder/class_mensajes.php");
require_once("../shared/class_folder/class_datastore.php");
require_once("../shared/class_folder/class_sql.php");
require_once("../shared/class_folder/class_funciones.php");
require_once("class_funciones_gasto.php");
$io_fun_gasto=new class_funciones_gasto();
$in     	= new sigesp_include();
$con    	= $in->uf_conectar();
$io_msg 	= new class_mensajes();
$ds     	= new class_datastore();
$io_sql 	= new class_sql($con);
$io_funcion = new class_funciones();

$ls_codemp    = $arr["codemp"];
$li_estmodest = $arr["estmodest"];
if (array_key_exists("operacion",$_POST))
   {
	 $ls_operacion  = $_POST["operacion"];
	 $ls_proyacc = $_POST["codigo"];
	 $ls_nombd = $_POST["denominacion"];
   }
			print(" alert('La Programación se Realizo Trimestral, No se puede usar esta opción .');");
			print(" location.href='sigespwindow_blank.php'");
			print("</script>");
		}	
	}
	else
	{
		print("<script language=JavaScript>");
		print(" alert('No Esta Configurado para Realizar la Modificación del Programado Presupuestario .');");
		print(" location.href='sigespwindow_blank.php'");
		print("</script>");
	}	
	
	
	$ls_empresa=$arre["codemp"];
	$io_fun_gasto=new class_funciones_gasto();
	$io_fun_gasto->uf_load_seguridad("SPG","sigesp_spg_p_modprog.php",$ls_permisos,$la_seguridad,$la_permisos);    
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    $title[1]="Mes Disminución";   
	$title[2]="Mes Aumento";
	$title[3]="Cuenta"; 
	$title[4]="Monto";
	$grid1="grid_modProg";	
	
    function cargar_linea_blanca($ls_fila, &$ls_object)
	{
		$ls_object[$ls_fila][1]="<input type=text name=txtmes1".$ls_fila." value='' class=sin-borde readonly style=text-align:center size=15 maxlength=15 style=text-align:center>";
		$ls_object[$ls_fila][2]="<input type=text name=txtmes2".$ls_fila." value='' class=sin-borde readonly style=text-align:center size=15 maxlength=15 style=text-align:center>";
		$ls_object[$ls_fila][3]="<input type=text name=txtcuentaplan".$ls_fila." value='' class=sin-borde readonly style=text-align:center size=15 maxlength=15 style=text-align:center>";
		$ls_object[$ls_fila][4]="<input type=text name=txtmontoact".$ls_fila." value='' class=sin-borde readonly style=text-align:center size=15 maxlength=15 style=text-align:right>";
	
<?php
    session_start();
	//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
	if(!array_key_exists("la_logusr",$_SESSION))
	{
		print "<script language=JavaScript>";
		print "location.href='../sigesp_inicio_sesion.php'";
		print "</script>";		
	}
	$ls_logusr=$_SESSION["la_logusr"];
	require_once("class_funciones_gasto.php");
	$io_fun_gasto=new class_funciones_gasto();
	$io_fun_gasto->uf_load_seguridad("SPG","sigesp_spg_p_transferir_traspasos.php",$ls_permisos,$la_seguridad,$la_permisos);
  //////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////

	require_once("../sigesp_config.php");
	require_once("../shared/class_folder/class_sql.php");
	require_once("../shared/class_folder/sigesp_include.php");
	require_once("../shared/class_folder/class_sql.php");
	require_once("../shared/class_folder/class_funciones.php");
	require_once("../shared/class_folder/class_mensajes.php");
	require_once("sigesp_spg_c_transferencia.php");
	require_once("sigesp_spg_c_mod_presupuestarias.php");
	require_once("../shared/class_folder/sigesp_c_seguridad.php");
	$io_seguridad = new sigesp_c_seguridad;
	$io_comprobantes = new sigesp_spg_c_mod_presupuestarias;
    $in        = new sigesp_include();
	$con       = $in->uf_conectar();
	$io_sql    =new class_sql($con);
	$msg=new class_mensajes();
	
	}

//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
$io_include=new sigesp_include();
$io_connect=$io_include->uf_conectar();
$io_sql=new class_sql($io_connect);
$io_function=new class_funciones();	
$io_fecha=new class_fecha();
$io_msg = new class_mensajes();
$io_function_db=new class_funciones_db($io_connect);
$in_classcmp=new sigesp_spg_c_comprobante();
$io_int_scg=new class_sigesp_int_scg();
$io_int_spg=new class_sigesp_int_spg();
$io_msg=new class_mensajes();
$io_grid=new grid_param();
$io_funciones_gasto= new class_funciones_gasto();

$la_emp=$_SESSION["la_empresa"];
$li_estmodest=$la_emp["estmodest"];
if(array_key_exists("operacion",$_POST))
{
	$ls_operacion = $_POST["operacion"];
 	$ls_procede = $_POST["txtproccomp"];
	$ls_comprobante = $_POST["txtcomprobante"];
	$ls_fecha     = $_POST["txtfecha"];
	$ls_provbene  = $_POST["txtprovbene"];
	$ls_desproben  = $_POST["txtdesproben"];
	$ls_tipo      = $_POST["tipo"];
	$ls_descripcion = $_POST["txtdesccomp"];
	$ls_status    = $_POST["status_actual"];
	$ls_codban     = $_POST["txtcodban"];
<?php
session_start();
if (!array_key_exists("la_logusr",$_SESSION))
   {
	 print "<script language=JavaScript>";
	 print "location.href='../sigesp_inicio_sesion.php'";
	 print "</script>";		
   }
require_once("class_funciones_gasto.php");
$io_fungas  = new class_funciones_gasto();
$ls_reporte = $io_fungas->uf_select_config("SPG","REPORTE","LISTADO DE APERTURA","sigesp_spg_rpp_listado_apertura_pdf.php","C");
unset($io_fungas);

//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
	require_once("../shared/class_folder/sigesp_c_seguridad.php");
	$io_seguridad= new sigesp_c_seguridad();
    
	$dat=$_SESSION["la_empresa"];
	$ls_empresa=$dat["codemp"];
	$ls_logusr=$_SESSION["la_logusr"];
	$ls_sistema="SPG";
	$ls_ventanas="sigesp_spg_r_listado_apertura.php";

	$la_seguridad["empresa"]=$ls_empresa;
	$la_seguridad["logusr"]=$ls_logusr;
	$la_seguridad["sistema"]=$ls_sistema;
	$la_seguridad["ventanas"]=$ls_ventanas;
	
	if (array_key_exists("permisos",$_POST)||($ls_logusr=="PSEGIS"))
	{	
		if($ls_logusr=="PSEGIS")
<?php 
session_start(); 
if(!array_key_exists("la_logusr",$_SESSION))
{
	print "<script language=JavaScript>";
	print "location.href='../sigesp_inicio_sesion.php'";
	print "</script>";		
}
//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
	require_once("../shared/class_folder/sigesp_c_seguridad.php");
	$io_seguridad= new sigesp_c_seguridad();
	require_once("class_funciones_gasto.php");
	$io_fun_gasto=new class_funciones_gasto();
    
	$dat=$_SESSION["la_empresa"];
	$ls_empresa=$dat["codemp"];
	$ls_logusr=$_SESSION["la_logusr"];
	$ls_sistema="SPG";
	$ls_ventanas="sigesp_spg_p_eliminar_comprobante.php";

	$la_seguridad["empresa"]=$ls_empresa;
	$la_seguridad["logusr"]=$ls_logusr;
	$la_seguridad["sistema"]=$ls_sistema;
	$la_seguridad["ventanas"]=$ls_ventanas;
	///referente al grid------------------------------------------------
	$ls_titletable="Comprobantes sin Detalles Presupuestarios ";
	$li_widthtable=550;
	$ls_nametable="grid";
	$lo_title[1]="Todos <input name=chkall type=checkbox id=chkall value=T style=height:15px;width:15px onClick=javascript:uf_select_all(); >";
	$lo_title[2]="Nro. de Comprobante";
	$lo_title[3]="Procedencia";
<?php
    session_start();
	//////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////
	if(!array_key_exists("la_logusr",$_SESSION))
	{
		print "<script language=JavaScript>";
		print "location.href='../sigesp_inicio_sesion.php'";
		print "</script>";		
	}
	$ls_logusr=$_SESSION["la_logusr"];
	require_once("class_funciones_gasto.php");
	$io_fun_gasto=new class_funciones_gasto();
	$io_fun_gasto->uf_load_seguridad("SPG","sigesp_spg_p_cerrarpre.php",$ls_permisos,$la_seguridad,$la_permisos);
  //////////////////////////////////////////////         SEGURIDAD               /////////////////////////////////////////////

	require_once("../sigesp_config.php");
	require_once("../shared/class_folder/class_sql.php");
	require_once("../shared/class_folder/sigesp_include.php");
	require_once("../shared/class_folder/class_sql.php");
	require_once("../shared/class_folder/class_funciones.php");
	require_once("../shared/class_folder/class_mensajes.php");
	require_once("sigesp_spg_c_transferencia.php");
	require_once("../shared/class_folder/sigesp_c_seguridad.php");
	require_once("sigesp_spg_c_mod_presupuestarias.php");
	$io_comprobantes = new sigesp_spg_c_mod_presupuestarias;
	$io_seguridad = new sigesp_c_seguridad;
    $in        = new sigesp_include();
	$con       = $in->uf_conectar();
	$io_sql    =new class_sql($con);
	$msg=new class_mensajes();