function Header()
 {
     $util = new cUtilerias();
     $expe = new cExpediente();
     $det = $expe->getDatosClienteImprimir($_GET['id']);
     // print_r($det);
     $this->Image("../logo.png", 10, 6, 30);
     // Arial bold 15
     $this->SetFont('Arial', 'B', 10);
     // Move to the right
     $this->Cell(80);
     // Title
     $this->Cell(30, 5, 'DETALLES DEL EXPEDIENTE DE ' . strtoupper($det['razon'] . " " . $det['nombre'] . " " . $det['a_pat'] . " " . $det['a_mat']), 0, 0, 'C');
     $this->Ln();
     $this->Cell(80);
     $this->Cell(30, 5, 'CLAVE DEL CLIENTE: ' . strtoupper($det['clave_agrupadora']), 0, 0, 'C');
     $this->Ln();
     $this->Cell(80);
     $this->Cell(30, 5, "FECHA DE IMPRESION: " . $util->convierteFechaTiempo(date("Y-m-d H:i:s")), 0, 0, "C");
     // Line break
     $this->Ln(20);
 }
<div  class="dataTables_wrapper form-inline">
<table id="example" class="table table-hover dataTable" data-page-length='25'>
        <thead>
            <tr>
                <th>Nombre/Raz&oacute;n</th>
                <th>Tel&eacute;fono</th>
                <th>Ciudad</th>
                <th>Tipo de Expediente</th>
                <th>Acciones</th>
            </tr>
        </thead>
 
        <tbody style="text-transform: uppercase;">
        	<?php 
