<?php 
     session_start();
    
           @$usuario = $_POST['login_usuario'];
		     
            if (!isset($_SESSION['login_usuario'])) {
            	
            	//header("location: index.html");
            }
?>
<?php

// Incluimos la configuracion y conexion a la MySQL.
include('config.php');
// Definimos el ID de la persona a editar.
$id = htmlentities($_GET['id']);
// Mostramos los datos
$sql = "SELECT * FROM ciudadanos WHERE rut='".$id."' LIMIT 1";
$query = mysql_query($sql,$link);
$row = mysql_fetch_assoc($query);
?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>I.MUNICIPALIDAD DE ALHUÉ</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/fullcalendar.css" />
<link rel="stylesheet" href="css/matrix-style.css" />
<link rel="stylesheet" href="css/matrix-media.css" />
<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header"></div>
<!--close-Header-part--><!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li class=""><a title="" href="index.html"><i class="icon icon-share-alt"></i> <span class="text">Salir</span></a></li>
  </ul>
</div>

<!--start-top-serch-->

<!--close-top-serch--> 

<!--sidebar-menu-->

<div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard2</a>
  <ul>
    
    
   
    
    
    
   
    
  </ul>
</div>
<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="indexadmin.php" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> <img src="http://municipalidadalhue.cl/actividades/Logo-Municipio-Actualizado-01-1-1.png" width="190" height="190"></div>
  </div>
  <div  class="quick-actions_homepage">
  <center>
    <ul class="quick-actions">
     <li class="bg_lo"> <a href="actividadesfuncionarioinvi1.php?atencionpor=<?=$_SESSION['login_usuario']?>"> <i class="icon-user"></i> Mi cuenta</a> </li>

      <li class="bg_dg"> <a href="ciudadanos2.php"> <i class="icon-book"></i>Atenciones</a> </li>


      <li class="bg_dy"> <a href="terreno1.php"> <i class="icon-dashboard"></i>Ingresos Terreno</a> </li>
      
      <li class="bg_db"> <a href="usuarios.php"> <i class="icon-user-md"></i>Usuarios</a> </li>
      
      <li class="bg_ly"> <a href="departamentos.php"> <i class="icon-bookmark"></i>Departamentos</a> </li>

      <li class="bg_ls">  <a href="reportes.php"> <i class="icon-signal"></i> Reportes</a> </li>
    </ul>
	</center>
  </div>
  <div align="center"></div>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span6"></div>
      <div class="span6"></div>
    </div>
    <hr>
    <div class="row-fluid">
      <div class="span12"><div class="widget-content">
          <div class="widget-box">
            <div class="widget-title"> <span class="icon"> <i class="icon-pencil"></i> </span>
                <h5>DATOS CIUDADANO</h5></div>
            <div class="widget-content nopadding">
            <form class="form-horizontal" id="form-wizard" name="form2" action="actualizaregistro1.php" method="post">
            
            
              
                <div id="form-wizard-1" class="step">
                 
                  <div class="control-group">
                    <label class="control-label">Rut </label>
                    <div class="controls">
                      <input id="rut" type="text" name="rut" value="<?=$row['rut']?>"  />
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label">Nombres</label>
                    <div class="controls">
                      <input type="text" name="nombres" id="nombres" value="<?=$row['nombres']?>">
                        Apellidos 
                      <input id="apellidos" type="text" name="apellidos" value="<?=$row['apellidos']?>" />
                     
                    </div>
                  </div>
                </div>
                <div id="form-wizard-2" class="step">
                  <div class="control-group">
                    <label class="control-label">Fono</label>
                    <div class="controls">
                    <input type="tel" name="fono" id="fono" value="<?=$row['fono']?>">
                        Dirección 
                      <input id="direccion" type="text" name="direccion" value="<?=$row['direccion']?>" />
                    </div>
                  </div>
                  <p align="">
                          <input class="btn btn-success" type="submit" name="resolver" id="resolver" value="Actualizar datos" >
                        </p>
                </div>
               
                <div id="submitted">
                  <div class="widget-box">
                    <div class="widget-content nopadding">
                      <div class="form-actions">
                       

                      </div>
                    </div>
                  </div>
                  <p>&nbsp;</p>
                </div>
              </form>
            </div>
          </div>
      </div>
        <p>&nbsp;</p>
      </div>
    </div>
  </div>
</div>
</div>
<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2017 &copy;MTO / I.Municipalidad de Alhué  </div>
</div>
<!--end-Footer-part-->
<script src="js/excanvas.min.js"></script> 
<script src="js/jquery.min.js"></script> 
<script src="js/jquery.ui.custom.js"></script> 
<script src="js/bootstrap.min.js"></script> 
<script src="js/jquery.flot.min.js"></script> 
<script src="js/jquery.flot.resize.min.js"></script> 
<script src="js/jquery.peity.min.js"></script> 
<script src="js/matrix.js"></script> 
<script src="js/fullcalendar.min.js"></script> 
<script src="js/matrix.calendar.js"></script> 
<script src="js/matrix.chat.js"></script> 
<script src="js/jquery.validate.js"></script> 
<script src="js/matrix.form_validation.js"></script> 
<script src="js/jquery.wizard.js"></script> 
<script src="js/jquery.uniform.js"></script> 
<script src="js/select2.min.js"></script> 
<script src="js/matrix.popover.js"></script> 
<script src="js/jquery.dataTables.min.js"></script> 
<script src="js/matrix.tables.js"></script> 
<script src="js/matrix.interface.js"></script> 
<script type="text/javascript">
  // This function is called from the pop-up menus to transfer to
  // a different page. Ignore if the value returned is a null string:
  function goPage (newURL) {

      // if url is empty, skip the menu dividers and reset the menu selection to default
      if (newURL != "") {
      
          // if url is "-", it is this page -- reset the menu:
          if (newURL == "-" ) {
              resetMenu();            
          } 
          // else, send page to designated URL            
          else {  
            document.location.href = newURL;
          }
      }
  }

// resets the menu selection upon entry to this page:
function resetMenu() {
   document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
