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/listado_audiencias_general_ipc.php
<?php 
  require_once("mainfile.php");
   include ("config.php");
   require_once("Conectarse.php");



////////////////

$Recordset2 = mysql_query('SELECT * FROM sucursal order by nombre'); 
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
////////////////  

	
		
$control = mysql_query('SELECT apellidos,nombres,cedula,lugar_expedicion,celular,celular_personal,email,grado,
estado_civil,unidad,direccion_residencia,ciudad_residencia,actuaciones,correo_alterno FROM 
control_ipc WHERE cedula = "'.$_GET["cedula"].'" and celular = "'.$_GET["celular"].'"');
		  if (!$control) {
				die('Invalid query 1: ' . mysql_error());
			}
		$num=mysql_num_rows($control);
		 
list($ape,$nom,$cedu,$expedicion,$celular,$celularalt,$email,$grado,$ecivil,$unidad,$dirresidencia,$ciuresidencia,$actuaciones,$correoalt) = mysql_fetch_row($control);

?>
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Listado Audiencias General</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {
	font: 16px;
	color: #F00;
	font-family:Arial;
	font-weight:bold
}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px;	color: #990000;}
.Estilo2 {font-family: Arial;	font-size: 16px;	color: #990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
		background-image: url(ELEMENTOS/gri06.jpg );  
	color: #666;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
-->
</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">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>

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

  <tr>
    <td>
 <div class="titulos"align="center"><strong>LISTADO AUDIENCIAS GENERAL</strong></div>

<table width="506" border="7" cellspacing="0" cellpadding="0" align="center">
 
       <tr bgcolor="#FFCC99">
    <td width="309" align="right" bgcolor="#FFFFFF" class="Estilo53"><strong>DESDE:</strong> 
      <input name="fecha1" type="text" id="fecha1" size="12" maxlength="14" value="0000-00-00" /></td>
      
	  <td width="120" align="right" bgcolor="#FFFFFF" class="Estilo53"><strong>HASTA:</strong> </td>
    <td width="271" bgcolor="#FFFFFF">
      <input name="fecha2" type="text" id="fecha2" size="12" maxlength="14" value="0000-00-00"></td>
    
   
  </tr>
      
 <tr bgcolor="#306090">
    <td height="22" colspan="4" bgcolor="#EFEFEF" class="fecha"><div align="center">
  <CENTER>
   <input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='menu_audiencias_abogado_ipc.php'" value="IR AL MENU">
    <input name="consultar" id="consultar" type="submit" class="Estilo51" value="Consultar">
   
    </div></td> 
  </tr>

</table>
</table>

<html>
<script type="text/javascript" language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>

<script language="JavaScript1.2">

function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
</script>

<center>
<form action="registro.php" method ="POST">

</form>

<br>

</html>


<?php
require_once("Conectarse.php");
    require_once("mainfile.php");
    include ("config.php");


$sucu =$_GET["sucu"] ;
$nom =$_GET["nom"] ;
$ced =$_GET["ced"] ;
 

$diser=$_POST["nombredir"];

if(isset($_POST["consultar"]))
{


$controlsucu = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "'.$_POST[sucursal].'" ');
		  if (!$controlsucu) {
				die('Invalid query sucursal: ' . mysql_error());
			}
		$num=mysql_num_rows($controlsucu);
		 
list($nombsucu) = mysql_fetch_row($controlsucu);



		/////////////

  
$control = mysql_query('SELECT apellidos,nombres,cedula,fecha_audiencia,hora_audiencia,procuraduria_ciudad,abogado,tipo_audiencia FROM control_ipc WHERE estado= "5" and fecha_audiencia >= "'.$_POST[fecha1].'" and  fecha_audiencia <= "'.$_POST[fecha2].'" ');
		  if (!$control) {   
				die('Invalid query 0: ' . mysql_error());
			}					          
					  if ((mysql_num_rows($control)!=0)) 
	                    {	 
  echo "<TABLE width='750' border='2' align='center' cellpadding ='0' cellspacing='1' bgcolor='#000000'>
                      
				<TR>
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CEDULA</span></div></TD>  
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>APELLIDOS</span></div></TD>
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>NOMBRES</span></div></TD>
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>FECHA AUDIENCIA</span></div></TD> 
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>HORA AUDIENCIA</span></div></TD>
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>PROCURADURIA CIUDAD</span></div></TD> 
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>ABOGADO</span></div></TD>
				<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TIPO AUDIENCIA</span></div></TD>";		 		  
            
			
 while(list($apellidos,$nombre,$cedula,$fecha,$hora,$procuraduria,$abogado,$tipo_audiencia) = mysql_fetch_row($control)) 
                              {    
  
$tota = $tota + 1;


$controlabog = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE codigo = "'.$abogado.'" ');
		  if (!$controlabog) {
				die('Invalid query sucursal: ' . mysql_error());
			}
		$num=mysql_num_rows($controlabog);
		 
list($nombabog) = mysql_fetch_row($controlabog);

								 printf("<tr>
					<td bgcolor='#99CCFF'><div align='center' class='Estilo21'><input type='button' value=$cedula name='proceso' class=Estilo21 onClick =	window.open('formulario_listado_audiencias_sucursal_ipc.php?cedula=$cedula&celular=$celular','','top=30,left=50,toolbar=yes,scrollbars=yes,width=950,height=800,status=yes')></a></span></div></td> 	
				   
				   <td bgcolor='#99CCFF'><div align='center' class='lista'>".$apellidos."</a></span></div></td>
				   <td bgcolor='#99CCFF'><div align='center' class='lista'>".$nombre."</a></span></div></td>			     	           <td bgcolor='#99CCFF'><div align='center' class='lista'>".$fecha."</a></span></div></td>					                   <td bgcolor='#99CCFF'><div align='center' class='lista'>".$hora ."</a></span></div></td>
				   <td bgcolor='#99CCFF'><div align='center' class='lista'>".$procuraduria."</a></span></div></td>					                   <td bgcolor='#99CCFF'><div align='center' class='lista'>".$nombabog."</a></span></div></td>
				   <td bgcolor='#99CCFF'><div align='center' class='lista'>".$tipo_audiencia."</a></span></div></td>");
							  }
						}
						
						echo "<TABLE width='200' border='0' align='center' cellpadding ='0' cellspacing='1'>
                        <TR>
                        <TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TOTAL</span></div></TD>";		 		  
                              
						
					 printf("<tr>   
								   
					<td bgcolor='#99CCFF'><div align='center' class='lista'>".$tota."</a></span></div></td>");	

echo "</form>";  
}
?>