include_once '../controller/cExpediente.php';
$exp = new cExpediente();
$con = $exp->listarExpedientesPIntervalo($_POST['tipo'], $_POST['finicio'], $_POST['ffin']);
$nmain = $exp->getNExpeMain($_POST['tipo']);
while ($l = $con->NextRow()) {
    ?>
        	 
 			<input id="tipoExpe" type="hidden" value="<?php 
    echo $_POST['tipo'];
    ?>
" />
        	<tr>
        		<td class="odd"><?php 
    echo $l['razon'] . $l['nombre'] . ' ' . $l['a_pat'] . ' ' . $l['a_mat'];
    ?>
</td>
        		<td><?php 
<?php

include_once "../controller/cExpediente.php";
$xpend = new cExpediente();
$cliente = $xpend->getExpediente($_POST['id']);
$detalles = $xpend->getDatosDetClte($_POST['id']);
$pert = $xpend->getDetallesPerfilTrans($_POST['id']);
$empleo = $xpend->getDetallesEmpClte($_POST['id']);
$domicilio = $xpend->getDetallesDomClte($_POST['id']);
$con = new Database();
$id = $_POST['id'];
$r = $con->Query("select m.id,t.id_tipo_expedientes as subtipo from main_tipos_expedientes as m, clientes_todos as cl, tipo_expedientes as t where t.id_main = m.id and cl.tipo_exp = t.id_tipo_expedientes and cl.id_cliente = {$id}");
?>

	
<div class="row">
	<div class="col-lg-12">
		<div class="alert alert-info">
                			NUEVO EXPEDIENTE PERSONA BAJA TRANSACCIONALIDAD
                		</div>
	</div>
</div>
<!--formulario baja transaccionalidad -->
<div class="row">
	<form id="commentForm">
		<input type="hidden" id="tipoExp" name="tipoExp" value="<?php 
echo $r['subtipo'];
?>
"  />
		<div id="rootwizard" class="col-md-12">
			<div class="form-wizard-steps">
 <?php 
session_start();
include_once "../model/mBitacora.php";
$bit = new mBitacora();
$bit->entradaBitacoraExp($_SESSION["usuario"]["idUsuario"], "Detalle Expedientes Cliente", "el usuario ha seleccionado un expediente para checar y/o modificar", $_POST['id']);
include_once '../controller/cExpediente.php';
$exp = new cExpediente();
$id = $_POST['id'];
$det = $exp->getExpediente($_POST['id']);
//cliente
$dom = $exp->getDetallesDomClte($id);
$r = $exp->getTipoExpe($id);
//cliente
if ($r['ide'] < 2) {
    $emp = $exp->getDetallesEmpClte($_POST['id']);
    //empledo del cliente
    $detp = $exp->getDatosDetClte($_POST['id']);
    //detalles del empleo del cliente
}
?>
<div class="page-title">
	<i class="fa fa-book"></i>

	<div class="row">
		<div class="col-lg-6">
	<h3>Consultar Detalles del Expediente: <?php 
echo $det['razon'] . " " . $det['nombre'] . " " . $det['a_pat'] . " " . $det['a_mat'];
?>
</h3> </div>
<div class="col-lg-3 col-lg-offset-1">
	<button class="btn btn-danger" onclick="modalGiros()">Modificar Giro</button>
<?php

include_once "../controller/cExpediente.php";
include_once "../helper/uploadFileClass.php";
$upo = new uploadFile();
$exped = new cExpediente();
if (isset($_POST['obligado'])) {
    $m = $exped->regExpedienteClteObligado('', $_POST['txtApellidoPaterno'], $_POST['txtApellidoMaterno'], $_POST['txtNombre'], $_POST['txtFechaNacimiento'], $_POST['tipoExp'], $_POST['compartir'], $_POST['prestarsinob'], 1, $_POST['ciudadnac'], $_POST['txtEstadoNac'], $_POST['txtTelefono'], $_POST['txtCorreo'], $_POST['txtCURP'], $_POST['txtRFC'], $_POST['txtNacionalidad'], $_POST['generoQ'], $_POST['giro'], $_POST['txtObservaciones'], $_POST['id_persona2']);
} else {
    $m = $exped->regNvoExp('', $_POST['txtApellidoPaterno'], $_POST['txtApellidoMaterno'], $_POST['txtNombre'], $_POST['txtFechaNacimiento'], $_POST['tipoExp'], $_POST['compartir'], $_POST['prestarsinob'], 1, $_POST['ciudadnac'], $_POST['txtEstadoNac'], $_POST['txtTelefono'], $_POST['txtCorreo'], $_POST['txtCURP'], $_POST['txtRFC'], $_POST['txtNacionalidad'], $_POST['generoQ'], $_POST['giro'], $_POST['txtObservaciones'], $_POST['id_persona2']);
}
$exped->creaPerfilTrans($m, $_POST['ingreso'], $_POST['origen_recursos'], $_POST['giro'], $_POST['destino_recursos'], $_POST['montooperaciones'], $_POST['numoperaciones']);
$iddom = $exped->regDomClte($m, $_POST['txtCalle'], $_POST['txtAvenida'], $_POST['txtNumeroEx'], $_POST['txtNumeroIn'], $_POST['txtColonia'], $_POST['txtCodigoPostal'], $_POST['txtCiudad'], $_POST['txtEstado'], '', 1, $_POST['txtDelegacion'], $_POST['txtPais'], 'no def', 'no def', $_POST['referenciaDom'], '', '', 1);
$exped->regDetallesExpe($m, $_POST['txtOcupacion'], $_POST['origen_recursos'], $_POST['destino_recursos'], 0, 1, '', '', '00:00', '', '', '', '');
$exped->regEmpleoClte($m, '', '', '', '', '', '', '', '', $_POST['ingreso'], '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
echo "EXPEDIENTE REGISTRADO CON ÉXITO";
//registra los adjuntos
//identificacion oficial
if (!empty($_FILES['identificacionOficial']['name'])) {
    $upo->guardarArchivo('identificacionOficial', $m);
    $exped->regAdjuntoExpend($_FILES['identificacionOficial']['name'], $m, $_POST['tipoDocIden']);
} else {
    $exped->regAdjuntoExpend("sin adjunto", $m, $_POST['tipoDocIden']);
}
//comprobante de domicilio
if (!empty($_FILES['comprobanteDom']['name'])) {
    $upo->guardarArchivo('comprobanteDom', $m);
    $exped->regAdjuntoDom($iddom, $_FILES['comprobanteDom']['name'], $_POST['tipoDocDom']);
} else {
    $exped->regAdjuntoDom($iddom, "sin adjunto", $_POST['tipoDocDom']);
}
                                            <div class="form-group" id="Persona">
                                                <div class="form-group">
                                                    <label>Persona <i id="spin"class="fa fa-spinner fa fa-2x fa-spin"></i></label>
                                                    <select name="personas" id="personas" class="" style="width:100%">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-3">
                                            <div class="form-group" id="tipoExpediente">
                                                <label>Tipo de Expediente</label>
                                                <select onchange="subTipoExpediente(this.value)" style="text-transform: uppercase;" name="cmbTipoExpediente" id="cmbTipoExpediente" class="form-control">
                                                    <option value="" selected="selected"> - Seleccione - </option>
                                                    <?php 
include_once '../controller/cExpediente.php';
$exp = new cExpediente();
$con = $exp->listarTipoExpdiente();
while ($fila = $con->NextRow()) {
    ?>
                                                        <option value="<?php 
    echo $fila["id"];
    ?>
"><?php 
    echo $fila["nombre"];
    ?>
</option>
                                                        <?php 
}
?>
                                                </select>
                                            </div>
<div class="row" id="divFormulario">
<?php 
include_once "../controller/cCatalogos.php";
include_once "../model/mAutocomplete.php";
include_once "../controller/cExpediente.php";
$expe = new cExpediente();
$clte = $expe->getExpediente($_POST['id']);
$clteall = new mAutocomplete();
$cltesk = $clteall->listaClientesClAgru();
$catgiros = new cCatalogos();
?>

	<form id="commentForm" name="formuPFMX"  enctype="multipart/form-data" method="post" action="../helper/regClientePFMX.php" >
		<input type="hidden" id="tipoExp" name="tipoExp"  />
		<input type="hidden" id="expePeligroso" name="expePeligroso" value="0" />
		<input type="hidden" id="claveAgrup" name="claveAgrup" value="0" />
		<div id="rootwizard" class="col-md-12">
			<div class="form-wizard-steps">
				<ul class="wizard-steps">
					<li class="" data-target="#step1" id="wizard_uno">
						<a href="#tab1" data-toggle="tab"> <span class="step">1</span> <span class="title">Información Fiscal</span> </a>
					</li>
					<li data-target="#step2" class=""id="wizard_dos">
						<a href="#tab2" data-toggle="tab"> <span class="step">2</span> <span class="title">Domicilio Particular</span> </a>
					</li>
					<li data-target="#step3" class="" id="wizard_tres">
						<a href="#tab3" data-toggle="tab"> <span class="step">3</span> <span class="title">Adjuntar Documentos</span> </a>
					</li>
					<li data-target="#step4" class=""id="wizard_cuatro">
						<a href="#tab4" data-toggle="tab"> <span class="step">4</span> <span class="title">Finalizar
							<br>
<?php

include_once "../controller/cExpediente.php";
$xpend = new cExpediente();
$cliente = $xpend->getExpediente($_POST['id']);
$pert = $xpend->getDetallesPerfilTrans($_POST['id']);
$domicilio = $xpend->getDetallesDomClte($_POST['id']);
$con = new Database();
$id = $_POST['id'];
$r = $con->Query("select m.id,t.id_tipo_expedientes as subtipo from main_tipos_expedientes as m, clientes_todos as cl, tipo_expedientes as t where t.id_main = m.id and cl.tipo_exp = t.id_tipo_expedientes and cl.id_cliente = {$id}");
?>
<div class="row">
	<form id="commentForm" >
		<input type="hidden" id="tipoExp" name="tipoExp" value="<?php 
echo $r['subtipo'];
?>
" />
		<div id="rootwizard" class="col-md-12">
			<div class="form-wizard-steps">
				<ul class="wizard-steps">
					<li class="" data-target="#step1" id="wizard_uno">
						<a href="#tab1" data-toggle="tab"> <span class="step">1</span> <span class="title">Información General</span> </a>
					</li>
					<li data-target="#step2" class=""id="wizard_dos">
						<a href="#tab2" data-toggle="tab"> <span class="step">2</span> <span class="title">Domicilio Fiscal</span> </a>
					</li>
					<li data-target="#step3" class="" id="wizard_tres">
						<a href="#tab3" data-toggle="tab"> <span class="step">3</span> <span class="title">Adjuntar Documentos</span> </a>
					</li>
					<li data-target="#step4" class=""id="wizard_cuatro">
						<a href="#tab4" data-toggle="tab"> <span class="step">4</span> <span class="title">Finalizar
<?php

include_once "../controller/cExpediente.php";
include_once "../controller/cContratos.php";
include_once "../controller/cAlertasManuales.php";
include_once "../controller/cUtilerias.php";
include_once "../controller/cPagos.php";
include_once "../controller/cPerfilTransaccional.php";
$alert = new cAlertasManuales();
$dalerta = $alert->devuelveAlerta($_POST['id']);
// print_r($dalerta);
$alert->cambiaEstatusAlerta($_POST['id'], 1);
$util = new cUtilerias();
$expen = new cExpediente();
$pfclte = new cPerfilTransaccional();
$alert->fechaL($_POST['id']);
?>
<div class="modal-dialog" role="document" style="width: 85%">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<h4 class="modal-title" id="myModalLabel">ANALIZAR ALERTA</h4>
		</div>
		<div class="modal-body">
			<ul class="nav nav-tabs" id="myTab">
				<li class="active">
					<a href="#informacion">Información</a>
				</li>
				<li>
 function updateRefClteComercial($fila, $id_Exp, $institucion, $referencia, $tipo)
 {
     $ex = new cExpediente();
     $ex->updateRefClteCom($fila, $id_Exp, $institucion, $referencia, $tipo);
 }
</div>
<div class="row">
	
<!--cabecera de la tabla (visible solo a la hora de imprimir)-->
<div id="cabeceraDocto" class="row">
	<div id="logoempresa" class="col-lg-3 col-lg-offset-1">
		<img src="../logo.png"  class="img-responsive" style="width:50%;height: 50%"/>
	</div>
	<div class="col-lg-4">
		<br />
		<center>
		<h3><strong> TABLA DE AMORTIZACI&Oacute;N</strong></h3>
		</center>
		<?php 
include_once "../controller/cExpediente.php";
$expend = new cExpediente();
$clieng = $expend->getExpediente($_POST['idClte']);
?>
		<h4 style="text-transform: uppercase">CLIENTE: <strong> <?php 
echo $clieng['razon'] . ' ' . $clieng['nombre'] . ' ' . $clieng['a_pat'] . ' ' . $clieng['a_mat'];
?>
</strong></h4>
		<h5 style="text-transform: uppercase">Fecha de Generaci&oacute;n: <?php 
echo date("Y-m-d H:i:s");
?>
</h5>
		
	</div>
</div>
	<div class="col-lg-10 col-lg-offset-1" id="nombreClteTbl">
		
            	<th>Clave de Expediente</th>
                <th>Nombre/Raz&oacute;n</th>
                <th>Fecha de Registro</th>
                <th>Ciudad</th>
                <!--th>Estado</th-->
                <th>Tipo de Expediente</th>
                <th>Acciones</th>
            </tr>
        </thead>

        <tbody style="text-transform: uppercase;">
        <?php 
include_once '../controller/cExpediente.php';
include_once '../controller/cUtilerias.php';
$util = new cUtilerias();
$exp = new cExpediente();
$con = $exp->listarExpedientesP($_POST['tipo'], $_POST['inicio'], $_POST['fin'], $_POST['activo']);
$nmain = $exp->getNExpeMain($_POST['tipo']);
while ($l = $con->NextRow()) {
    if ($l['idmain'] == 5) {
        //comparacion si el expediente es de obligado solidario y cambiar el color
        $tcolor = "#FFFF99";
    } else {
        //mostrams todos los expedientes que no sean obligado solidario
        $tcolor = "#BBDAFD";
    }
    if ($l['idmain'] != 5) {
        //mostrar los expedientes que no sean obligados solidarios
        ?>
				<tr>
        		<td>
<?php

include_once "../controller/cExpediente.php";
$expe = new cExpediente();
$lista = $expe->getContratosAc($_POST['idClte']);
while ($l = $lista->NextRow()) {
    echo "<option value='" . $l['id_contrato'] . "'>" . $l['id_contrato'] . "</option>";
}
<?php

include_once "../helper/uploadFileClass.php";
include_once "../controller/cExpediente.php";
$upload = new uploadFile();
$expe = new cExpediente();
// print_r($_POST);
$nvoDocto = $upload->guardarArchivo('nvoDocto', $_POST['idclte']);
$expe->nuevo_adjunto_otro($_POST['idclte'], $nvoDocto, $_POST['descripcion']);
// $expe->actualizaAdjunto($_POST['id_ad'],$nvoDocto, $_POST['tipo']);
header("Location: ../view/listarExpediente.php");
                		</div>
                	</div>
                </div>
                                </div>
                                <div class="grid-body no-border">
                                    <div class="row">
                                        <div class="col-lg-3">
                                            <div class="form-group">
                                            	<br />
                                                <label>Tipo de Expediente</label>
                                                <select style="text-transform: uppercase;" name="cmbTipoExpediente" id="cmbTipoExpediente" class="form-control">
                                                    <option value=""> - Seleccione - </option>
                                                    <option value="0" selected=""> Todos los Expedientes </option>
                                                    <?php 
include_once '../controller/cExpediente.php';
$exp = new cExpediente();
$con = $exp->listarTipoExpdienteTodos();
while ($fila = $con->NextRow()) {
    if ($fila["id"] != 5) {
        // Con esto se oculta obligado solidario en el combo
        ?>
                                                        <option value="<?php 
        echo $fila["id"];
        ?>
"><?php 
        echo $fila["nombre"];
        ?>
</option>
                                                        <?php 
    }
    // Con esto se oculta obligado solidario en el combo
<div  class="dataTables_wrapper form-inline">
<table id="example" class="table table-hover dataTable" data-page-length='25'>
        <thead>
            <tr>
                <th>Nombre/Raz&oacute;n</th>
                <th>Tel&eacute;fono</th>
                <th>Ciudad</th>
                <th>Tipo de Expediente</th>
                <th>Acciones</th>
            </tr>
        </thead>
 
        <tbody style="text-transform: uppercase;">
        	<?php 
include_once "../controller/cExpediente.php";
$expen = new cExpediente();
$lista = $expen->filtraContratoActivo($_POST['tipo'], $_POST['finicio'], $_POST['fin'], $_POST['filtrar']);
$nmain = $expen->getNExpeMain($_POST['tipo']);
while ($l = $lista->NextRow()) {
    ?>
        	 
 			<input id="tipoExpe" type="hidden" value="<?php 
    echo $_POST['tipo'];
    ?>
" />
        	<tr>
        		<td class="odd"><?php 
    echo $l['razon'] . $l['nombre'] . ' ' . $l['a_pat'] . ' ' . $l['a_mat'];
    ?>
</td>
        		<td><?php 
<?php

@session_start();
$editar = "";
$disbtn = "";
if ($_SESSION["usuario"]["idUsuario"] == 4) {
    $editar = "";
    $disbtn = "";
}
include_once '../model/mConexion.php';
include_once "../controller/cExpediente.php";
include_once "../controller/cCatalogos.php";
$catag = new cCatalogos();
$xpe = new cExpediente();
$tm = $xpe->getTipoExpe($_POST['id']);
$id_cliente = $_POST['id'];
$con = new Database();
$clte = $con->Fetch("select * from clientes_todos where id_cliente = " . $_POST['id']);
$sentencia = "select * from clientes_todos where id_cliente = " . $_POST['id'];
$tipo = $tm['subtipo'];
?>
<div class="modal-dialog" style="width: 85%">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<h4 class="modal-title" id="myModalLabel">Editando Expediente</h4>
		</div>
		<div class="modal-body">
			<ul class="nav nav-tabs" id="myTab">
	<h3>Seleccione tipo de documento</h3>
	<select name="idadjunto">
		<?php 
    while ($l = $lcata->NextRow()) {
        ?>
		<option value="<?php 
        echo $l['id_adj'];
        ?>
"><?php 
        echo $l['tipo'];
        ?>
</option>
		<?php 
    }
    ?>
	</select>
	<button>Subir Adjunto</button>
	</form>
<?php 
} else {
    include_once "../helper/uploadFileClass.php";
    include_once "../controller/cExpediente.php";
    $upload = new uploadFile();
    $expe = new cExpediente();
    echo "<br>idclte" . $_POST['idclte'];
    echo "<br>tipo" . $_POST['tipo'];
    echo "<br>id_ad" . $_POST['id_ad'];
    $nvoDocto = $upload->guardarArchivo('nvoDocto', $_POST['idclte']);
    // $expe->acutalizaAdjunto($_POST['idclte'], $_FILES['nvoDocto']['name'], $_POST['idadjunto']);
    $expe->actualizaAdjunto($_POST['id_ad'], $nvoDocto, $_POST['tipo']);
}
<?php

include_once "../helper/uploadFileClass.php";
include_once "../controller/cExpediente.php";
$upload = new uploadFile();
$expe = new cExpediente();
print_r($_POST);
$nvoDocto = $upload->guardarArchivo('nvoDocto', $_POST['idclte']);
$expe->actualizaAdjunto($_POST['id_ad'], $nvoDocto, $_POST['idadjunto'], "");
$nvoDocto = $upload->deleleFile($_POST['nombre_archivo'], $_POST['idclte']);
header("Location: ../view/listarExpediente.php");
<?php

include_once '../controller/cExpediente.php';
include_once "../helper/uploadFileClass.php";
$expe = new cExpediente();
$upo = new uploadFile();
//registra en la tabla clientes_todos
//guarda en la tabla clientes_todos
/*
 * parametros
 * razon = null
 * apellido paterno
 * apellido materno
 * nombre
 * fecha de nacimiento
 * tipo de expediente (int)
 * compartir cliente con otras sucursales (boolean)
 * prestar sin aval (boolean)
 * id_sucursal (int)
 * ciudad de origen
 * estado de origen
 * telefono
 * email
 * curp
 * rfc
 * nacionalidad
 * sexo (boolean)
 * giro
 *
 */
//inserta un nuevo cliente
<label>Subtipo</label>
<select name="subtipo" id="cmbSubTipo" class="form-control" style="text-transform: uppercase">
<?php 
include_once "../controller/cExpediente.php";
$ex = new cExpediente();
$lista = $ex->listaSubtiposExpedient($_POST['tipo']);
while ($l = $lista->NextRow()) {
    ?>
 <option value="<?php 
    echo $l['id_tipo_expedientes'];
    ?>
"><?php 
    echo $l['nombre'];
    ?>
</option>
<?php 
}
?>
</select>
            	<th>Clave Expediente</th>
                <th>Nombre/Raz&oacute;n</th>
                <th>Tel&eacute;fono</th>
                <th>Estado</th>
                <th>Ciudad</th>
                <th>Tipo de Expediente</th>
                <th>Acciones</th>
            </tr>
        </thead>

        <tbody style="text-transform: uppercase;">
        	<?php 
include_once '../controller/cExpediente.php';
include_once "../controller/cAsociarExpediente.php";
$asocr = new cAsociarExpedientes();
$exp = new cExpediente();
$con = $exp->listaExpAsoc($_POST['inicio'], $_POST['fin']);
while ($l = $con->NextRow()) {
    ?>
        	<tr>
                <td><?php 
    echo $l['id_persona'];
    ?>
</td>
        		<td><?php 
    echo $l['clave_agrupadora'];
    ?>
</td>
        		<td class="odd"><?php 
    echo $l['razon'] . $l['nombre'] . ' ' . $l['a_pat'] . ' ' . $l['a_mat'];
    ?>
																		<tr>
																			<th>Nombre/Razon</th>
																			<th>Telefono</th>
																			<th>Correo</th>
																			<th>Contrato</th>
																			<th>Fecha de Contrato</th>
																			<th>Monto de Cr&eacute;dito</th>
																			<th>Acciones</th>
																		</tr>
																	</thead>
																	<!--cuerpo de la tabla empleados-->
																	<tbody style="text-transform: uppercase;">
																		<?php 
include '../controller/cExpediente.php';
include '../controller/cUtilerias.php';
$exped = new cExpediente();
$util = new cUtilerias();
$lexpes = $exped->listarExpedientesTodos();
while ($ex = $lexpes->NextRow()) {
    ?>
																		<tr>
																			<td><?php 
    echo $ex['razon'] . " " . $ex['nombre'] . " " . $ex['a_pat'] . " " . $ex['a_mat'];
    ?>
</td>
																			<td><?php 
    echo $ex['telefono_p'];
    ?>
</td>
																			<td><?php 
    echo $ex['email'];
<?php

include "../controller/cExpediente.php";
include_once "../controller/cAsociarExpediente.php";
// $asoc = new cAsociarExpedientes();
// $idlcte = $asoc->retornaExpeClte($_POST['id']);
$expe = new cExpediente();
// $det = $expe -> getExpediente($idlcte);
$det = $expe->getExpediente($_POST['id']);
// $detasoc = $asoc->retornaDatosExpe($_POST['id']);
?>
<div class="modal-dialog">
	
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<!-- <h4 class="modal-title" id="myModalLabel" style="text-transform: uppercase">Detalles del Expediente Asociado  a : <?php 
//echo($detasoc['razon'] . " " . $detasoc['nombre'] . " " . $detasoc['a_pat'] . " " . $detasoc['a_mat']);
?>
</h4> -->
			<h4 class="modal-title" id="myModalLabel" style="text-transform: uppercase">Detalles del Expediente Encontrado</h4>
		</div>
		<div class="modal-body">
			<ul class="nav nav-pills" id="myTab">
				<li class="active">
					<a href="#home">Expediente</a>
				</li>
				<li>
					<a href="#profile">Domicilio</a>
  <?php 
include_once "../controller/cExpediente.php";
$expe = new cExpediente();
$lista = $expe->getExpedientesAsocClte($_POST['id']);
$persona = "";
while ($l = $lista->NextRow()) {
    $persona = $l['razon'] . " " . $l['nombre'] . " " . $l['a_pat'] . " " . $l['a_mat'];
    // echo $l['id_persona']
    // echo $l['razon']." ".$l['nombre']." ".$l['a_pat']." ".$l['a_mat']
    // echo $l['tipo']
    break;
}
?>
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title"style="text-transform:uppercase">Ver Expedientes Asociados a :<?php 
echo $persona;
?>
</h4>
      </div>
      <div class="modal-body">
        <div class="row">
        	<div class="col-lg-12">
          <!-- <label class="alert alert-info"><?php 
//echo($persona);
?>
</label> -->
        		<table class="table table-striped" style="text-transform: uppercase">
        			<thead>
            <div class="form-group" id="Persona">
                <div class="form-group">
                    <label>Persona <i id="spin"class="fa fa-spinner fa fa-2x fa-spin"></i></label>
                    <select name="personas" id="personas" class="form-control">
                    </select>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
          <div class="form-group">
          <label>Tipo de Expediente</label>
          <select onchange="subTipoExpediente(this.value)" style="text-transform: uppercase;" name="cmbTipoExpediente" id="cmbTipoExpediente" class="form-control">
          <option value=""> - Seleccione - </option>
          <?php 
include_once '../controller/cExpediente.php';
$exp = new cExpediente();
$con = $exp->listaExpedientesParaAsociar();
while ($fila = $con->NextRow()) {
    ?>
                <option value="<?php 
    echo $fila["id"];
    ?>
"><?php 
    echo $fila["nombre"];
    ?>
</option>
                <?php 
}
?>
              </select>
          </div>
<?php

include_once "../controller/cExpediente.php";
include_once "../helper/uploadFileClass.php";
var_dump($_POST);
$adjuntos = new uploadFile();
$exped = new cExpediente();
//expediente
$m = $exped->regNvoExp($_POST['txtRazonSocial'], '', '', '', $_POST['txtFechaConstitucion'], $_POST['tipoExp'], $_POST['compartir'], $_POST['prestarsinob'], 1, $_POST['ciudadOrigen'], $_POST['edoOrigen'], $_POST['txtTelefono'], $_POST['txtEmail'], 'N/A', $_POST['txtRFC'], $_POST['nacionalidad'], 1, $_POST['giro'], $_POST['txtObservaciones']);
$exped->creaPerfilTrans($m, $_POST['ingreso_mensual'], $_POST['origen_recursos'], $_POST['giro'], $_POST['destino_recursos']);
//domicilio
$dom = $exped->regDomClte($m, $_POST['txtCalle'], $_POST['txtAvenida'], $_POST['numext'], $_POST['numint'], $_POST['txtColonia'], $_POST['txtCP'], $_POST['txtCiudad'], $_POST['txtEstado'], '', 1, $_POST['txtDelegacion'], $_POST['txtPais'], '', '', '', '', '', $_POST['referenciaDom']);
for ($i = 1; $i <= $_POST['numReprs']; $i++) {
    $repre = $exped->regMiembrosPM($m, $_POST['txtApePaterno' . $i], $_POST['txtApeMaterno' . $i], $_POST['txtNombre' . $i], $_POST['txtPuesto' . $i]);
    //registra adjunto de identificacion oficial del representante
    if (!empty($_FILES['idenRep' . $i]['name'])) {
        $adjuntos->guardarArchivo('idenRep' . $i, $m);
        $exped->regAdjuntosRepPMS($_FILES['idenRep' . $i]['name'], $repre, $_POST['cbmIdenRep' . $i]);
    } else {
        $exped->regAdjuntosRepPMS('sin adjunto', $repre, $_POST['cbmIdenRep' . $i]);
    }
    //registra el poder notarial del representante
    if (!empty($_FILES['idenRep' . $i]['name'])) {
        $adjuntos->guardarArchivo('adjPoderRepr' . $i, $m);
        $exped->regAdjuntosRepPMS($_FILES['adjPoderRepr' . $i]['name'], $repre, 39);
    } else {
        $exped->regAdjuntosRepPMS('sin adjunto', $repre, 39);
    }
}
//registra adjunto de domicilio
if (!empty($_SESSION['comproDom']['name'])) {