$sucursal = parametro("sucursal", $sucursal, MQL_RAW);
$BySuc = "";
//;
if ($sucursal != SYS_TODAS) {
    $BySuc = " AND creditos.`sucursal` = '{$sucursal}' ";
}
if ($fecha_inicial && $fecha_final) {
    $si_es_por_fecha = " AND operaciones_mvtos.fecha_operacion>='{$fecha_inicial}' AND operaciones_mvtos.fecha_operacion<='{$fecha_final}' ";
}
$senders = getEmails($_REQUEST);
$tipo_operacion = parametro("f711", SYS_TODAS, MQL_INT);
$tipo_operacion = parametro("operacion", $tipo_operacion, MQL_INT);
$out = parametro("out", SYS_DEFAULT);
$def_type = 110;
$sql = "SELECT creditos.convenio AS 'tipo', \n\t\t\tCOUNT(operaciones_mvtos.idoperaciones_mvtos) AS 'numero',\n\n\t\t\t\n\t\t\tSUM(operaciones_mvtos.afectacion_real) AS 'monto',\n\n\t\t\t/*SUM(creditos.monto_autorizado) AS 'monto_original',*/\n\t\t\t(SUM(operaciones_mvtos.afectacion_real) - SUM(creditos.saldo_actual)) AS 'cobros',\n\t\t\tSUM(creditos.saldo_actual) AS 'saldo_de_credito'\n\t\t\t \nFROM\n\t`operaciones_mvtos` `operaciones_mvtos` \n\t\tINNER JOIN `operaciones_recibos` `operaciones_recibos` \n\t\tON `operaciones_mvtos`.`recibo_afectado` = `operaciones_recibos`.\n\t\t`idoperaciones_recibos` \n\t\t\tINNER JOIN `creditos` `creditos` \n\t\t\tON `operaciones_mvtos`.`docto_afectado` = `creditos`.`solicitud` \nWHERE\n\t(`operaciones_recibos`.`tipo_pago` !='" . TESORERIA_COBRO_NINGUNO . "')\n\tAND (operaciones_mvtos.tipo_operacion={$def_type})\n\t{$BySuc}\n\t{$si_es_por_fecha}\nGROUP BY creditos.convenio";
$xHP->setTitle("TR.Reporte de Colocacion");
$titulo = $xHP->getTitle();
$archivo = "{$titulo}.pdf";
$xRPT = new cReportes($titulo);
$xRPT->setFile($archivo);
$xRPT->setOut($out);
$xRPT->setSQL($sql);
$xRPT->setTitle($xHP->getTitle());
//============ Reporte
$xT = new cTabla($sql, 2);
$xT->setTipoSalida($out);
$xT->setFootSum(array(1 => "numero", 2 => "monto", 3 => "cobros", 4 => "saldo_de_credito"));
$body = $xRPT->getEncabezado($xHP->getTitle(), $fecha_inicial, $fecha_final);
$xRPT->setBodyMail($body);
$xRPT->addContent($body);
$xRPT->addContent("<h1>" . $sucursal . "</h1>");
$idsolicitud = parametro("credito", $idsolicitud, MQL_INT);
$ShowAvales = parametro("p", false, MQL_BOOL);
if ($idrecibo == false) {
    if ($idsolicitud != false) {
        $xCred = new cCredito($idsolicitud);
        $xCred->init();
        $idrecibo = $xCred->getNumeroDePlanDePagos();
        if (setNoMenorQueCero($idrecibo) > 0) {
        } else {
            exit(JS_CLOSE);
        }
    } else {
        exit(JS_CLOSE);
    }
}
$xHP->setTitle($xHP->getTitle() . " # {$idrecibo}");
echo $xHP->getHeader(true);
echo $xHP->setBodyinit("window.print()");
echo $xHP->getEncabezado();
$PlanBody = $xHP->h1() . "<hr />";
$xRec = new cReciboDeOperacion(false, false, $idrecibo);
$xRec->init();
$xSoc = $xRec->getSocio();
$xSoc->init();
$xCred = $xRec->getCredito();
$xCred->init();
$xF = new cFecha();
$idsocio = $xSoc->getCodigo();
//"numero_socio"
$idsolicitud = $xRec->getCodigoDeDocumento();
// docto_afectado
 */
//=====================================================================================================
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("REPORTE DE ", HP_REPORT);
$xHP->setTitle($xHP->lang("catalogo de", "riesgo"));
$oficial = elusuario($iduser);
/**
 */
