<?php include 'sesion.php';?>
<?php include 'concha.php';?>
<!DOCTYPE html>
<html lang="es">
<head><meta charset="gb18030">
	<!-- Required meta tags -->
	
	<meta name="description" content="Panel de Administracion">
	<meta name="author" content="<?php echo $nombresitio ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php echo $nombresitio ?> - Panel de Administracion</title>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="" type="image/x-icon">
<link rel="apple-touch-icon" href="">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<!-- Link to your css file -->
<link rel="stylesheet" href="">
  	<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>

  <style type="text/css">

      *{
          border-radius: 0!important;
          
      }

      body {
          background-image: url(../fondeux.jpg);
      }

      .navbar {
          position: relative;
      min-height: 50px;
      padding-bottom:  20px;
      /* border: 1px solid transparent; */
          
      }
      
    .btn-primary {
      color: #fff!important;
      background-color: #0066FF;
      border-color: #0066FF;
          }
      
      .page-header{
          margin: 0;
          padding: 1em;
          background-color: #0066FF;
          border: 0;
          text-align:center;
      }
      
      .page-header h2{
          
          color: #ffffff;
          font-weight: bold;
      }
      
      .bloqueAzul{
        /*  background-color: #0066FF;*/
        /* border: 1px solid #e4e4e4;*/
        /*  padding: 1em;*/
          text-align: center;
      }
      
      .bloqueAzul .div {
        border: 1px solid #e4e4e4;  
          background-color: #fff;
      }
      
      ul{
          list-style: none;
          padding: 0;
      }
      
      .far{
          color:#0066FF;
      } 
      .faso {
          color:#0066FF;
      } 
      
      .colorAzul h3{
          color:#0066FF;
          
      }

      textarea {
        width: 100%;
        min-height: 250px;
      }
      
  </style>

  <script language=javascript>
    function ventanaSecundaria (URL){
    window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
    }
  </script>
<script type="text/javascript" src="//recursos.radiosnethosting.com/ckeditor/ckeditor.js"></script>

    
</head>



<body>

<div class="container" style="background-color:#F1F2ED;">
        
        
        
        <?php include 'menu.php';  ?>
     
    
    
    </div>
      <div  style="background-color:#fff;" class="container pt-3">
          
                  <div class="page-header" style="">
  
                <h2><? echo $asdsad ?>Editar Información</h2>

            </div>

              
              
              <div class="row mt-3">
              
                  
                  
                                      <?php 
                        	  $ID = (int)$_GET['ID'];
                                                        
                        mysql_connect ("$host", "$usuario", "$contra");
                        mysql_select_db ("$basedatos");
                        $sql = "SELECT * FROM `profesionales` WHERE ID = '$ID' LIMIT 1";
                        $consulta = mysql_query ($sql);
                        while ($row = mysql_fetch_array($consulta))
                        {
                        
                        $ID = $row["ID"];
                        $nombre = $row["nombre"];
                        $foto = $row["foto"];
                        $email = $row["email"];
                        $texto = $row["texto"];
                        $telefono  = $row["telefono"];
                        $profesion  = $row["profesion"];
                        $instagrama  = $row["instagram"];
                        $facebooka  = $row["facebook"];
                        $whatsappa  = $row["whatsapp"];
                        
                         }    
                                        
                        ?>
               
              <div class="col-12 col-lg-6">
                  
                      <form id="formy1" name="formy1" action="form_editar_info_principal_profesionales.php" method="POST">
                            
                          <div class="form-group" style="display: none;">
                              
                              <input value="<?php echo $ID ;?>" type="text" class="form-control" name="ID1" placeholder="ID">
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <input value="<?php echo $nombre ;?>" type="text" class="form-control" name="nombre1" placeholder="Nombre y Apellido">
                          
                          </div>
                          
                          <div class="form-group">
                              
                                <select class="form-control" name="profesion" id="profesion">
              <?php



$sql65 = "SELECT * FROM `profesiones`";




$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{

$ID_p = $row65["ID"];

$profesion = $row65["profesion"];


?>
              <option <?php if ('$ID == $ID_p') { echo 'selected' ;} else {} ;?> value="<?php echo $ID_p ?>"><?php echo $profesion ?></option>
                                    
              <?


 }
mysql_free_result($consulta65);

?>
            </select>
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <input value="<?php echo $email ;?>" type="mail" class="form-control" name="email1" placeholder="Correo">
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <input value="<?php echo $telefono ;?>" type="phone" class="form-control" name="telefono1" placeholder="Teléfono">
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <input value="<?php echo $facebooka ;?>" type="text" class="form-control" name="facebooka1" placeholder="Facebook">
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <input value="<?php echo $instagrama ;?>" type="text" class="form-control" name="instagrama1" placeholder="Instagram">
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <input value="<?php echo $whatsappa ;?>" type="text" class="form-control" name="whatsappa1" placeholder="Whatsapp">
                          
                          </div>
                          
                          <div class="form-group">
                              
                              <textarea value="<?php echo $texto ;?>" type="textarea" class="form-control" rows="3" name="texto1" placeholder="Mensaje"></textarea>
                          
                          </div>
                          
                          <button type="submit" class="btn btn-default">Cargar</button>
                    
                      </form>
                  
                  </div>
                  
                  <div class="col-12 col-lg-6">        
                      
              <div class="container-fluid">
              <div class="row bloque">
                  
                  <div class="col-12 col-lg-6">
                  
                    <style>
                  
                        .bloque{
                            
                            background-color: #fff;
                        }
                        
                  .grid-item{
                      margin-bottom: 1em;
                  }
                  .afterBefore {
                      background-color: #fff;
                      
                  }
                  .afterBefore a {
                      
                      display: block;
                      text-align: center;
                      border: 1px #0066FF solid;
                      padding: 0.5em;
                      margin: 0.5em 0;
                      background-color: #0066FF;
                      color: white;
                  } 
                  
                  .afterBefore a p {
                      margin: 0;
                      font-size: 0.9em;
                  }
                  
                 .afterBefore ul{
                      list-style: none;
                      padding: 1em;
                     margin-bottom: 0;
                  }
                  
                  .tituloAfter h4{
                      /*text-align: center;*/
                      
                      
                  }
                  
                  </style>
                  
                   <div class="afterBefore">
                       
                       <img src="<?php   echo "$dom/$foto" ;?>" class="surhive" alt="RadiosNet" style="max-width: 100%;"> 
                  
                  
                       
                  </div>
                      
                      </div>
                  <div style="background-color:#fff;" class="col-12 col-lg-6">
                  <div class="tituloAfter">
                  
                      <h4><?php   echo $nombre     ;?></h4>
                  
                  </div>
                  
              <div class="afterBefore">
                 <ul>
                                          
                     <li><p><?php echo $profesion ;?></p></li>                     
                     <li><p><?php echo $telefono ;?></p></li>
                     <li><p><?php echo $email     ;?></p></li>
                     <li><p><?php echo $texto     ;?></p></li>
                     
                     <li><p><?php echo $instagrama     ;?></p></li>
                     <li><p><?php echo $facebooka     ;?></p></li>
                     <li><p><?php   echo $whatsappa     ;?></p></li>
                  
                  
                  </ul>
             
                  
                  
              </div>
              </div>
              </div>
                 </div>     
              <?php 


mysql_free_result($consulta);

?>   
                  
              </div>
              </div>
              

</div>
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>      
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
 
    <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
<script type="text/javascript">
window.setInterval(function(){
  $('.grid').isotope({
  itemSelector: '.grid-item'
});
}, 2000);
</script>
    
   
</body>
</html>
