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/principal/abogados.php
<?php
	error_reporting(0);
	require_once("../Conectarse.php");
?>


<!DOCTYPE HTML>
<html>
<head>
 	<!-- Required meta tags -->
	<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">
   
    <title>Interasjudinet - Abogados</title>
	
   
   	<!--COLORBOX-->
    <link rel="stylesheet" href="../css/colorbox.css">   
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/estilos.css">
    
    <script src="../js/jquery.colorbox-min.js"></script>
    
<style>
	
	ul.lista-abogados li{
		float: left;
		padding: 8px;
	}
	
	div.abogado a{
		text-decoration: none;
	}
	
	@media only screen and (min-width: 480px){
		ul.lista-abogados li{
			width: 50%;
		}
		
		#colorbox .media-gallery-item img {
 		width: 5px;
  		height: 5px;
		}	
	}
	
	@media only screen and (min-width: 768px){
		ul.lista-abogados li{
			width: 25%;
		}
	}
	
	@media only screen and (min-width: 1000px){
		ul.lista-abogados li{
			width: 20%;
		}
	}
	
	
	@media only screen and (max-width: 479px){
		
		ul.lista-abogados li{
			width: 100%!important;
		}
		
		div.abogado{
			height: 222px!important;
		}
		
		div.abogado img{
			height: 140px!important;
		}
	}
	
	div.abogado{
		position: relative;
		overflow: hidden;
		text-align: center;
		border: 1px groove #020895;
		height: 270px;
	}
	
	div.abogado:hover{
		-webkit-transform: scale(1.1);
		
	}
	
	div.abogado img{
		max-width: 100%;
		max-height: 180px;
		filter: gray;
		/*-webkit-filter: grayscale(1);*/
	}
	
	div.abogado img:hover{
		/*-webkit-transform: scale(1.1);*/
		
		
	}
	
	div.abogado .nombre{
		font-size: 14px;
		/*position: absolute;*/
		bottom: 0;
		left: 0;
		padding: 15px 10px;
		margin: 0;
		width: 100%;
		text-align: center;
		/*background-color: rgba(0,0,0,.55);*/
		font-weight: bold;
		color: #B3241A;
		text-transform: uppercase;
		-webkit-transition: all .5s ease-in-out;
	}
	
	
	
	div.abogado:hover .nombre{
		bottom: -80px;
		/*opacity: 0;*/
	}
	
	
	div.abogado .sucursal{
		font-size: 12px;
		padding: 5px;
		font-weight: bold;
		background-color: rgba(0,0,0,.20);
	}
	
	div.abogado-info{
		margin-bottom: 20px;
		text-align: center;
	}
	
	div.abogado-info img{
		width: 150px;
		height: auto;
		margin-bottom: 20px;
	}
	
	.abogado-info p{
		margin-bottom: 5px;
		padding: 0 40px;
		font-size: 14px;
	}
	
	@media only screen and (max-width:481px){
		.abogado-info p{
			padding: 0;
		}
	}

</style>
    
    
    
</head>
    
<body>
    
<?php include('../headerint.php'); ?>


<h1 class="titulos">LISTADO DE ABOGADOS</h1>

<br>
<main class="main">
    <!--<div align="center">
    <?php echo "<input type='button' id='btn-submit' name='button' class='irmenu' onclick=\"window.location.href='../index.php' \" value='Atr&aacute;s'>"; ?>
	</div>-->
<?php
$email = "serviabogados@asjudinet.com";	
	
$consulta_sucursales = mysql_query("SELECT sucursal FROM asjudinet_abogados");
	

//NUEVO 
	
$busca_abogado = mysql_query('SELECT cedula, Nombre_Completo, codigo FROM Usuarios WHERE Cargo = "ABOGADO" and estado = 1 ');
list($cedula_abogado, $nombre_abogado, $codigo_abogado)=mysql_fetch_row($busca_abogado);
	
if($codigo_abogado==true)
{
		
	
		
$control = mysql_query('SELECT codigo_abogado, cedula, nombre_completo, sucursal, url_imagen, especialidad, correo, id FROM asjudinet_abogados WHERE (vigentes = 1 and estado = 0) and (codigo_abogado != 1 and codigo_abogado != 667)   ORDER BY sucursal,nombre_completo');
if (!$control) {   
	die('Invalid query 0: ' . mysql_error());
}

if ((mysql_num_rows($control)!=0)) 
{		 		  
            
	?>
	<main class="main">
	<div class="contenedor" align="center">
    	
    	<!--<p>Para comunicarse con nuestros Abogados enviar correo a <span class="grande"><?php echo $email; ?></span></p>-->
    	<hr>
    	
    </div>
	
	<section class="abogados contenedor clearfix">
	<ul class="lista-abogados ">
	<?php	
	
 	while(list($codigo, $cedula, $nombre_abogado, $sucursal, $url_imagen_abogado, $especialidad_abogado, $email, $id) = mysql_fetch_row($control)) 
  	{
		
		
		
		?>
		<li>
			<div class="abogado">
			<p class="sucursal"><?php echo $sucursal; ?></p>
			<a class="abogado-info" href="#abogado<?php echo $id; ?>" alt="">
				<img src="../ELEMENTS/abogados/<?php echo (file_exists('../ELEMENTS/abogados/'.$url_imagen_abogado)) ? $url_imagen_abogado : 'sin_foto_abogado.png'; ?>" alt="">
				<p class="nombre"><?php echo $nombre_abogado; ?></p>
			</a>
			
			
			</div>
		</li>
		
		<div style="display:none">
	 		<div class="abogado-info" id="abogado<?php echo $id; ?>">
				<h1 class="titulos"><?php echo $nombre_abogado; ?></h1>
					<p class="centrado">
					<img src="../ELEMENTS/abogados/<?php echo (file_exists('../ELEMENTS/abogados/'.$url_imagen_abogado)) ? $url_imagen_abogado : 'sin_foto_abogado.png'; ?>" alt="imagen abogado"></p>
					
					<main class="main">
					<div class='table-responsive'>
					<table class='table'>
					<thead>
					<tr>
						<th><span class="exp">SUCURSAL :</span></th><th><?php echo $sucursal; ?></th>
					</tr>
					<tr>
						<th><span class="exp">ESPECIALIDAD :</span></th><th><?php echo $especialidad_abogado; ?></th>
					</tr>
					<tr>
						<th><span class="exp">EMAIL :</span></th><th><?php echo $email; ?></th>
					</tr>
					</thead>
					<!--<p><span class="exp">SUCURSAL :</span> <?php echo $sucursal; ?></p>
					<p><span class="exp">ESPECIALIDAD :</span> <?php echo $especialidad_abogado; ?></p>
					<p><span class="exp">EMAIL:</span> <?php echo $email; ?></p>-->
					
					</table>
					</div>
					</main>
			</div>
		</div>
		
	<?php	
		
		$tota = $tota + 1;
	}  
	

	?>
	</ul>
	</section>
	</main>
	<?php
}
}
echo "<TABLE width='200' border='0' align='center' cellpadding ='0' cellspacing='1'>
<TR>
<TD class='tdtitulo'>TOTAL</TD>";		 		  
                              
printf("<tr>   
<td class='tdfull'>".$tota."</td>");	

echo "</form>";  

?>


    
</main>

<script src="../js/jquery_3.3.1.js"></script>

<script src="../js/bootstrap.min.js"></script>
        
<script src="../js/jquery.colorbox-min.js"></script>


<script>	
	$(".abogado-info").colorbox({inline:true, width:"50%"});
</script>
 	
 	
 	
   
</body>
</html>