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/acalidad/ingresar_proceso_2_gerencia.php
<?php
global $dbi;
 
require_once("../Conectarse.php");
 
// $query_sql = "SELECT * FROM sucursal order by nombre";
//$sql = mysql_query($query_sql, $dbi) or die(mysql_error());
$sql = mysql_query('SELECT *  FROM sucursal order by nombre ');
if (!$sql) {
	die('Invalid query : ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);  
?>






<!DOCTYPE HTML>
<html>
<head>
<title>CONSULTA INGRESAR PROCESO</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-color:#EAEAEA;font-family:Geneva, Arial, Helvetica, sans-serif;}
    header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;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; text-align: center;}
    .divirmenu{text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 4px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #969696 solid 1px;}
    .tdizq{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 14px;font-weight: 600; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 14px;font-weight: 600; text-align: right;}
	.exp{color:#8A0000; font-size:10px;}
    .boton1{width: 200px;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:4px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #FFFEF4;}
	
	.tdtitulo{background-color: #e3dec0; color: #030303; padding: 2px; text-align: center; font-size: 12px; font-weight: 600}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
    .botonnew{width: 100px; background-color: #e3dec0;color: #b20606;padding: 1px; font-weight: 600;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;}
</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">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTA</h3>	
	

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

<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
	<td><fieldset><table width="800" border="15" align="center" cellpadding="2" cellspacing="2">

<!--<tr>
	<td bgcolor="#CCCCFF" class="titulos"><div align="center">CONSULTA </div></td>
</tr>-->

<tr>
	<td class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div>
	</td>
</tr>
 
</table>


<script type="text/javascript" language="Javascript">

document.oncontextmenu = function(){return false}

</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>
<p align="center">
<input name="button3" type="button" class="irmenu" onClick="window.location.href='menu_control_calidad.php'" value="Regresar al menu Gerencia">
</p>
</form>
<br>

</html>


<?php
require_once("../Conectarse.php");


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

$diser=$_POST["nombredir"];

$ggag = mysql_query('SELECT codigo  FROM sucursal WHERE nombre  = "' . $_GET["sucu"]  . '" ');
if (!$ggag) {
	die('Invalid query sucursalll: ' . mysql_error());
}
list($suuuu) = mysql_fetch_row($ggag); 

  
$control = mysql_query('SELECT id, codigo, orden_de_trabajo, tipo_proceso, apellidos_y_nombres, fecha_asignacion, nombre_abogado FROM INICIOS_PROCESOS_JURIDICOS WHERE sucursal = "' . $_GET["sucu"]  . '" and estado= "0"  ');
if (!$control) {
	die('Invalid query 0: ' . mysql_error());
}					          

		
if ((mysql_num_rows($control)!=0)) 
{	 
	echo "<TABLE width='800' border='0' align='center' cellpadding ='0' cellspacing='1'>
    <TR>
    <TD class='tdtitulo'>ORDEN DE TRABAJO</TD>
	<TD class='tdtitulo'>FECHA ASIGNACION</TD>
    <TD class='tdtitulo'>NOMBRE AFILIADO</TD> 
	<TD class='tdtitulo'>NOMBRE ABOGADO</TD>";		 		  
    
	while(list($id, $cedula,  $codi, $tipo, $apes, $fecasig, $nombabo) = mysql_fetch_row($control)) 
    {  
 		$tota = $tota + 1;
								
		$sql26 = mysql_query('SELECT nombre_completo FROM asjudinet_abogados  WHERE codigo_abogado  = "' .  "$nombabo ". '"');
		if (!$sql26) {
			die('Invalid query sql5: ' . mysql_error());
		}
		list($nombreabogad) = mysql_fetch_row($sql26);
					
								
		printf("<tr>
		<td class='tdfull'><input type='button' value=$codi name='codi' class=botonnew onClick =	window.open('ingresar_proceso_3.php?cedula=$cedula&id=$id&proceso=$codi','','top=50,left=1200,toolbar=yes,scrollbars=yes,width=1500,height=1500,status=yes')></a></td>
			 
		<td class='tdfull'>".$fecasig."</a></td>		
		<td class='tdfull'>". $apes ."</a></td>
		<td class='tdfull'>".$nombreabogad ."</a></td>
		");
	}
}

echo "</form>";  
?>