$xF = new cFecha();
$clave = isset($_GET["clave"]) ? $_GET["clave"] : SYS_NINGUNO;
echo $xHP->getHeader();
echo $xHP->setBodyinit("initComponents();");
$xFMT = new cFormato(151);
$xGar = new cCreditosGarantias($clave);
$xGar->init();
$xFMT->setPersona($xGar->getClaveDePersona());
$xFMT->setCredito($xGar->getClaveDeCredito());
$xFMT->setGarantiaDeCredito($clave);
$xFMT->setProcesarVars();
echo $xFMT->get();
 */
//=====================================================================================================
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("REPORTE DE ", HP_REPORT);
$xHP->setTitle($xHP->lang("catalogo de", "perfil_transaccional"));
/**
 */
$xF = new cFecha();
$estatus = isset($_GET["estado"]) ? $_GET["estado"] : SYS_TODAS;
$frecuencia = isset($_GET["periocidad"]) ? $_GET["periocidad"] : SYS_TODAS;
$convenio = isset($_GET["convenio"]) ? $_GET["convenio"] : SYS_TODAS;
$empresa = isset($_GET["empresa"]) ? $_GET["empresa"] : SYS_TODAS;
$out = isset($_GET["out"]) ? $_GET["out"] : SYS_DEFAULT;
$fechaInicial = isset($_GET["on"]) ? $xF->getFechaISO($_GET["on"]) : FECHA_INICIO_OPERACIONES_SISTEMA;
$fechaFinal = isset($_GET["off"]) ? $xF->getFechaISO($_GET["off"]) : fechasys();
echo $xHP->getHeader();
echo $xHP->setBodyinit("initComponents();");
echo getRawHeader();
$xRPT = new cReportes();
echo $xRPT->getEncabezado($xHP->getTitle());
    $xAml->init();
    $xAml->setGuardarDocumentoValidado($documento, AML_KYC_DOCTO_REAL, $observaciones);
    return $xAml->getMessages(OUT_HTML);
}
function jsaMarcarSinInfo($documento, $observaciones, $persona)
{
    $xAml = new cAMLPersonas($persona);
    $xAml->init();
    $xAml->setGuardarDocumentoValidado($documento, AML_KYC_DOCTO_NO_VERIFICADO, $observaciones);
    return $xAml->getMessages(OUT_HTML);
}
$jxc->exportFunction('jsaMarcarFalso', array('iddocumento', 'idobservaciones', 'idpersona'), '#idmsg');
$jxc->exportFunction('jsaMarcarReal', array('iddocumento', 'idobservaciones', 'idpersona'), '#idmsg');
$jxc->exportFunction('jsaMarcarSinInfo', array('iddocumento', 'idobservaciones', 'idpersona'), '#idmsg');
$jxc->process();
$xHP->setTitle($xHP->lang("validacion de", "documentos"));
echo $xHP->getHeader();
$jsb = new jsBasicForm("");
//$jxc ->drawJavaScript(false, true);
echo $xHP->setBodyinit();
$xFRM = new cHForm("frmvalidardocumentos", "./");
$xBtn = new cHButton();
$xTxt = new cHText();
$xAt = new cHTextArea();
$xFRM->setTitle($xHP->getTitle());
$sql = "SELECT\r\n\t`personas_documentacion`.`clave_de_control`,\r\n\t`personas_documentacion`.`clave_de_persona`,\r\n\t`socios`.`nombre`,\r\n\t`personas_documentacion`.`fecha_de_carga`,\r\n\t`personas_documentacion_tipos`.`nombre_del_documento`,\r\n\t`personas_documentacion`.`observaciones`,\r\n\t`personas_documentacion`.`estado_en_sistema`,\r\n\t`personas_documentacion`.`tipo_de_documento`  \r\nFROM\r\n\t`personas_documentacion` `personas_documentacion` \r\n\t\tINNER JOIN `socios` `socios` \r\n\t\tON `personas_documentacion`.`clave_de_persona` = `socios`.`codigo` \r\n\t\t\tINNER JOIN `personas_documentacion_tipos` \r\n\t\t\t`personas_documentacion_tipos` \r\n\t\t\tON `personas_documentacion`.`tipo_de_documento` = \r\n\t\t\t`personas_documentacion_tipos`.`clave_de_control` \r\nWHERE\r\n\t(`personas_documentacion`.`estado_en_sistema` =1)";
$ql = new cPersonas_documentacion();
$tdocto = new cPersonas_documentacion_tipos();
$sel = $ql->query()->select();
$sel->set($sql);
$data = $sel->exec();
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("TR.REPORTE DE OPERACIONES DE CAJA", HP_REPORT);
$mql = new cSQLListas();
$xF = new cFecha();
$query = new MQL();
$xHP->setTitle($xHP->getTitle());
$oficial = elusuario($iduser);
$estatus = parametro("estado", SYS_TODAS);
$frecuencia = parametro("periocidad", SYS_TODAS);
$producto = parametro("convenio", SYS_TODAS);
$producto = parametro("producto", $producto);
$empresa = parametro("empresa", SYS_TODAS);
$out = parametro("out", SYS_DEFAULT);
//$fechaInicial	= (isset($_GET["on"])) ? $xF->getFechaISO( $_GET["on"]) : FECHA_INICIO_OPERACIONES_SISTEMA;
//$fechaFinal		= (isset($_GET["off"])) ? $xF->getFechaISO( $_GET["off"]) : fechasys();
$fecha_inicial = isset($_GET["on"]) ? $_GET["on"] : "";
$fecha_final = isset($_GET["off"]) ? $_GET["off"] : "";
$cajero = isset($_GET["f3"]) ? $_GET["f3"] : SYS_TODAS;
$cajero = isset($_GET["cajero"]) ? $_GET["cajero"] : $cajero;
$ByCajero = ($cajero == "" or $cajero == SYS_TODAS) ? "" : " AND (`tesoreria_cajas_movimientos`.`idusuario` = {$cajero}) ";
echo $xHP->getHeader();
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("REPORTE DE ", HP_REPORT);
$mql = new cSQLListas();
$xF = new cFecha();
$query = new MQL();
$xHP->setTitle("TR.catalogo_de estado_civil");
$oficial = elusuario($iduser);
$estatus = isset($_GET["estado"]) ? $_GET["estado"] : SYS_TODAS;
$frecuencia = isset($_GET["periocidad"]) ? $_GET["periocidad"] : SYS_TODAS;
$convenio = isset($_GET["convenio"]) ? $_GET["convenio"] : SYS_TODAS;
$empresa = isset($_GET["empresa"]) ? $_GET["empresa"] : SYS_TODAS;
$out = isset($_GET["out"]) ? $_GET["out"] : SYS_DEFAULT;
$fechaInicial = isset($_GET["on"]) ? $xF->getFechaISO($_GET["on"]) : FECHA_INICIO_OPERACIONES_SISTEMA;
$fechaFinal = isset($_GET["off"]) ? $xF->getFechaISO($_GET["off"]) : fechasys();
echo $xHP->getHeader();
$sql = "SELECT * FROM socios_estadocivil ";
if ($out == OUT_EXCEL) {
    echo $xHP->setBodyinit();
    $xls = new cHExcel();
    $xls->convertTable($sql, $xHP->getTitle());
} else {
include_once "../core/entidad.datos.php";
include_once "../core/core.deprecated.inc.php";
include_once "../core/core.fechas.inc.php";
include_once "../core/core.config.inc.php";
include_once "../core/core.creditos.inc.php";
include_once "../core/core.creditos.utils.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.captacion.inc.php";
include_once "../core/core.common.inc.php";
include_once "../core/core.operaciones.inc.php";
include_once "../core/core.contable.inc.php";
$oficial = elusuario($iduser);
$parent = isset($_POST["c"]) ? $_POST["c"] : false;
$txtBuscar = isset($_POST["cBuscar"]) ? $_POST["cBuscar"] : "";
$xHP = new cHPage();
$xHP->setTitle("Editar/Agregar Cajas Locales");
/*if($parent == false){

	echo $xHP->getHeader();

echo '
<body>
<fieldset>
	<legend>Editar Configuracion del Sistema</legend>

<form name="frmmenu" method="POST" action="./socios_caja_local.frm.php">
	<table>
		<tr>
			<td>';*/
/*$sqlMost 	= "SELECT tipo, CONCAT(tipo, ' (' , COUNT(nombre_del_parametro), ')' ) AS 'conceptos'
					    FROM entidad_configuracion
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("REPORTE DE ", HP_REPORT);
$mql = new cSQLListas();
$xF = new cFecha();
$query = new MQL();
$xHP->setTitle("TR.catalogo_de genero");
$oficial = elusuario($iduser);
$estatus = isset($_GET["estado"]) ? $_GET["estado"] : SYS_TODAS;
$frecuencia = isset($_GET["periocidad"]) ? $_GET["periocidad"] : SYS_TODAS;
$convenio = isset($_GET["convenio"]) ? $_GET["convenio"] : SYS_TODAS;
$empresa = isset($_GET["empresa"]) ? $_GET["empresa"] : SYS_TODAS;
$out = isset($_GET["out"]) ? $_GET["out"] : SYS_DEFAULT;
$fechaInicial = isset($_GET["on"]) ? $xF->getFechaISO($_GET["on"]) : FECHA_INICIO_OPERACIONES_SISTEMA;
$fechaFinal = isset($_GET["off"]) ? $xF->getFechaISO($_GET["off"]) : fechasys();
echo $xHP->getHeader();
$sql = "SELECT * FROM socios_genero ";
if ($out == OUT_EXCEL) {
    echo $xHP->setBodyinit();
    $xls = new cHExcel();
    $xls->convertTable($sql, $xHP->getTitle());
} else {
//=====================================================================================================
//=====>	INICIO_H
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
//=====================================================================================================
$xHP = new cHPage("TR.Cobranza.- Efectivo", HP_FORM);
$xHP->setTitle($xHP->lang("cobro en", "efectivo"));
$xJS = new jsBasicForm("frmCobrosEnEfectivo");
//=========================== AJAX
$jxc = new TinyAjax();
function jsaSetPago($Recibo, $MontoRecibido, $Moneda, $MontoOriginal)
{
    $xCaja = new cCaja();
    if ($Moneda != AML_CLAVE_MONEDA_LOCAL) {
        $op = $xCaja->setCobroEfectivo($Recibo, $MontoOriginal, 0, "", false, $Moneda, $MontoRecibido);
    } else {
        $op = $xCaja->setCobroEfectivo($Recibo, $MontoRecibido, 0, "", false, $Moneda, $MontoOriginal);
    }
    if ($op == false) {
        return $xCaja->getMessages(OUT_HTML);
    }
}
//=====>	INICIO_H
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage();
$xHP->setTitle($xHP->lang(array("registro", "de", "flujo_de_efectivo")));
$idsolicitud = $_GET["solicitud"];
echo $xHP->getHeader(true);
?>
<script>
	function checkvalue() {
		if (document.frmflujoefvo.montoflujo.value > 0 ) {
			document.frmflujoefvo.submit();

		} else {
			alert('El Valor Indicado debe ser Mayor a 0');
			return 0;
		}
	}
</script>
<body>
 function setOut($out = OUT_HTML)
 {
     if ($out == SYS_DEFAULT) {
         $out = OUT_HTML;
     }
     $xHP = new cHPage("", HP_REPORT);
     $this->mOut = $out;
     switch ($out) {
         case OUT_EXCEL:
             //NADA
             break;
         case OUT_TXT:
             //NADA
             break;
         default:
             $xHP->setTitle($this->mTitulo);
             $xHP->setDevice($out);
             //setLog($out);
             foreach ($this->mCSSList as $key => $file) {
                 $xHP->addCSS($file);
             }
             $this->mHeader = $xHP->getHeader() . $this->mHeader;
             //$this->mHeader	.= "<style>.logo{ margin-left: .5em; max-height: 5em; max-width: 5em;	margin-top: 0 !important; border-color: #808080; z-index: 100000 !important;}</style>";
             //$this->mHeader	.= $xHP->setBodyinit("javascript:window.print();");
             $this->mHeader .= "<body>";
             $this->mFooter .= "</body></html>";
             break;
     }
 }
/* verifica si el socio o datos son validos */
$arrD = array();
if ($relacionado == DEFAULT_SOCIO) {
    $arrD = array("idsocios_relaciones" => 0, "socio_relacionado" => $idsocio, "credito_relacionado" => DEFAULT_CREDITO, "tipo_relacion" => 11, "numero_socio" => DEFAULT_SOCIO, "nombres" => '', "apellido_paterno" => '', "apellido_materno" => '', "domicilio_completo" => 'mismo', "telefono_residencia" => '0', "telefono_movil" => '0', "fecha_nacimiento" => fechasys(), "monto_relacionado" => 0, "porcentaje_relacionado" => 1, "curp" => 'POR_REGISTRAR', "observaciones" => '', "consanguinidad" => 3, "estatus" => 0, "dependiente" => 1, "ocupacion" => 'POR_REGISTRAR', "calificacion_del_referente" => 0, "codigopostal" => 0);
} else {
    $xSoc = new cSocio($idsocio);
    $arrD = $xSoc->getDatosRelacionInArray($relacionado);
}
//Parche
$arrD["calle"] = "";
$arrD["numero"] = "";
$arrD["colonia"] = "";
$arrD["codigopostal"] = "";
//$xH	= new cHTMLObject("Partes Relacionadas de Socios");
//$xH->setHeaders();
$xHP->setTitle(PERSONAS_TITULO_PARTES . ".-" . getNombreSocio($idsocio));
$xHP->addJsFile("../jsrsClient.js");
$xHP->addJsFile("../js/jquery/jquery.js");
$xHP->addJsFile("../js/jquery/jquery.qtip.min.js");
$xHP->addJsFile("../js/curp.js");
$xHP->addJsFile("../js/config.js.php");
$xHP->addJsFile("../js/general.js");
$xHP->addCSS("../css/jquery.qtip.css");
echo $xHP->getHeader();
$jxc->drawJavaScript(false, true);
?>
<body onload="initComponents()">
<fieldset>
<legend><script> document.write(document.title); </script></legend>
<form name="frmreferencias" id="idfrmreferencias"  action="referencias.directas.cls.php?idsocio=<?php 
echo $_GET["socio"];
 */
//=====================================================================================================
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("REPORTE DE ", HP_REPORT);
$xHP->setTitle($xHP->lang("catalogo de", "documentacion"));
$oficial = elusuario($iduser);
/**
 */
$xF = new cFecha();
$estatus = isset($_GET["estado"]) ? $_GET["estado"] : SYS_TODAS;
$frecuencia = isset($_GET["periocidad"]) ? $_GET["periocidad"] : SYS_TODAS;
$convenio = isset($_GET["convenio"]) ? $_GET["convenio"] : SYS_TODAS;
$empresa = isset($_GET["empresa"]) ? $_GET["empresa"] : SYS_TODAS;
$out = isset($_GET["out"]) ? $_GET["out"] : SYS_DEFAULT;
$fechaInicial = isset($_GET["on"]) ? $xF->getFechaISO($_GET["on"]) : FECHA_INICIO_OPERACIONES_SISTEMA;
$fechaFinal = isset($_GET["off"]) ? $xF->getFechaISO($_GET["off"]) : fechasys();
echo $xHP->getHeader();
echo $xHP->setBodyinit("initComponents();");
echo getRawHeader();
$xRPT = new cReportes();
//=====>	INICIO_H
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage();
$xHP->setTitle($xHP->lang(array("registro", "de", "garantia", "real")));
$jxc = new TinyAjax();
function JSsetDatosHeredados($socio, $form)
{
    $DSocio = getDatosSocio($socio);
    $DDom = getDatosDomicilio($socio);
    $telefono = $DDom["telefono_residencial"];
    $telefonomovil = $DDom["telefono_movil"];
    $domicilio = domicilio($socio);
    $tab = new TinyAjaxBehavior();
    $tab->add(TabSetValue::getBehavior('idTFijo', $telefono));
    $tab->add(TabSetValue::getBehavior('idDomicilio', $domicilio));
    $tab->add(TabSetValue::getBehavior('idTMovil', $telefonomovil));
    $tab->add(TabSetValue::getBehavior('idNombres', $DSocio["nombrecompleto"]));
    $tab->add(TabSetValue::getBehavior('idApPaterno', $DSocio["apellidopaterno"]));
    $tab->add(TabSetValue::getBehavior('idApMaterno', $DSocio["apellidomaterno"]));
//=====================================================================================================
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage();
$xHP->setTitle($xHP->lang(array("imprimir", "solicitud", "de", "credito")));
echo $xHP->getHeader();
?>
<body>
<?php 
$idsolicitud = $_GET["solicitud"];
if (!$idsolicitud) {
    exit("NO HAY SUFICIENTES DATOS PARA LLEVAR A CABO EL INFORME");
}
// enumera los conceptos a imprimir, por defecto todos estan aceptado.
?>
<fieldset>
<legend>IMPRIMIR SOLICITUD DE CREDITO.- OPCIONES DE IMPRESION</legend>
<form name="frmlist" action="rptsolicitudcredito1.php" method="post">
<table>
	<tr>
 */
//=====================================================================================================
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("", HP_FORM);
$xHP->setTitle($xHP->lang("REPORTAR", "CONDUCTA_INADECUADA"));
$DDATA = $_REQUEST;
$action = isset($DDATA["action"]) ? $DDATA["action"] : SYS_NINGUNO;
//$jxc = new TinyAjax();
//$jxc ->exportFunction('datos_del_pago', array('idsolicitud', 'idparcialidad'), "#iddatos_pago");
//$jxc ->process();
echo $xHP->getHeader();
$jsb = new jsBasicForm("");
//$jxc ->drawJavaScript(false, true);
echo $xHP->setBodyinit();
$xFRM = new cHForm("frmreporteempleado", "reportar_empleado.frm.php?action=" . SYS_UNO);
$xBtn = new cHButton();
$xTxt = new cHText();
$xSel = new cHSelect();
$xFec = new cHDate();
$xTa = new cHTextArea();