MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/php/ticket_cerrado_info.php
<?php


$atencion = $_GET["atencion"];


require_once('../Conectarse.php');



//INFORMACIONCION DE SOLICITUD_CITAS_JURIDICAS
$consulta = mysql_query('SELECT numerocontrato, fecha_auto, hora_auto, sucursal_enviada, programa, cod_funcionario_llamada, funcionario_llamada, funcionario, tipo_funcionario, nombre_funcionario, funcionario_cita, nombre_funcionario_cita, cita_agendada, funcionario_proceso, supervisor, direccionado, atencion, asesoria_solicitada, instrucciones_impartidas, documentos_requeridos, acciones_cumplir, informacion_inicio, respuesta_abogado_trabajo, fecha_ejecucion, fecha_cumplimiento, contacto_directo, contacto_directo_histoser, solucion_caso, fecha_solucion_caso, respuesta_funcionario, respuesta_funcionario_trabajo, quejas, respuesta_quejas, respuesta_director_callcenter, accion_supervisor, accion_supervisor_sucursal, accion_control_interno, respuesta_control_interno, respuesta_comercial, respuesta_ventas, respuesta_desafiliaciones, respuesta_cobranzas, respuesta_cartera, respuesta_debitos, respuesta_financiera, respuesta_credito_rotativo, respuesta_recepcion_documentos, respuesta_recepcion_cuotas, respuesta_telecreditos, respuesta_telejuridicas, respuesta_acciones_constitucionales, respuesta_gerencia_general, respuesta_asesor_comercial, fecha_agendamiento_asesor, hora_agendamiento_asesor, visita_telemercaderista, venta_directa_telemercaderista, respuesta_supervisor_comercial, informe_resultados_visita, respuesta_trabajo_pendiente, respuesta_referidos, evolucion, tipo_legalizacion, fecha_asignacion, fecha_inicio,  respuesta_director_comercial, nombre_representante, empresa, funcionario_recursos, funcionario_recibe_doc, celular_contacto, nombre_director, respuesta_informe_empresarial,cedula FROM solicitud_citas_juridicas WHERE atencion = "'.$_GET["atencion"].'" ');
if (!$consulta) {
			die('Error de consulta: ' . mysql_error());
}
list($numcon, $fecha_llamada, $hora_llamada, $sucursal_enviada, $programa, $cod_funcionario_llamada, $funcionario_llamada, $funcionario, $tipo_funcionario, $nombre_funcionario, $funcionario_cita, $nombre_funcionario_cita, $cita_agendada, $funcionario_proceso, $supervisor, $direccionado, $atencion, $asesoria_solicitada, $instrucciones_impartidas, $documentos_requeridos, $acciones_cumplir, $informacion_inicio, $respuesta_abogado_trabajo, $fecha_ejecucion, $fecha_cumplimiento, $contacto_directo, $contacto_directo_histoser, $solucion_caso, $fecha_solucion_caso, $respuesta_funcionario, $respuesta_funcionario_trabajo, $quejas, $respuesta_quejas, $respuesta_director_callcenter, $accion_supervisor, $accion_supervisor_sucursal, $accion_control_interno, $respuesta_control_interno, $respuesta_comercial, $respuesta_ventas, $respuesta_desafiliaciones, $respuesta_cobranzas, $respuesta_cartera, $respuesta_debitos, $respuesta_financiera, $respuesta_credito_rotativo, $respuesta_recepcion_documentos, $respuesta_recepcion_cuotas, $respuesta_telecreditos, $respuesta_telejuridicas, $respuesta_acciones_constitucionales, $respuesta_gerencia_general, $respuesta_asesor_comercial, $fecha_agendamiento_asesor, $hora_agendamiento_asesor, $visita_telemercaderista, $venta_directa_telemercaderista, $respuesta_supervisor_comercial, $informe_resultados_visita, $respuesta_trabajo_pendiente, $respuesta_referidos, $evolucion, $tipo_legalizacion, $fecha_asignacion, $fecha_inicio, $respuesta_director_comercial, $nombre_representante, $empresa, $funcionario_recursos, $funcionario_recibe_doc, $celular_contacto, $nombre_director, $respuesta_informe_empresarial,$cedula) = mysql_fetch_row($consulta);


//consulta nombre de funcionario
$consulta_funcionario = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$funcionario.'" ');
list($nombre_funcionario) = mysql_fetch_row($consulta_funcionario);

//
$consulta_funcionario_atendio_llamada = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$cod_funcionario_llamada.'" ');
list($nombre_funcionario_atendio_llamada) = mysql_fetch_row($consulta_funcionario_atendio_llamada);

//
$consulta_sucursal_enviada = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "'.$sucursal_enviada.'" ');
list($nombre_sucursal_enviada) = mysql_fetch_row($consulta_sucursal_enviada);








