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/abogados/consulta_evaluaciones_abogado.php
<?php
global $dbi;
 
require_once("../Conectarse.php");

$sql = mysql_query('SELECT * FROM vendedores WHERE  tipo= "AE" and estado  = "1" order by vendedor ');
	if (!$sql) {
		die('Invalid query 12: ' . 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 12: ' . mysql_error());
	}
	$row_sql2 = mysql_fetch_assoc($sql2);
	$totalRows_sql2 = mysql_num_rows($sql2); 
   
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Consulta puntos por abogado</title>
    <meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
	*{margin: 0;padding: 0;}
	body{background-image:url(../ELEMENTS/fondo.jpg);font-family:Geneva, Arial, Helvetica, sans-serif;}
    .header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;height: 20px;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    table{margin: 0 auto;border: 8px solid #bebebe;}
    .divirmenu{text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 3px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}

    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align:center;}
    td{padding: 1px; border: 1px solid #a0a0a0;}
    .td{background-color: #e5e5e5; padding: 1px 3px;color: #00135F;font-size: 14px;font-weight: 600; text-align: left;}
    .boton1{width: 200px;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #fffde8;}
    
    .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;}
    .botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
-->
</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 AbreGral()
{ 
    var menu;   
	menu=window.open("mostrar_ingreso.php","","toolbar=no,scrollbars=no,width=800,height=500,status=yes");  
	menu.focus();  
	var ventana = window.self;  
	ventana.opener = window.self;  
	ventana.close();
}
</script>
</head>

<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div class="header">
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</div>
<h3 class="titulo">CONSULTA PUNTUACION POR ABOGADO </h3>

<form name="formulario" action="" method="post">

<table width="461" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="fecha">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </td>
  </tr>
 
  <tr>
    <td align="center">
      <input name="menu2" type="button" class="irmenu" id="menu2" onClick="window.location.href='../menu_admin.php'" value="IR AL MENU">
	  <input name="menu2" type="button" class="boton1" id="menu2" onclick="history.back()" value="ATRAS" />
	
    </td>
  </tr>
</table>


<BR>
<BR>


</form>
</body>
</html>

<?php

	 $contro2 = mysql_query('SELECT  cedula, nombre, puntos_atencion_al_afiliado, puntos_terminacion_disciplinarios, puntos_terminacion_juridico, puntos_terminacion_sustanciacion, puntos_terminacion_prejuridico, puntos_notas_agradecimiento, puntos_anos_servicio, puntos_por_especializacion, puntos_ventas, casos_exito_destacado,  atenciones_rechazadas, reclamos_afiliados,  requerimeinto_injustificado, puntualidad_jornada_pre, incumplimiento_jornada_pre FROM historico_puntuacion_abogados  WHERE  cedula =  "'.$_GET["ced2"].'" and codigo_abogado =  "'.$_GET["codigo"].'" and fecha_registro= "'.$_GET["fecha"]. '"');
			if (!$contro2) {
				die('Invalid query: ' . mysql_error());
			}
						  
  list($cedula, $nombre, $punate, $terdis, $terjur, $tersus, $terpre, $punagre, $punser, $punes, $punven, $casoexi, $atenrech, $reclafil,  $requegen, $jorna, $injorna) = mysql_fetch_row($contro2); 
              

    $total =  $punate + $terdis + $terjur + $tersus + $terpre + $punagre + $punser + $punes + $atenrech + $reclafil + $requegen +  $punven + $casoexi + $jorna + $injorna ;


$contro2 = mysql_query('SELECT cedula,nombre,puntos_atencion_al_afiliado,puntos_terminacion_disciplinarios,puntos_terminacion_juridico, puntos_terminacion_sustanciacion,puntos_terminacion_prejuridico,puntos_notas_agradecimiento,puntos_anos_servicio,puntos_por_especializacion, puntos_ventas,casos_exito_destacado,atenciones_rechazadas,reclamos_afiliados,requerimeinto_injustificado,puntualidad_jornada_pre, incumplimiento_jornada_pre,total_anual FROM historico_evaluacion_anual_abogados WHERE cedula ="'.$_GET["ced2"].'" and codigo_abogado = "'.$_GET["codigo"].'"  and fecha_registro= "'.$_GET["fecha"]. '" ');
			if (!$contro2) {
				die('Invalid query: ' . mysql_error());
			}
						  
  list($cedula1, $nombre1, $punate1, $terdis1, $terjur1, $tersus1, $terpre1, $punagre1, $punser1, $punes1, $punven1, $casoexi1, $atenrech1, $reclafil1, $requegen1, $jorna1, $injorna1, $anual1) = mysql_fetch_row($contro2); 
              

    $total1 =  $punate1 + $terdis1 + $terjur1 + $tersus1 + $terpre1 + $punagre1 + $punser1 + $punes1 + $atenrech1  + $reclafil1 +  $requegen11 +  $punven1 + $casoexi1 + $jorna1 + $injorna1;


?>

<table width="720" align="center" border="6" cellpadding="0" cellspacing="0">
 <tr>
 <td colspan="4"  class="titulo">PUNTOS OBTENIDOS MENSUAL</td>
 </tr>

 
<tr >
    <td class="td">C&eacute;dula, apellidos y nombres</td>
    <td class="td"><input name="identi" type="text" id="identi" value="<?php echo $cedula; ?>" size="12" maxlength="12" readonly=""></td>
    <td class="td" colspan="2"><input name="nombre_completo" type="text" id="nombre_completo3" value="<?php echo $nombre; ?>" size="50" maxlength="50" readonly=""></td>
    </tr>
  <tr>
      <td class="td">Puntos Atencion al afiliado:</td>
      <td class="td"><input name="numero_carpeta" type="text" id="numero_carpeta" value="<?php echo $punate; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos Terminacion Juridico:</td>
      <td class="td">
      <input name="numero_carpeta" type="text" id="numero_carpeta" value="<?php echo $terjur; ?>" size="3" maxlength="3" readonly=""></td>
  </tr>
    <tr>
      <td class="td">Puntos Terminacion Sustanciacion:</td>
      <td class="td"><input name="capital_renovacion" type="text" id="capital_renovacion" value="<?php echo $tersus; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos Terminacion Prejuridico:></td>
      <td class="td"><input name="capital_renovacion" type="text" id="capital_renovacion" value="<?php echo $terpre; ?>" size="3" maxlength="3" readonly=""></td>
    </tr>
    <tr>
      <td class="td">Puntos Notas Agradecimiento:</td>
      <td class="td"><input name="interes_cobroejecutivo" type="text" id="interes_cobroejecutivo" value="<?php echo $punagre; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos A&ntilde;os Servicio:</td>
      <td><input name="interes_cobroejecutivo" type="text" id="interes_cobroejecutivo" value="<?php echo $punser; ?>" size="3" maxlength="3" readonly=""></td>
    </tr>
    <tr>
      <td class="td">Puntos Por Especializacion:</td>
      <td class="td"><input name="deuda_total" type="text" id="deuda_total3" value="<?php echo $punes; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos Terminaci&oacute;n Disciplinarios:</span></div></td>
      <td><input name="terdis" type="text" id="terdis" value="<?php echo $terdis; ?>" size="3" maxlength="3" readonly=""></td>
    </tr>

	
<tr>
	<td class="td">Reclamos Afiliados Escrito:</td>
    <td class="td"><input name="fecha_oficio" type="text" id="fecha_oficio" value="<?php echo $reclafil; ?>" size="3" maxlength="3" readonly=""></td>
    <td class="td">Requerimeinto Injustificados:</td>
    <td class="td"><input name="codg" type="text" id="un2" value="<?php echo $requegen; ?>" size="3" maxlength="3" readonly="">
     </td>
</tr>
	
<tr>
	<td class="td">Puntos por Ventas:</td>
    <td class="td"><input name="punven" type="text" id="un2" value="<?php echo $punven; ?>" size="3" maxlength="3" readonly="">
    </td>
	<td class="td">Casos de exito destacados:</td>
    <td class="td"><input name="codg" type="text" id="un2" value="<?php echo $casoexi; ?>" size="3" maxlength="3" readonly="">
    </td>
</tr>
<tr>
	<td class="td">Atenciones Rechazadas:</td>
    <td class="td"><input name="deuda_total" type="text" id="deuda_total3" value="<?php echo $atenrech; ?>" size="3" maxlength="3" readonly=""></td>
	  <td class="td">Puntualidad Jornada Presencial:</td>
      <td class="td"><input name="jorna1" type="text" id="jorna1" value="<?php echo $jorna; ?>" size="3" maxlength="3" readonly=""></td>
</tr>
<tr>
	<td class="td">Incumplimiento Jornada Presencial:</td>
    <td colspan="4"><input name="injorna1" type="text" id="injorna1" value="<?php echo $injorna; ?>" size="3" maxlength="3" readonly=""></td>

</tr>
</table>

<table border="6" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td class="tdtitulo">TOTAL PUNTOS MENSUAL</td>
  </tr>
  <tr>
   <td class="td"><center><input name="codg" type="text" id="un2"  align="center" value="<?php echo $total; ?>" size="2" maxlength="2" readonly=""></center>
      </td>
  </tr>
</table>



<BR>
<table width="720"  border="6" cellpadding="0" cellspacing="0">
 <tr>
 <td colspan="4"  class="titulo">PUNTOS ACUMULADOS DURANTE EL A&Ntilde;O</td>
 </tr>
 
 <tr>
 <td>
 
  <tr>
    <td class="td">C&eacute;dula, apellidos y nombres</td>
    <td class="td"><input name="identi" type="text" id="identi" value="<?php echo $cedula; ?>" size="12" maxlength="12" readonly=""></td>
    <td class="td" colspan="2"><input name="nombre_completo" type="text" id="nombre_completo3" value="<?php echo $nombre; ?>" size="50" maxlength="50" readonly=""></td>
    </tr>
  <tr >
      <td class="td">Puntos Atencion al afiliado:</td>
      <td class="td"><input name="numero_carpeta" type="text" id="numero_carpeta" value="<?php echo $punate1; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos Terminacion Juridico:</td>
      <td class="td">
      <input name="numero_carpeta" type="text" id="numero_carpeta" value="<?php echo $terjur1; ?>" size="3" maxlength="3" readonly=""></td>
  </tr>
    <tr>
      <td class="td">Puntos Terminacion Sustanciacion:</td>
      <td class="td"><input name="capital_renovacion" type="text" id="capital_renovacion" value="<?php echo $tersus1; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos Terminacion Prejuridico:</td>
      <td class="td"><input name="capital_renovacion" type="text" id="capital_renovacion" value="<?php echo $terpre1; ?>" size="3" maxlength="3" readonly=""></td>
    </tr>
    <tr>
      <td class="td">Puntos Notas Agradecimiento:</td>
      <td class="td"><input name="interes_cobroejecutivo" type="text" id="interes_cobroejecutivo" value="<?php echo $punagre1; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos A&ntilde;os Servicio:</td>
      <td class="td"><input name="interes_cobroejecutivo" type="text" id="interes_cobroejecutivo" value="<?php echo $punser1; ?>" size="3" maxlength="3" readonly=""></td>
    </tr>
    <tr>
      <td class="td">Puntos Por Especializacion:</td>
      <td class="td"><input name="deuda_total" type="text" id="deuda_total3" value="<?php echo $punes1; ?>" size="3" maxlength="3" readonly=""></td>
      <td class="td">Puntos Terminacion Disciplinarios:</td>
      <td class="td"><input name="terdis1" type="text" id="terdis1" value="<?php echo $terdis1; ?>" size="3" maxlength="3" readonly=""></td>
    </tr>

<tr>
		
	<td class="td">Reclamos Afiliados:</td>
      <td class="td">
      <input name="fecha_oficio" type="text" id="fecha_oficio" value="<?php echo $reclafil1; ?>" size="3" maxlength="3" readonly="">
      </td>
      <td class="td">Requerimeinto Gerencia General:</td>
      <td class="td"><input name="codg" type="text" id="un2" value="<?php echo $requegen1; ?>" size="3" maxlength="3" readonly="">
      </td>

	  </tr>

	   	<tr>
      <td class="td">Puntos por Ventas:</td>
      <td class="td"><input name="punven" type="text" id="un2" value="<?php echo $punven1; ?>" size="3" maxlength="3" readonly="">
      </td>
	   <td class="td">Casos de exito destacados:</td>
      <td class="td"><input name="codg" type="text" id="un2" value="<?php echo $casoexi1; ?>" size="3" maxlength="3" readonly="">
      </td>
</tr>
<tr>
 <td class="td">Atenciones Rechazadas:</td>
      <td class="td"><input name="deuda_total" type="text" id="deuda_total3" value="<?php echo $atenrech1; ?>" size="3" maxlength="3" readonly=""></td>
	  <td class="td">Puntualidad Jornada Presencial:</td>
      <td class="td"><input name="jorna1" type="text" id="jorna1" value="<?php echo $jorna1; ?>" size="3" maxlength="3" readonly=""></td>

</tr>
<tr>

	  <td class="td">Incumplimiento Jornada Presencial:</td>
      <td class="td" colspan="4"><input name="injorna1" type="text" id="injorna1" value="<?php echo $injorna1; ?>" size="3" maxlength="3" readonly=""></td>

</tr>

</table>
  
 <table border="6" cellspacing="0" cellpadding="0" align="center">
  <tr>   
  
    <td class="tdtitulo">TOTAL PUNTOS ANUAL</td>
  </tr>
  <tr>
   <td class="td"><center><input name="codg" type="text" id="un2" value="<?php echo $anual1; ?>" size="3" maxlength="3" readonly=""><center>
      </td>
  </tr>
</table>