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/sucursales.php
<?php 
	require_once("../Conectarse.php");
?>


<!DOCTYPE html>
<html lang="en">
<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>Sucursales</title>

    <link rel="stylesheet" href="../css/all.min.css">
    
    
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    
   <!-- MAPA -->
   <link rel="stylesheet" href="../css/leaflet.css">
   
   <link rel="stylesheet" href="../css/estilos.css">
   
   
<style>
	
	.principal{
		margin-top: 20px;
	}

	.flexbox-container {
		display: -ms-flex;
		display: -webkit-flex;
		display: flex;
		flex-wrap: nowrap;
		margin: 20px 0 20px 0;
		border-bottom: 1px solid red;
	}

	.flexbox-container > div {
		width: 50%;
	}

	.flexbox-container > div:first-child {
		margin-right: 20px;
	}
	
	.contenedor{
		margin-top: 10px;
		clear: both;
	}	
		
	/*#map {
		width: 100%;
		height: 300px;
		z-index: 8;
	}*/
	
	
	.ciudad{
		float: left;
	}
	
	.ciudad img{
		width: 100%; height: 300px;
	}
	
	@media only screen and(max-width:400px){
		.ciudad img{
			max-width: 100%;
		}
	}
	
	
	.sucursal{
		font-size: 1.2em!important;
		text-align: center;
		margin: 0 auto;
		font-weight: bold;
		color: #B3241A;
	}
	
	
	.director{
		width: 100%;
		float: left;
		padding: 0 20px;
		text-align: center;
		
		position: relative;
		overflow: hidden;
	}
	
	
	
	.director img{
		width: 130px;
		height: auto;
		text-align: left;
		border-radius: 300px;
		margin-top: 30px;
	}
	
	.director p{
		font-size: 13px;
		text-align: left;
		line-height: 15px;
		margin: 0;
		padding-left: 50px;
		
	}
	
	.director p span{
		color: #B3241A;
	}
	
	table{
		width: 100%;
	}
	
	
	
	.mapa{
		margin: 0 auto;
		text-align: center;
		margin-top: 20px;
	}
	
	</style>
    
    
    <script src="../js/jquery_3.3.1.js"></script>
	
	
</head>
<body>



<?php

	include_once("../headerint.php");
	include_once("../navint.php");
?>
<main>

<div class="mapa"><a href="sucursalesmapa.php"><button type="button" class="btn btn-primary">MAPA DE LAS SUCURSALES</button></a></div>

<div class="principal clearfix">
	
	<?php
	$control = mysql_query("SELECT nombre_completo, cargo, sucursal FROM Usuarios WHERE cargo like '%DISER%' and cargo !='DISER BOGOTA' and (sucursal_servicio != 'MOCOA' and sucursal_servicio != 'YOPAL') and estado = 1 ORDER BY sucursal");
	if (!$control) {   
	die('Invalid query 0: ' . mysql_error());
	}
	
	
	
	while(list($nombre, $cargo, $sucursal) = mysql_fetch_row($control))
	{
		
		$control2 = mysql_query("SELECT nombre, celular, celular2, horarios, direccion, telefono, url_imagen, mapa FROM sucursal WHERE nombre = '".$sucursal."' ORDER BY nombre");
		if (!$control2) {   
			die('Invalid query 0: ' . mysql_error());
		}
		list($nombre_sucu, $celular_sucu, $celular2_sucu, $horarios_sucu, $direccion_sucu, $telefono_sucu, $url_imagen_diser, $mapa) = mysql_fetch_row($control2);	
		
		$celulares = $celular_sucu." - ".$celular2_sucu;
		
		?>
		
		
		
		<div class="flexbox-container">
		<div>
			<!--<div id="map" class="ciudad"><?php echo $mapa; ?></div>-->
			<p class="sucursal"><?php echo $nombre_sucu; ?></p>
			<div id="map" class="ciudad"><img src="../ELEMENTS/sucursales/<?php echo $mapa; ?>" alt=""></div>
		</div>
		<div class="director">
			
			<img src="../ELEMENTS/diser/<?php echo $url_imagen_diser; ?>" alt="">
			<br><br>
			<p>NOMBRE : 	<span><?php echo $nombre; ?></span></p>
			<p>DIRECCION : 	<span><?php echo $direccion_sucu; ?></span></p>
			<p>CELULAR : 	<span><?php echo $celulares; ?></span></p>
			<p>TELEFONO : 	<span><?php echo $telefono_sucu; ?></span></p>
			<br>
		</div>
	</div>
<?php
	
	}	
	
?>
	
	
</div>




</main>
	
	
	<!-- Make sure you put this AFTER Leaflet's CSS -->
	<script src="../js/leaflet.js"></script>
	<!--<script src="js/script.js"></script>--> 

	
	
	

	
	
<?php
    include("../footerint.php");
?>


	
</body>
</html>