<table id="example"  class="table table-hover  table-striped" data-page-length='25'>
        <thead>
            <tr>
                <th>Nombre/Raz&oacute;n</th>
                <th>RFC</th>
                <th>Categor&iacute;a de Riesgo</th>
                <th>Frecuencia de Contratos</th>
                <th>Frecuencia de Movimientos</th>
                <th>Acciones</th>
            </tr>
        </thead>
 
        <tbody style="text-transform: uppercase;">
<?php 
include_once '../controller/cPerfilTransaccional.php';
$perfiles = new cPerfilTransaccional();
$perf = $perfiles->getCLientes($_POST['inicio'], $_POST['fin'], $_POST['activo']);
while ($l = $perf->NextRow()) {
    ?>
        	<tr>
        		<td><?php 
    echo $l['razon'] . $l['nombre'] . " " . $l['a_pat'] . " " . $l['a_mat'];
    ?>
</td>
        		<td><?php 
    echo $l['rfc'];
    ?>
</td>
        		<td class="odd"><?php 
    switch ($l['categoria_riesgo']) {
        case 1:
<table id="example" class="table table-hover dataTable" data-page-length='25'>
        <thead>
            <tr>
                <th>Nombre/Raz&oacute;n</th>
                <th>RFC</th>
                <th>Categor&iacute;a de Riesgo</th>
                <th>Frecuencia de Contratos</th>
                <th>Frecuencia de Operaciones</th>
                <th>Acciones</th>
            </tr>
        </thead>
 
        <tbody style="text-transform: uppercase;">
        	<?php 
include_once '../controller/cPerfilTransaccional.php';
$perfs = new cPerfilTransaccional();
$contratos = $perfs->getCLientes();
while ($l = $contratos->NextRow()) {
    ?>
        	<tr>
        		<td class="odd"><?php 
    echo $l['razon'] . " " . $l['nombre'] . " " . $l['a_pat'] . " " . $l['a_mat'];
    ?>
</td>
        		<td class="odd"><?php 
    echo $l['rfc'];
    ?>
</td>
        		<td class="odd"><?php 
    echo $l['categoria_riesgo'];
    ?>
        <thead>
            <td>
                <tr><td>cliente:</td> 
                <td>Categor&iacute;a de riesgo y motivos de riesgo</td>
                
                <td>Mónto máximo acumulado diario</td>
                <td>Mónto máximo acumulado mensual</td>
                <td>Número máximo de pagos</td>
           
			
 				</tr>
 				
 				<tr>
 					<?php 
include_once '../controller/cPerfilTransaccional.php';
$perfs = new cPerfilTransaccional();
$contrato = $perfs->getCliente($_GET["id"]);
while ($l = $contrato->NextRow()) {
    ?>
        	 
 			
 					<td><?php 
    echo $l['nombre'] . " " . $l['a_pat'] . " " . $l['a_mat'];
    ?>
</td>
 					<?php 
}
?>
 					<td><a class="btn btn-primary" onclick="mostrarModal('<?php 
echo $_GET['id'];
?>
<?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>
<table id="example" class="table table-hover dataTable" data-page-length='25'>
        <thead>
            <tr>
                <th>Nombre/Raz&oacute;n</th>
                <th>RFC</th>
                <th>Categor&iacute;a de Riesgo</th>
                <th>Frecuencia de Contratos</th>
                <th>Frecuencia de Operaciones</th>
                <th>Acciones</th>
            </tr>
        </thead>
 
        <tbody style="text-transform: uppercase;">
        	<?php 
include_once '../controller/cPerfilTransaccional.php';
$perfs = new cPerfilTransaccional();
$contratos = $perfs->getCLientes();
while ($l = $contratos->NextRow()) {
    ?>
        	<tr>
        		<td class="odd"><?php 
    echo $l['razon'] . " " . $l['nombre'] . " " . $l['a_pat'] . " " . $l['a_mat'];
    ?>
</td>
        		<td><?php 
    echo $l['rfc'];
    ?>
</td>
        		<td class="odd"><?php 
    echo $l['categoria_riesgo'];
    ?>
<table id="example"  class="table table-hover  table-striped" data-page-length='25'>
        <thead>
            <tr>
                <th>Nombre/Raz&oacute;n</th>
                <th>RFC</th>
                <th>Categor&iacute;a de Riesgo</th>
                <th>Frecuencia de Contratos</th>
                <th>Frecuencia de Movimientos</th>
                <th>Acciones</th>
            </tr>
        </thead>

        <tbody style="text-transform: uppercase;">
        	<?php 
include_once '../controller/cPerfilTransaccional.php';
$perfiles = new cPerfilTransaccional();
$perf = $perfiles->getCLientes($inicio, $fin, 'true');
while ($l = $perf->NextRow()) {
    ?>
        	<tr>
        		<td><?php 
    echo $l['razon'] . $l['nombre'] . " " . $l['a_pat'] . " " . $l['a_mat'];
    ?>
</td>
        		<td><?php 
    echo $l['rfc'];
    ?>
</td>
        		<td class="odd"><?php 
    switch ($l['categoria_riesgo']) {
        case 1:
session_start();
if (empty($_SESSION["sqPLD"])) {
    header("Location: ../");
}
?>

            <div style="display: block;" class="grid-body ">
<div  class="dataTables_wrapper form-inline">
<table id="example" class="table table-hover dataTable" data-page-length='25'>
       
        <tbody style="text-transform: uppercase;">
        	
        	 <?php 
include_once '../controller/cPerfilTransaccional.php';
$perfs = new cPerfilTransaccional();
$contrato = $perfs->getCliente($_POST["idCliente"]);
switch ($_POST['op']) {
    case 1:
        /***************************************************************************************************/
        while ($l = $contrato->NextRow()) {
            ?>
 <thead>
            <tr>
                <th>información actual</th>
                <td>categoría de riesgo: <?php 
            echo $l["categoria_riesgo"];
            ?>
</td> </br>
                <td>motivo de riesgo: <?php 
            echo $l["motivo_riesgo"];