$control = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email FROM cartera_serviasjudinet  WHERE cedula =  "' .$cedula  . '" ');
	if (!$control) {
		die('Error de consulta: ' . mysql_error());
	}
list($cedula_c,$nombre_completo, $direccion, $telefono, $celular, $ciudad, $email) = mysql_fetch_row($control);
$fil = mysql_num_rows($control);	
	  
	  	 
if ($fil == '0')
{
	$control = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email FROM beneficiarios  WHERE cedula =  "' .$cedula  . '" ');
	if (!$control) {
	die('Error de consulta: ' . mysql_error());
	}
	
list($cedula_c,$nombre_completo, $direccion, $telefono, $celular, $ciudad, $email) = mysql_fetch_row($control);
$fil = mysql_num_rows($control);
	 
	 
	if ($fil == '0')
	{
		$control = mysql_query('SELECT cedula, nombres,apellidos, direccion_empresa , telefono_empresa, celular, email FROM consultorio_juridico  WHERE cedula =  "' . $cedula  . '" ');
		if (!$control) {
			die('Error de consulta: ' . mysql_error());
		}
		list($cedula_c,$nombre,$apellido, $direccion, $telefono, $celular, $email) = mysql_fetch_row($control);

		$nombre_completo = $apellido.' '.$nombre ;
	  
	}
	 
	 /////////////*****
	 
	 
	if ($fil == '0')
	{
		$control = mysql_query('SELECT cedula, nombre,ciudad, direccion , telefono, celular, email,grado FROM solicitud_credito  WHERE cedula =  "' .$cedula  . '" ');
		if (!$control) {
			die('Error de consulta: ' . mysql_error());
		}
	list($cedula_c,$nombre_completo, $ciudad,$direccion, $telefono, $celular, $email,$grado) = mysql_fetch_row($control);
	 
	 
	}
	 
	 
}
	 
//$query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
$sql = mysql_query('SELECT * FROM sucursal WHERE (codigo != "20" and codigo != "28" and codigo != "41" and codigo != "42" and codigo != "45" and codigo != "46" and codigo != "47" and codigo != "48" and codigo != "49") order by nombre');
	if (!$sql) {
		die('Invalid query: ' . mysql_error());
	}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql); 

	
$sql2 = mysql_query('SELECT * FROM asjudinet_abogados  WHERE vigentes = "1" order by nombre_completo');
	if (!$sql2) {
		die('Invalid query: ' . mysql_error());
	}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2); 
	 
	
$sql3 = mysql_query('SELECT * FROM Usuarios  WHERE Cargo != "ABOGADO" ORDER BY Nombre_Completo');
	if (!$sql3) {
		die('Invalid query: ' . mysql_error());
	}
$row_sql3 = mysql_fetch_assoc($sql3);
$totalRows_sql3 = mysql_num_rows($sql3); 	
	
	
$cedulafun = $cedu;
	



//2020
$solo_estado = mysql_query('SELECT nuevo_ventas, atencion FROM solicitud_citas_juridicas WHERE atencion = "'.$_GET["atencion"].'" ');
list($nuevo_ventas, $atencion) = mysql_fetch_row($solo_estado);
if($nuevo_ventas == "SI"){
	$consulta = mysql_query('SELECT cedula, nombre, direccion, celular, telefono, ciudad, email FROM solicitud_citas_juridicas WHERE atencion = "'.$_GET["atencion"].'" ');
	if (!$consulta) {
		die('Error de consulta: ' . mysql_error());
	}
	list($cedula_c, $nombre_completo, $direccion, $celular, $telefono, $ciudad, $email)=mysql_fetch_row($consulta);
}




//legalizaciones
$consulta_audio = mysql_query('SELECT nombre_archivo_audio FROM legalizaciones WHERE cedula = "'.$cedula.'" and ticket = "'.$_GET["atencion"].'"');
if (!$consulta_audio) {
		die('Error de consulta: ' . mysql_error());
}

list($nombre_audio)= mysql_fetch_row($consulta_audio);



$control1 = mysql_query("SELECT numero_entrante, fecha_auto, hora_auto, extension FROM solicitud_citas_juridicas WHERE cedula = '".$cedula."' and atencion = '".$_GET["atencion"]."' ");
if (!$control) {
	die('Invalid query 188: ' . mysql_error());
}
list($numero_entrante, $fecha_ticket, $hora_ticket, $extension_ticket)=mysql_fetch_row($control1);
?>

<html>
<head>
<title>INFORMACION TICKET</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo1 {font-family: "Arial Narrow"}
.Estilo2 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo45 {
	color: #0066FF;
	font-size: 16px;
}
.Estilo48 {
	color: #FFFFFF;
	font-weight: bold;
}
.estilo49{
	color: red;
}
.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
.tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
.justify{text-align: justify; padding: 5px;}
    
    .rojo{color:#C60000;}
-->
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
         var mydate=new Date()
         var year=mydate.getYear()
         if (year < 1000)
                 year+=1900
                 var day=mydate.getDay()
                 var month=mydate.getMonth()
                 var daym=mydate.getDate()
                 if (daym<10)
                    daym="0"+daym
                    var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
                    var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
                    document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}					
