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

$sql2 = mysql_query('SELECT * FROM Usuarios WHERE Cargo like "%ABOGADO" 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>

<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">
<meta name="viewport" content="width=device-width, user-scalable=yes">


<link rel="stylesheet" href="css/estilos.css">


<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>

<?php include('../headerint.php'); ?>
<h3 class="titulo">CONSULTA PUNTOS MENSUAL ABOGADOS</h3>


<main class="main">

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

		<div class="fecha"><script languaje="JavaScript">Mostrar_Fecha()</script></div>


			<table class="tabla">
				<tr>
					<td>ABOGADOS :</td>
					<td>
						<select name="abogado">
							<option value = "">SELECCIONE ABOGADO</option>
							<?php
								do {  
							?>
							<option value="<?php echo $row_sql2['Nombre_Completo'];?>"><?php echo $row_sql2['Nombre_Completo']?></option>
							<?php
								} while ($row_sql2 = mysql_fetch_assoc($sql2));
								$rows2 = mysql_num_rows($sql2);
								if($rows2 > 0) {
									mysql_data_seek($sql2, 0);
									$row_sql2 = mysql_fetch_assoc($sql2);
								 }
							?>
						</select>
					</td>
				</tr>


				<tr>
					<td>SELECCIONE MES:</td>
					<td>
						<select name="mess" required>
							<option value="0" required>--SELECCIONE MES--</option>
							<option value="1">ENERO</option>
							<option value="2">FEBRERO</option>
							<option value="3">MARZO</option>
							<option value="4">ABRIL</option>
							<option value="5">MAYO</option>
							<option value="6">JUNIO</option>
							<option value="7">JULIO</option>
							<option value="8">AGOSTO</option>
							<option value="9">SEPTIEMBRE</option>
							<option value="10">OCTUBRE</option>
							<option value="11">NOVIEMBRE</option>
							<option value="12">DICIEMBRE</option>
						</select>
					</td>
				</tr>


				<tr>
					<td>
						<input name="menu2" type="button" class="irmenu" id="menu2" onClick="window.location.href='menu_evaluacion_profesional.php'" value="IR AL MENU">
					</td>
					<td>
						<input name="consultar" type="submit" class="direcciona" id="consultar" value="CONSULTAR"  />
					</td>
				</tr>
			</table>

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



<?php

if(isset($_POST["consultar"]))
{
	$controdatos = mysql_query('SELECT  cedula, nombre_completo FROM Usuarios WHERE nombre_completo = "'.$_POST["abogado"].'" ');

	if (!$controdatos) {die('Invalid query datos principales: ' . mysql_error());}			  
 	list($cedula, $nombre) = mysql_fetch_row($controdatos);

	//GENERENCIA GENERAL
	$contro1 = mysql_query('SELECT  cedula, nombre_completo, calif_1,calif_2,calif_3,calif_4,calif_5, calif_6, calif_7, calif_8, calif_9, mes, acumulado_mensual FROM eval_abog_gerencia_gen WHERE nombre_completo = "'.$_POST["abogado"]  . '" and mes = "'.$_POST["mess"].'" ');
			
	if (!$contro1) {die('Invalid query 1: ' . mysql_error());}		  
 	list($cedula_gg, $nombre_gg, $cal1_gg,$cal2_gg,$cal3_gg,$cal4_gg,$cal5_gg,$cal6_gg,$cal7_gg,$cal8_gg,$cal9_gg,$mes_gg,$acmes_geren_general) = mysql_fetch_row($contro1);
	

	//GERENCIA ADMINISTRATIVA
	$contro3 = mysql_query('SELECT  cedula, nombre_completo, calif_1, mes, acumulado_mensual FROM eval_abog_gerencia_adm WHERE nombre_completo = "' . $_POST["abogado"]  . '" and mes = "'.$_POST["mess"].'"');

	if (!$contro3) {die('Invalid query 3: ' . mysql_error());}			  
	list($cedula_ga, $nombre_ga,$cal1_ga,$mes_ga,$acmes_geren_admin) = mysql_fetch_row($contro3);

	//ASISTENTE DE GERENICA ADMINISTRATIVA
	$contro4 = mysql_query('SELECT  cedula, nombre_completo, calif_1,calif_2,calif_3,calif_4,mes,acumulado_mensual FROM eval_abog_asist_gerencia_adm WHERE nombre_completo = "'.$_POST["abogado"] . '" and mes = "'.$_POST["mess"].'" ');

	if (!$contro4) {die('Invalid query 4: ' . mysql_error());}			  
	list($cedula_aga, $nombre_aga,$cal1_aga,$cal2_aga,$cal3_aga,$cal4_aga,$mes_aga,$acmes_asist_geren_admin) = mysql_fetch_row($contro4);
 
	//ACTUACIONES JURIDICAS
	$contro5 = mysql_query('SELECT  cedula, nombre_completo, calif_1,calif_2,calif_3, calif_4, calif_5, mes,acumulado_mensual FROM eval_abog_juridicas WHERE nombre_completo = "'.$_POST["abogado"].'" and mes = "'.$_POST["mess"].'"');

	if (!$contro5) {die('Invalid query 5: ' . mysql_error());}			  
	list($cedula_aj, $nombre_aj,$cal1_aj,$cal2_aj,$cal3_aj,$cal4_aj,$cal5_aj,$mes_aj,$acmes_juridicas) = mysql_fetch_row($contro5);

	//MONITOREO CAMARAS
	$contro6 = mysql_query('SELECT  cedula, nombre_completo, calif_1, calif_2, calif_3, mes,acumulado_mensual FROM eval_abog_moni_camaras WHERE nombre_completo = "'.$_POST["abogado"].'" and mes = "'.$_POST["mess"].'" ');

	if (!$contro6) {die('Invalid query 6: ' . mysql_error());}			  
	list($cedula_mc, $nombre_mc,$cal1_mc,$cal2_mc,$cal3_mc,$mes_mc,$acmes_camaras) = mysql_fetch_row($contro6);
 

	//HISTOSER
	$contro9 = mysql_query('SELECT  cedula, nombre_completo, calif_1,calif_2,calif_3,calif_4,mes,acumulado_mensual FROM eval_abog_histoser WHERE nombre_completo = "'.$_POST["abogado"].'" and mes = "'.$_POST["mess"].'" ');

	if (!$contro9) {die('Invalid query 9: ' . mysql_error());}			  
	list($cedula_hi, $nombre_hi,$cal1_hi,$cal2_hi,$cal3_hi,$cal4_hi,$mes_hi,$acmes_histoser) = mysql_fetch_row($contro9);

 

	$total = $acmes_geren_general + $acmes_geren_admin + $acmes_asist_geren_admin + $acmes_juridicas + $acmes_camaras +  $acmes_histoser;

}


?>

<?php if(isset($_POST["consultar"])): ?>

<main class="main">

	<p class="nombre"><?php echo $nombre; ?></p>
	
	<p class="titulos">PUNTOS OBTENIDOS</p>

	<table class="consulta">
 
  		<tr>
      		<td class="area">Puntos Gerencia General:</td>
      		<td class="puntaje"><input name="geren_gener" type="text" id="geren_gener" value="<?php echo $acmes_geren_general; ?>" size="3" maxlength="3" readonly=""></td>
		</tr>
     	<tr>
      		<td class="area">Puntos Director histoser:</td>
      		<td class="puntaje"><input name="histo" type="text" id="histo" value="<?php echo $acmes_histoser; ?>" size="3" maxlength="3" readonly=""></td>
  		</tr>
    	<tr >
      		<td class="area">Puntos Gerencia Administrativa:</td>
      		<td class="puntaje"><input name="geren_admin" type="text" id="geren_admin" value="<?php echo $acmes_geren_admin; ?>" size="3" maxlength="3" readonly=""></td>
		</tr>
     	<tr>
      		<td class="area">Puntos Asistente Gerencia Administrativa:</td>
      		<td class="puntaje"><input name="asist_geren_admin" type="text" id="asist_geren_admin" value="<?php echo $acmes_asist_geren_admin; ?>" size="3" maxlength="3" readonly=""></td>
    	</tr>
    	<tr >
      		<td class="area">Puntos Actuaciones Juridicas:</td>
      		<td class="puntaje"><input name="actua_jurid" type="text" id="actua_jurid" value="<?php echo $acmes_juridicas; ?>" size="3" maxlength="3" readonly=""></td>
		</tr>
     	<tr>
      		<td class="area">Puntos Monitoreo De Camaras:</td>
      		<td class="puntaje"><input name="monit_camara" type="text" id="monit_camara" value="<?php echo $acmes_camaras; ?>" size="3" maxlength="3" readonly=""></td>
    	</tr>
</table>


<table >
  	<tr>
    	<td class="total">TOTAL PUNTOS <input name="codg" type="text" id="un2" value="<?php echo $total; ?>" size="3" maxlength="3" readonly=""></td>
  	</tr>
</table>




<p class="titulos">PUNTOS DE CADA &Aacute;REA </p>  


<!--<table width="677" align="center" border="0" cellpadding="3" cellspacing="3">-->

<table class="table">
	<tr><td class="titulos" colspan="20">GERENCIA GENERAL</td></tr>
	<tr>
		<td class="enunciado">Por Revocatoria De Poder</td>
		<td class="num"><input name="gg1" type="text" id="gg1" value="<?php echo $cal1_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por Terminacion Procesos</td>
		<td class="num"><input name="gg2" type="text" id="gg2" value="<?php echo $cal2_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por redaccion en terminacion procesos</td>
		<td class="num"><input name="gg3" type="text" id="gg3" value="<?php echo $cal3_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por falta de soportes Terminacion Procesos</td>
		<td class="num"><input name="gg4" type="text" id="gg4" value="<?php echo $cal4_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por informe de diagnostico</td>
		<td class="num"><input name="gg5" type="text" id="gg5" value="<?php echo $cal5_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por ingreso oportuno de audiencias</td>
		<td class="num"><input name="gg6" type="text" id="gg6" value="<?php echo $cal6_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Terminacion Procesos Por Renuncia</td>
		<td class="num"><input name="gg7" type="text" id="gg7" value="<?php echo $cal7_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por Quejas Afiliados</td>
		<td class="num"><input name="gg8" type="text" id="gg8" value="<?php echo $cal8_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por notas de agradecimiento</td>
		<td class="num"><input name="gg8" type="text" id="gg8" value="<?php echo $cal9_gg; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="puntos_total" colspan="20">TOTAL<input name="rgg" type="text" id="rgg" value="<?php echo $acmes_geren_general; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
</table>


<table class="table">
	<tr><td class="titulos" colspan="4">DIRECTORA HISTOSER</td></tr>
	<tr>
		<td class="enunciado">Por diligenciamiento atencion al afiliado</td>
		<td class="num"><input name="h1" type="text" id="h1" value="<?php echo $cal1_hi; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por Atenciones rechazadas</td>
		<td class="num"><input name="h2" type="text" id="h2" value="<?php echo $cal2_hi; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por requerimiento informe de diagnostico</td>
		<td class="num"><input name="h3" type="text" id="h3" value="<?php echo $cal3_hi; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por prontitud en el inicio de procesos</td>
		<td class="num"><input name="h4" type="text" id="h4" value="<?php echo $cal4_hi; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="puntos_total" colspan="2">TOTAL<input name="rh" type="text" id="rh" value="<?php echo $acmes_histoser;?>" size="3" maxlength="3" readonly=""></td>
	</tr>
</table>


<table class="table">
	<tr><td class="titulos" colspan="5">ASISTENTE DE GERENCIA ADMINISTRATIVA</td></tr>
	<tr>
		<td class="enunciado">Por Cumplimiento Jornada Presencial</td>
		<td class="num"><input name="aga1" type="text" id="aga1" value="<?php echo $cal1_aga; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por Cumplimiento Soporte viáticos</td>
		<td class="num"><input name="aga2" type="text" id="aga2" value="<?php echo $cal2_aga; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por reembolso viaticos</td>
		<td class="num"><input name="aga3" type="text" id="aga3" value="<?php echo $cal3_aga; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por la prontitud en requerimientos</td>
		<td class="num"><input name="aga4" type="text" id="aga4" value="<?php echo $cal4_aga; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="puntos_total" colspan="2">TOTAL<input name="raga" type="text" id="raga" value="<?php echo $acmes_asist_geren_admin; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
</table>


<table class="table">
	<tr><td class="titulos" colspan="2">ACTUACIONES JURIDICAS</td></tr>
	<tr>
		<td class="enunciado">Por Ingreso oportuno de revistas</td>
		<td class="num"><input name="aj1" type="text" id="aj1" value="<?php echo $cal1_aj; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por Calidad redaccion revistas</td>
		<td class="num"><input name="aj2" type="text" id="aj2" value="<?php echo $cal2_aj; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<!--<td class="enunciado">Por la oportuna informacion del radicado procesos</td>
		<td class="num"><input name="aj3" type="text" id="aj3" value="<?php echo $cal3_aj; ?>" size="3" maxlength="3" readonly=""></td>-->
		<td class="enunciado">Por la coherencia juridica en el record de actuaciones</td>
		<td class="num"><input name="aj3" type="text" id="aj3" value="<?php echo $cal3_aj; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por la debida actualizacion de datos del proceso</td>
		<td class="num"><input name="aj4" type="text" id="aj4" value="<?php echo $cal4_aj; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por el cumplimiento de la directiva 005</td>
		<td class="num"><input name="aj5" type="text" id="aj5" value="<?php echo $cal5_aj; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>

	<tr>
		<td class="puntos_total" colspan="2">TOTAL<input name="rga" type="text" id="rga" value="<?php echo $acmes_juridicas; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
</table>



<table class="table">
	<tr>
		<td class="titulos" colspan="2">MONITOREO CAMARAS</td>
	</tr>
	<tr>
		<td class="enunciado">Por Puntualidad ingreso jornada</td>
		<td class="num"><input name="mc1" type="text" id="mc1" value="<?php echo $cal1_mc; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por el desempeño dentro de la oficina</td>
		<td class="num"><input name="mc2" type="text" id="mc2" value="<?php echo $cal2_mc; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="enunciado">Por la excelente presentacion personal</td>
		<td class="num"><input name="mc3" type="text" id="mc3" value="<?php echo $cal3_mc; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="puntos_total" colspan="2">TOTAL<input name="rmc" type="text" id="rmc" value="<?php echo $acmes_camaras; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
</table>


<table class="table">
	<tr>
		<td class="titulos" colspan="2">GERENCIA ADMINISTRATIVA</td>
	</tr>
	<tr>
		<td class="enunciado">Requerimientos Injustificados</td>
		<td class="num"><input name="ga1" type="text" id="ga1" value="<?php echo $cal1_ga; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
	<tr>
		<td class="puntos_total" colspan="2">TOTAL<input name="rga" type="text" id="rga" value="<?php echo $acmes_geren_admin; ?>" size="3" maxlength="3" readonly=""></td>
	</tr>
</table>



<?php endif; ?>