<?php include 'concha.php';?>

<?php $titulo = "$nombresitio / Programaci&oacute;n";
include 'arriba_full.php'
?> 


 <script type="text/javascript" src="//recursos.radiosnethosting.com/ckeditor/ckeditor.js"></script>

<script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script> 

 <div class="<? if ($estiloweb == 4 || 61) { ?> col-lg-8 col-md-8<? } else { ?>col-lg-9 col-md-9 <? } ?> col-sm-12 col-12 p-0" >  

    
     
              
              <div class="col-12 col-lg-12" style="margin-bottom:2em;">
                 
                  <div class="widget-head">
                    <h1 class="widget-title">
                        <span><? echo $lang_100080?></span>
                    </h1>
        </div>
                  
                
                
            
            
            </div>
     
     <div class="col-12 col-lg-12">
     
         <div class="grid">
             
                                     
<?php	  


$sql = "SELECT * FROM profesiones ORDER BY profesion ";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
    
{

$ID = $row["ID"];
$profesion = $row["profesion"];


?>
             
              <a href="<?php echo $dom?>/profesionales.php?ID=<?php echo $ID?>" class="grid-item btn btn-outline-primary col-4 col-lg-3">
             
                <b><?php echo $profesion?></b> 
             
             </a>
       
              <?php 

 }
             
$consulta->free_result();

?>   
               
         
        
         </div>
     
     </div>
     
     <div class="col-12 col-lg-12">
         
         <div class="grid" style="margin:15px 0;">
                
               
                        
              <?php 
	  
             $ID_cat = (int)$_GET['ID'];
       
             
                
             if ($ID_cat == '') { 
                 
                 $sql = "SELECT * FROM profesionales ORDER BY rand() LIMIT 15"; 
             
             } else { 
                 
                 $sql = "SELECT * FROM profesionales WHERE profesion = '$ID_cat' LIMIT 15"; 
             
             }
             
           
                            
                $consulta = $conn->query($sql);
                while ($row = $consulta->fetch_assoc())
                {

                $ID = $row["ID"];
                $nombre = $row["nombre"];
                $foto = $row["foto"];
                $email = $row["email"];
                $texto = $row["texto"];
                $ID_p  = $row["profesion"];
                $facebooka  = $row["facebook"];
                $instagrama  = $row["instagram"];
                $whatsappa  = $row["whatsapp"];
                $telefono  = $row["telefono"];


                ?>
              
              <div class="grid-item col-12 col-sm-6 col-lg-3 news-summary bloque">
                  
                    <div class="profesionTitle">
                                       
                                                           <?php 
	  


                            $sql2 = "SELECT * FROM `profesiones` WHERE ID = '$ID_p' LIMIT 1 ";
                            $consulta2 = $conn->query($sql2);
                            while ($row2 = $consulta2->fetch_assoc())
                            {

                            $ID_p = $row["ID"];
                            $profesion = $row["profesion"];

                            }?>
                                <h5 style="font-weight:700;letter-spacing:1px;"><?php   echo $profesion ;?></h5>
                                                
                                                <?
                            $consulta2->free_result();

                            ?>   
                        
                  
                  </div>
                  
                   <div class="col-12 col-lg-12 bloqueFoto">
                       
                       <div class="fotoEdit">
                           
                           
                           
                       <img src="<?php   echo "$dom/$foto" ;?>" class="img-fluid img-responsive" title="<?php   echo $nombre ;?>"> 
                  
                       </div>
                               
                       <div style="text-align:center;">
                       
                                                    
                           <div id="btn-group" class="btn-group" role="group" aria-label="Basic example">
                    
                               <a href="<?php echo $facebooka ;?>" target="_blank"  class="btn btn-outline-primary"><i class="fab fa-facebook-square"></i></a>
                    
                               <a href="<?php echo $instagrama ;?>" target="_blank"  class="btn btn-outline-primary"><i class="fab fa-instagram"></i></a>
                  
                               <a href="https://web.whatsapp.com/send?phone=549<?php echo $telefono ;?>" target="_blank"  class="btn btn-outline-primary"><i class="fab fa-whatsapp-square"></i></a>
                    
                           </div>
                       
                       </div>
                       
                      
                       
                  </div>
                  
                  <div class="col-12 col-lg-12 bloqueTexto">
                  
                      <h4 class="">
                          
                        <?php   echo $nombre ;?>
                          
                    </h4>
              
                      <ul style="list-style:none;margin:0;padding:0;">
                      
                          <li><p><?php   echo $telefono ;?></p></li>
                          
                          <li><p><?php   echo $email ;?></p></li>
                          
                          <li><p><br><?php   echo $texto ;?></p></li>
                      
                      </ul>
                 
                    
                    
                    
                  
                  </div>
                       
                  
                  
              
                      
                      </div>
              
                      
              <?php 

 }
$consulta->free_result();

?>   
                  
              
              </div>
     
     </div>
           
  
</div>  

<?php include 'abajo_full.php'; ?>