</script>

<script Language="JavaScript"><!--
function validar(formulario)
{

}
//--></script>

<script Language="JavaScript"><!--
var timerID = null;
var timerRunning = false; 
var id,pause=0,position=0; 
function stopclock () 
{
    if(timerRunning) 
        clearTimeout(timerID); 
    timerRunning = false;
}

function showtime ()
{ 
    var now = new Date();
    var hours = now.getHours(); 

    var minutes = now.getMinutes(); 
    var seconds = now.getSeconds() 
    var timeValue = "" + ((hours >12) ? hours -12 :hours)
    timeValue += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue += ((seconds < 10) ? ":0" : ":") + seconds
    timeValue += (hours >= 12) ? " p.m." : " a.m." 
    document.formulario.hora.value = timeValue;
    timerID = setTimeout("showtime()",1000);
    timerRunning = true; 
}

function startclock ()
{ 
    stopclock ();
    showtime ();
}

//--></script>
<style type="text/css">
<!--
.Estilo59 {color: #CC0000}
.Estilo60 {color: #006600}
.Estilo61 {font-size: 16px}
.Estilo62 {
	color: #FF0000;
	font-weight: bold;
}
.Estilo65 {color: #FF3300}
.Estilo66 {
	color: #000000;
	font-style: italic;
}
-->
</style>
</head>

	
	
	
<body onLoad="document.formulario.ciudad.focus();startclock()">

<form method="post" name="formulario" onSubmit="return validar(this)">
 <table width="300" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
  <tr valign="baseline" bgcolor="#F2F2E6">
    <td width="180" bgcolor="#FFFFCC">
      <table width="987" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">
      <tr valign="baseline" bgcolor="#FF6600">
        <td colspan="8" align="right" nowrap bgcolor="#CCFFFF"><div align="center"><span class="Estilo2 Estilo59">INFORMACIÓN TICKET</span></div></td>
      </tr>
      <tr valign="baseline" bgcolor="#FAFAF5">
        <td colspan="8" align="right" nowrap bgcolor="#CCFFFF"><div align="center" class="Estilo2">
          <script languaje="JavaScript">Mostrar_Fecha()</script>
        </div></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td colspan="8" bgcolor="#CCFFFF"><table width="900">
          <tr>
            <td width="265"><div align="center"></div></td>
            <td width="289"><div align="center"><span class="Estilo19 Estilo20">Fecha dd-mm/aaaa:</span><span class="Estilo21"> <span class="Estilo13">
              <input name="dia" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly>
              <input name="mes" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly>
              <input name="ano" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly>
            </span></span></div></td>
            <td width="265"><div align="center"></div></td>
          </tr>
        </table></td>
      </tr>
		  
		  
		<tr>
		<td class="Estilo5 Estilo1 Estilo61">Fecha de servicio</td>
		<td><input name="ced3" type="text" value="<?php echo $fecha_llamada ?>" size="30" maxlength="30" readonly></td>
		<td class="Estilo5 Estilo1 Estilo61">Fecha de cumplimiento</td>
		<td><input name="ced3" type="text" value="<?php echo $fecha_cumplimiento ?>" size="30" maxlength="30" readonly></td>
		
	</tr>
      
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Numero de Cedula:</span></strong></div>
        </div></td>
        <td width="198" bgcolor="#CCFFFF"><input name="ced3" type="text" value="<?php echo $cedula_c ?>" size="30" maxlength="30" readonly></td>
        <td width="174" bgcolor="#CCFFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Nombre:</span></strong></td>
        <td width="359" bgcolor="#CCFFFF"><input name="name_full" type="text" id="name_full" value="<?php echo $nombre_completo ?>" size="50" maxlength="50" readonly></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Direccion:</span></strong></div>
        </div></td>
        <td bgcolor="#CCFFFF"><input name="dir" type="text" id="dir" value="<?php echo $direccion ?>" size="45" maxlength="45" ></td>
		  <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Telefono:</span></strong></div>
        </div>
		<td bgcolor="#CCFFFF"><input name="tel" type="text" id="tel" value="<?php echo $telefono ?>" size="30" maxlength="30" ></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
          <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Numero Celular:</span></strong></div>
        </div></td>
        <td bgcolor="#CCFFFF"><input name="celular" type="text" id="celular" value="<?php echo $celular ?>" size="30" maxlength="30" ></td>
        <td bgcolor="#CCFFFF"><strong><span class="Estilo5 Estilo1 Estilo45 Estilo60">Ciudad:</span></strong></td>
        <td bgcolor="#CCFFFF"><input name="ciu" type="text" id="ciu" value="<?php echo $ciudad ?>" size="30" maxlength="30"></td>
      </tr>
      <tr valign="baseline" bgcolor="#F2F2E6">
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Email:</span></strong></div></td>
        <td colspan="2" bgcolor="#CCFFFF"><input name="mail" type="text" id="mail" value="<?php echo $email ?>" size="50" maxlength="50" ></td>
		<td>TICKET  <span class="roja"><?php echo $atencion ?></td>  
     </tr>
		  
		  
	
	<tr valign="baseline" bgcolor="#F2F2E6">
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Funcionario Atendio Llamada:</span></strong></div></td>
        <td colspan="2" bgcolor="#CCFFFF"><input name="nombre_funcionario_atendio_llamada" type="text" id="nombre_funcionario_atendio_llamada" value="<?php echo $nombre_funcionario_atendio_llamada ?>" readonly size="50" maxlength="50" ></td>
		
		<?php if($nombre_sucursal_enviada != ""){ ?>
		 	<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Sucursal Enviada:</span></strong>
				<input name="nombre_sucursal_enviada" type="text" id="mail" value="<?php echo $nombre_sucursal_enviada ?>" readonly size="20" maxlength="20" ></div></td>
		<?php } ?>
		
		<?php if($programa != ""){ ?>
		 	<td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Programa Enviado:</span></strong>
				<input name="programa_enviado" type="text" id="mail" value="<?php echo $programa ?>" readonly size="20" maxlength="20" ></div></td>
		<?php } ?>
		
   	</tr>
		  
	<?php if($nombre_funcionario != ""){ ?>  
	<tr valign="baseline" bgcolor="#F2F2E6">
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Funcionario Asignado:</span></strong></div></td>
        <td colspan="2" bgcolor="#CCFFFF"><input name="mail" type="text" id="mail" value="<?php echo $nombre_funcionario ?>" size="50" maxlength="50" ></td>
	</tr>
	<?php } ?>
          
    <?php if($nombre_audio != ""){ ?>       
    <tr>
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Nombre Audio:</span></strong></div></td>
        <td bgcolor="#CCFFFF"><input name="nombre_audio" type="text" id="nombre_audio" value="<?php echo $nombre_audio ?>" size="50" maxlength="50" ></td>
        
        
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61">Fecha / Hora:</span></strong></div></td>
    	<td bgcolor="#CCFFFF">
            <input name="fecha_ticket" type="text" class="Estilo66" id="fecha_ticket" value="<?php echo $fecha_ticket ?>" size="12" maxlength="12" readonly/>
            <input name="hora_ticket" type="text" class="Estilo66" id="hora_ticket" value="<?php echo $hora_ticket ?>" size="10" maxlength="10" readonly/>
            <span class="rojo">Extension : </span><input name="extension" type="text" class="Estilo66" id="extension" value="<?php echo $extension_ticket ?>" size="5" maxlength="5" readonly/>
        </td>
    </tr> 
    <?php } ?>
          
          
          
          
    <tr>
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61 rojo">Numero Entrante:</span></strong></div></td>
        <td bgcolor="#CCFFFF"><input name="tipo_legalizacion" type="text" id="tipo_legalizacion" value="<?php echo $numero_entrante ?>" size="50" maxlength="50" ></td>
    </tr>    
          
    <?php if($tipo_legalizacion != ""){ ?>       
    <tr>
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61 rojo">tipo legalizacion:</span></strong></div></td>
        <td bgcolor="#CCFFFF"><input name="tipo_legalizacion" type="text" id="tipo_legalizacion" value="<?php echo $tipo_legalizacion ?>" size="50" maxlength="50" ></td>
    </tr> 
    <?php } ?>      
          
          
	</table>
      
		
		  
		  
		  
	<table width="508" align="center">
    	<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
            	<div align="center"><span class="Estilo48">SERVICIOS SOLICITADOS</span></div>
            	</div>
			</td>
      	</tr>
	</table>
   	<table width="508" align="center">
  		<tr>
      		<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="asesoria_solicitada" cols="120" rows="4" id="solicitud" readonly><?php echo $asesoria_solicitada; ?></textarea>
				</span></div></div>
			</td>
		</tr>
	</table>
		  
	<?php if($instrucciones_impartidas != ""){ ?>	
	<table width="508" align="center">
    	<tr>
       		<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo23">
            	<p align="center" class="Estilo48">INSTRUCCIONES IMPARTIDAS POR EL DIRECTOR JURIDICO</p>
            	</div>
			</td>
      	</tr>
  	</table>
        
	<table width="587" align="center">
     	<tr>
         	<td width="579"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
               		<textarea  name="instrucciones_impartidas" cols="120" rows="4" id="instrucciones_impartidas" readonly><?php echo $instrucciones_impartidas;?></textarea>
                </span></div></div>
			</td>
		</tr>
	</table>
	<?php } ?>
		  
		  
	<?php if($documentos_requeridos != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">DOCUMENTOS REQUERIDOS POR EL DIRECTOR JURIDICO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="documentos_requeridos" cols="120" rows="4" id="documentos_requeridos" readonly><?php echo $documentos_requeridos;?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
	<?php if($accion_supervisor != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">ACCIONES SUPERVISOR</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="accion_supervisor" cols="120" rows="4" id="accion_supervisor" readonly><?php echo $accion_supervisor; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
	
	<?php if($acciones_cumplir != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">ACCIONES A CUMPLIR</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="acciones_cumplir" cols="120" rows="4" id="acciones_cumplir" readonly><?php echo $acciones_cumplir; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
	<?php if($informacion_inicio != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">INFORMACION PARA REPORTE DE SOLICITUD</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="informacion_inicio" cols="120" rows="4" id="informacion_inicio" readonly><?php echo $informacion_inicio; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
	<?php if($respuesta_abogado_trabajo != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA ABOGADO TRABAJO PENDIENTE</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_abogado_trabajo" cols="120" rows="4" id="respuesta_abogado_trabajo" readonly><?php echo $respuesta_abogado_trabajo; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>	
		
		
	<?php if($respuesta_funcionario != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA DE SUSTANCIADOR</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_funcionario" cols="120" rows="4" id="respuesta_funcionario" readonly><?php echo $respuesta_funcionario; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
	<?php if($respuesta_funcionario_trabajo != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA DE SUSTANCIADOR TRABAJO PENDIENTE</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_funcionario_trabajo" cols="120" rows="4" id="respuesta_funcionario_trabajo" readonly><?php echo $respuesta_funcionario_trabajo; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>	
		
		
		
	<?php if($accion_supervisor_sucursal != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">ACCION DEL SUPERVISOR</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="accion_supervisor_sucursal" cols="120" rows="4" id="accion_supervisor_sucursal" readonly><?php echo $accion_supervisor_sucursal; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
	<?php if($accion_control_interno != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">ACCIONES CONTROL INTERNO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="accion_control_interno" cols="120" rows="4" id="accion_control_interno" readonly><?php echo $accion_control_interno; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
	
		
		
	<?php if($respuesta_control_interno != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA CONTROL INTERNO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_control_interno" cols="120" rows="4" id="respuesta_control_interno" readonly><?php echo $respuesta_control_interno; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
	<?php if($respuesta_comercial != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA AREA COMERCIAL</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_comercial" cols="120" rows="4" id="respuesta_comercial" readonly><?php echo $respuesta_comercial; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
	
		
	<?php if($respuesta_ventas != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA VENTAS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_ventas" cols="120" rows="4" id="respuesta_ventas" readonly><?php echo $respuesta_ventas; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>	
		
		
		
	<?php if($respuesta_desafiliaciones != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA DESAFILIACIONES</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_desafiliaciones" cols="120" rows="4" id="respuesta_desafiliaciones" readonly><?php echo $respuesta_desafiliaciones; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
	
	<?php if($respuesta_cobranzas != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA COBRANZAS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_cobranzas" cols="120" rows="4" id="respuesta_cobranzas" readonly><?php echo $respuesta_cobranzas; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
	<?php if($respuesta_cartera != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA CARTERA</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_cartera" cols="120" rows="4" id="respuesta_cartera" readonly><?php echo $respuesta_cartera; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
    
    
    
    <?php if($respuesta_debitos != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA DEBITOS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_debitos" cols="120" rows="4" id="respuesta_debitos" readonly><?php echo $respuesta_debitos; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
	<?php if($respuesta_financiera != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA FINANCIERA</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_financiera" cols="120" rows="4" id="respuesta_financiera" readonly><?php echo $respuesta_financiera; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
    
    
    
    <?php if($respuesta_credito_rotativo != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA CREDITO ROTATIVO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_credito_rotativo" cols="120" rows="4" id="respuesta_credito_rotativo" readonly><?php echo $respuesta_credito_rotativo; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
        
        
        
        
    <?php if($respuesta_recepcion_documentos != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA RECEPCIÓN DE DOCUMENTOS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_recepcion_documentos" cols="120" rows="4" id="respuesta_recepcion_documentos" readonly><?php echo $respuesta_recepcion_documentos; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>   
        
        
        
        
        
    <?php if($respuesta_recepcion_cuotas != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA RECEPCIÓN DE CUOTAS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_recepcion_cuotas" cols="120" rows="4" id="respuesta_recepcion_cuotas" readonly><?php echo $respuesta_recepcion_cuotas; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>     
        
        
        
        
        
        
    <?php if($respuesta_telecreditos != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA TELECREDITOS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_telecreditos" cols="120" rows="4" id="respuesta_telecreditos" readonly><?php echo $respuesta_telecreditos; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
        
        
        
        
        
        
    <?php if($respuesta_telejuridicas != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA TELEJURIDICAS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_telejuridicas" cols="120" rows="4" id="respuesta_telejuridicas" readonly><?php echo $respuesta_telejuridicas; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?> 
        
        
        
        
        
        
    <?php if($respuesta_asesor_comercial != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA ASESOR COMERCIAL</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_asesor_comercial" cols="120" rows="4" id="respuesta_asesor_comercial" readonly><?php echo $respuesta_asesor_comercial; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?> 
        
        
        
        
        
        
        
    <?php if($respuesta_director_comercial != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA DIRECTOR COMERCIAL</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_director_comercial" cols="120" rows="4" id="respuesta_director_comercial" readonly><?php echo $respuesta_director_comercial; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>   
        
        
        
        
        
        
        
        
        
    <?php if($visita_telemercaderista != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA VISITA TELEMERCADEO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="visita_telemercaderista" cols="120" rows="4" id="visita_telemercaderista" readonly><?php echo $visita_telemercaderista; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>    

        
        
        
        
    <?php if($venta_directa_telemercaderista != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA VENTA DIRECTA TELEMERCADERISTA</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="venta_directa_telemercaderista" cols="120" rows="4" id="venta_directa_telemercaderista" readonly><?php echo $venta_directa_telemercaderista; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
        
        
        
        
    <?php if($respuesta_supervisor_comercial != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA SUPERVISOR COMERCIAL</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_supervisor_comercial" cols="120" rows="4" id="respuesta_supervisor_comercial" readonly><?php echo $respuesta_supervisor_comercial; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?> 
        
        
        
        
        
     <?php if($informe_resultados_visita != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA INFORME VISITA</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="informe_resultados_visita" cols="120" rows="4" id="informe_resultados_visita" readonly><?php echo $informe_resultados_visita; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>   
        
        
        
        
        
        
        
        
        
        
        
        
        
    
        
    
		
		
        
        
        
        
        
        
        
		
	<?php if($respuesta_director_callcenter != ""){ ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">INFORMACION SUMINISTRADA POR DIRECTORA CALL CENTER</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_director_callcenter" cols="120" rows="4" id="respuesta_director_callcenter" readonly><?php echo $respuesta_director_callcenter; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
		
	<div align="center">
	<?php 
	if($cita_agendada!=""){
		echo "<h5>SE AGENDO CITA CON EL ABOGADO(A) ".$nombre_funcionario_cita."</h5>";
	}
	else{
		
	}
	?>	
	</div>	
		
		
	<div align="center">
	<?php 
	if($funcionario_proceso != ""){
		echo "<h5>SE ASIGNO PROCESO CON EL ABOGADO(A) ".$funcionario_proceso."</h5>";
	}
	else{
		
	}
	?>	
	</div>
		
		
		
		
		
		
		
	<?php if($respuesta_trabajo_pendiente != ""){  ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA TRABAJO PENDIENTE</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_trabajo_pendiente" cols="120" rows="4" id="respuesta_trabajo_pendiente"><?php echo $respuesta_trabajo_pendiente; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
        
        
        
        
        
    <?php if($respuesta_referidos != ""){  ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA REFERIDOS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_referidos" cols="120" rows="4" id="respuesta_referidos"><?php echo $respuesta_referidos; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>    
		
		
		
		
		
		
		
		
		
		
	<?php if($contacto_directo != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">CONTACTO DIRECTO AFILIADO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="contacto_directo" cols="120" rows="4" id="contacto_directo" readonly><?php echo $contacto_directo; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
		
	
		
		
		
	 <?php if($quejas != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">INFORMACION DE LA QUEJA RECIBIDA</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_quejas" cols="120" rows="4" id="respuesta_quejas" readonly><?php echo $quejas; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
	<?php if($respuesta_quejas != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">REPORTE QUEJAS Y RECLAMOS</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_quejas" cols="120" rows="4" id="respuesta_quejas" readonly><?php echo $respuesta_quejas; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
	<?php if($respuesta_gerencia_general != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">REPUESTA GERENCIA GENERAL</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_gerencia_general" cols="120" rows="4" id="respuesta_gerencia_general" readonly><?php echo $respuesta_gerencia_general; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
		
		
		
		
		
	<?php if($solucion_caso == "") { ?>
	
	<?php } else { ?>
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">SOLUCION DEL CASO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="solucion_caso" cols="120" rows="4" id="solucion_caso" readonly><?php echo $solucion_caso; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>
	
	<?php if($fecha_solucion_caso != "0000-00-00"){ ?><span><?php echo "Soluci&oacute;n atenci&oacute;n (". $fecha_solucion_caso.")"; } ?></span>
		
		
		
		
		
        
        
        
        
    <?php if($fecha_agendamiento_asesor != 0000-00-00){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">CITA DE AGENDAMIENTO</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
    <br>    
       
	<table width="800" align="center">
      	<tr valign="baseline" bgcolor="#F2F2E6">
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61 rojo">Fecha Cita Asignada:</span></strong></div></td>
        <td bgcolor="#CCFFFF" colspan="3"><input name="fecha_agendamiento_asesor" type="text" id="fecha_agendamiento_asesor" value="<?php echo $fecha_agendamiento_asesor ?>" size="25" maxlength="25"></td>
        <td width="205" align="right" nowrap bordercolor="#ECE9D8" bgcolor="#CCFFFF"><div align="left" class="Estilo60"><strong><span class="Estilo5 Estilo1 Estilo61 rojo">Hora Cita Asignada:</span></strong></div></td>
        <td bgcolor="#CCFFFF" colspan="3"> <input name="hora_agendamiento_asesor" type="text" id="hora_agendamiento_asesor" value="<?php echo $hora_agendamiento_asesor ?>" size="15" maxlength="15"></td>   
	</tr>
	</table>
	<?php } ?>    
        
	
     <br>  
        
        
        
    <?php if($funcionario_recibe_doc != ""){ ?>   
        
    <table width="987" border="2" align="center" cellpadding="3" cellspacing="3" bgcolor="#FAFAF5">    
        <tr valign="baseline" bgcolor="#CCFFFF">
            
        
            <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
              <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Funcionario recursos humanos:</span></strong></div>
            </div></td>
            <td width="198" bgcolor="#CCFFFF"><input name="funcionario_recursos" id="funcionario_recursos" type="text" value="<?php echo $funcionario_recursos ?>" size="30" maxlength="30"></td>
            
            
            
            
            <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
              <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Funcionario quien recibe documento:</span></strong></div>
            </div></td>
            <td width="198" bgcolor="#CCFFFF"><input name="funcionario_recibe_doc" id="funcionario_recibe_doc" type="text" value="<?php echo $funcionario_recibe_doc ?>" size="30" maxlength="30"></td>
                        
        </tr>
        
        <tr>
            
            <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
              <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo61">Celular de contacto :</span></strong></div>
            </div></td>
            <td width="198" bgcolor="#CCFFFF"><input name="celular_contacto" id="celular_contacto" type="text" value="<?php echo $celular_contacto ?>" size="30" maxlength="30"></td>
        
            
            
            <td bgcolor="#CCFFFF"><div align="right" class="Estilo60">
              <div align="left"><strong> <span class="Estilo5 Estilo1 Estilo59">Director Comercial :</span></strong></div>
            </div></td>
            <td width="198" bgcolor="#CCFFFF"><input name="nombre_director" id="nombre_director" type="text" value="<?php echo $nombre_director ?>" readonly size="30" maxlength="30"></td>
         </tr>
    </table>     
    <?php } ?>  
        
        
        
    <?php if($respuesta_informe_empresarial != ""){ ?>	
	<table width="508" align="center">
   		<tr>
        	<td width="500" bgcolor="#0099CC"><div align="justify" class="Estilo50">
           		<div align="center"><span class="Estilo48">RESPUESTA INFORME EMPRESARIAL</span></div>
            	</div>
			</td>
  		</tr>
   	</table>
		
       
	<table width="508" align="center">
      	<tr>
        	<td width="500"><div align="justify" class="Estilo23">
            	<div align="center"><span class="Estilo20">
                	<textarea name="respuesta_informe_empresarial" cols="120" rows="4" id="respuesta_informe_empresarial" readonly><?php echo $respuesta_informe_empresarial; ?></textarea>
				</span></div></div>
			</td>
     	</tr>
	</table>
	<?php } ?>     
        
	
        
        
    <?php
        
    $busca_si_tiene_legalizacion = mysql_query("SELECT cedula FROM legalizaciones WHERE cedula = '".$cedula."'  ");
        
        if(mysql_num_rows($busca_si_tiene_legalizacion) != 0){
           $control = mysql_query('SELECT id, cedula, con_nombres, ticket, con_grado FROM legalizaciones WHERE cedula = "'.$cedula.'" and ticket = "'.$_GET["atencion"].'" '); 
        
            list($id_leg, $cedula_leg, $nombre_leg, $ticket_leg, $grado_leg) = mysql_fetch_row($control);
            
            //echo "<input value='INFO LEGALIZACION' type='button' class='boton1' onClick =window.open('../formulario_legalizaciones_consulta.php?id=$id_leg&cedulita=$cedula_leg&atencion=$ticket_leg','','top=50,left=100,toolbar=no,scrollbars=yes,width=900,height=630,status=yes')></a>";  
        }
        
        
    ?>
		
		
		
	
	<?php
	$res = mysql_query("SELECT id, nombre, fecha, hora, contenido, tipo, Identificacion, atencion, funcionario, codigo_funcionario FROM archivos_callcenter WHERE Identificacion = '".$cedula."' and  atencion = '".$_GET["atencion"]."'");
	if (!$res) {
		die('Invalid query: ' . mysql_error());
	}

	if ((mysql_num_rows($res)!=0))  
	{
		printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

       	printf("<table width='800' border='1' align='center' cellpadding='1' cellspacing='1'>
        <tr bgcolor='#FFFFCC'>
         	<th colspan='6' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
        </tr>
        <tr bgcolor='#FFFFCC'>
			<th scope='col'><span class='Estilo5'>ID</span></th>
            <th scope='col'><span class='Estilo5'>NOMBRE</span></th>
            <th scope='col'><span class='Estilo5'>FECHA ENVIO</span></th>				   
            <th scope='col'><span class='Estilo5'>HORA ENVIO</span></th>				   				   
            <th scope='col'><span class='Estilo5'>TIPO DE ARCHIVO</span></th>
			<th scope='col'><span class='Estilo5'>SUBE ARCHIVO</span></th>
		</tr>");
			
			//$Filas = mysql_fetch_row($res);
		while(list($id_archivo, $nombre_archivo, $fecha_archivo, $hora_archivo, $contenido_archivo, $tipo_archivo, $identificacion_archivo, $atencion_archivo, $funcionario_archivo, $codigo_funcionario_archivo) = mysql_fetch_row($res))
        {
         	echo "
			<tr><td><div align='center'><a href='descargar_archivos_callcenter_id.php?id=".$id_archivo."' class='Estilo5 Estilo6'>Descargar</a></div></td>
            <td><div align='center'><span class='Estilo7'>".$nombre_archivo."</span></div></td>
            <td><div align='center'><span class='Estilo7'>".$fecha_archivo."</span></div></td>
			<td><div align='center'><span class='Estilo7'>".$hora_archivo."</span></div></td>
			<td><div align='center'><span class='Estilo7'>".$tipo_archivo."</span></div></td>
			<td><div align='center'><span class='Estilo7'>".$funcionario_archivo."</span></div></td>
			</tr>
			";
      	}
	    echo "</table>"; 
       	mysql_free_result($res);  
	  
	}	
		
	?>	
		
		
	<!--
	<div align="center">
		<input  name="cerrado" type="submit" class="Estilo49"  id="guardar" value="CERRAR CASO">
	</div>
		
	-->
		
		
		
	
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
	<!--<table>	  
   		<tr valign="baseline" bgcolor="#009999">
        	<td height="32" colspan="8" align="right" nowrap bgcolor="#CCFFFF"><div align="center" class="Estilo20">
         	<p>
           		<input  name="guardar" type="submit" class="Estilo48"  id="guardar" value="ENVIAR">
         	</p>
        	</div>
			</td>
    	</tr>
	</table>-->
	</td>
  	</tr>
	 
	 
	
</table>
<div align="center">
	<input type="hidden" name="MM_insert" value="formulario">
</div>
</form>  
</body>
</html>







<?php

$fecha_auto = date("Y-m-d");
$time =time();
ini_set('date.timezone','America/Bogota');
$hora_auto=date("H:i:s",$time);

$hora = $_POST["horas"].''.$_POST["hor"];
$fechast = $_POST["anoss"].'-'.$_POST["mess"].'-'.$_POST["diass"];	
	
$tiposer=$_POST['tipo_ser'];








?>









<?php

$result= mysql_query('SELECT id, dependencia, cargo, actuaciones, fecha,funcionario, hora FROM actuaciones_callcenter WHERE cedula = "'.$cedula.'" and ticket="'.$_GET["atencion"].'" order by id ');
if (!$result) {
		die('Error de consulta: ' . mysql_error());
}

if(mysql_num_rows($result) != 0)
{
	echo "<center><table width=100% border=1 cellpadding=1 cellspacing=1>
 
  	<tr>
 	<td width='150' class='tdtitulo'>Responde</td>
    <td class='tdtitulo' width='400'>Actuaci&oacute;n</td>
	<td width='75' class='tdtitulo'>Cargo</td>
    <td width='75' class='tdtitulo'>Fecha</td>
    <td width='65' class='tdtitulo'>Funcionario</td>
	<td width='65' class='tdtitulo'>Hora Registro</td>
  	</tr></center>";

  	while(list($id, $dependencia, $cargo_actuacion, $actuacion, $fecha, $funcionario, $hora) = mysql_fetch_row($result))
   	{
		echo  "<tr class=lista>
		<td class='tdfull'>$dependencia</td>
		<td class='tdfull justify'>$actuacion</td>
		<td class='tdfull'>$cargo_actuacion</td>
		<td class='tdfull'>$fecha</td>
		<td class='tdfull'>$funcionario</td>
		<td class='tdfull'>$hora</td></tr>";
   }
}

?>