<?php require_once('conexion2.php');
$cn=  Conectarse();
$listado = mysql_query("SELECT * FROM ciudadanos",$cn);

?>
<!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'>

<style type="text/css">
<!--
.Estilo1 {
	font-size: 16px;
	font-weight: bold;
}
.Estilo2 {color: #FFFFFF}
-->
</style>
</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> </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_lb"> <a href="ciudadanos.php"> <i class="icon-dashboard"></i> Ingresos </a> </li>    
 <li class="bg_lo"> <a href="usuarios.php"> <i class="icon-group"></i> Usuarios </a> </li>
 <li class="bg_ls">  <a href="reporteingresos.php" onClick="window.open(this.href, this.target, 'toolbar=si, location=si, directories=si, status=si, menubar=si, scrollbars=yes, resizable=yes, width=1000, height=580, top=100, left=100'); return false;"> <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-box widget-calendar">
          <div class="widget-content">
             <div class="box">
        
        <!-- /.box-header -->
        <div class="box-body">          <p align="center" class="Estilo1">Listado Ciudadanos </p>
          <table width="67%" align="center" class="table table-bordered table-striped" id="example1">
            <thead>
              <tr>
                <th width="10%">Rut</th>
                <th width="20%">Nombres</th>
			<th width="20%">Apellidos</th>

			<th width="38%">Dirección</th>

                <th width="38%">Nuevo Pago</th>

                <th width="38%">Ficha</th>
              </tr>
            </thead>
            <tbody>
              <?php 
			 while($reg=  mysql_fetch_array($listado))
                   {
                               echo '<tr>';
							  
 echo '<td>'.mb_convert_encoding($reg['rut'], "UTF-8").'</td>';
							
echo '<td>'.mb_convert_encoding($reg['nombres'], "UTF-8").'</td>';
echo '<td>'.mb_convert_encoding($reg['apellidos'], "UTF-8").'</td>';
							   
echo '<td>'.mb_convert_encoding($reg['direccion'], "UTF-8").'</td>';
							  
echo '<td><a href="nuevabitacoras.php?rut='.$reg['rut'].'" target="_blank"><img src="https://image.freepik.com/free-icon/check-form_318-104785.jpg" width="32" height="32"></a></td>';
							   echo '<td><a href="fichaciudadano.php?rut='.$reg['rut'].' "><img src="http://www.pixempire.com/images/preview/user-card-icon.jpg" width="40" height="32"></a></td></tr>';
							   
							   }
							   ?>
            </tbody>
            <tfoot>
              <tr>
                <th></th>
                <th></th>
                <th></th>
			<th></th>
			<th></th>
              </tr>
            </tfoot>
          </table>
          <p>&nbsp;</p>
        </div>
  </div>
          </div>
        </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>
<script src="http://municipalidadalhue.cl/documentos/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="http://municipalidadalhue.cl/documentos/bootstrap/js/bootstrap.min.js"></script>
<!-- Select2 -->
<script src="http://municipalidadalhue.cl/documentos/plugins/select2/select2.full.min.js"></script>
<!-- InputMask -->
<script src="http://municipalidadalhue.cl/documentos/plugins/input-mask/jquery.inputmask.js"></script>
<script src="http://municipalidadalhue.cl/documentos/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="http://municipalidadalhue.cl/documentos/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<!-- date-range-picker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="http://municipalidadalhue.cl/documentos/plugins/daterangepicker/daterangepicker.js"></script>
<!-- bootstrap datepicker -->
<script src="http://municipalidadalhue.cl/documentos/plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- bootstrap color picker -->
<script src="http://municipalidadalhue.cl/documentos/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!-- bootstrap time picker -->
<script src="http://municipalidadalhue.cl/documentos/plugins/timepicker/bootstrap-timepicker.min.js"></script>
<!-- SlimScroll 1.3.0 -->
<script src="http://municipalidadalhue.cl/documentos/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- iCheck 1.0.1 -->
<script src="http://municipalidadalhue.cl/documentos/plugins/iCheck/icheck.min.js"></script>
<!-- FastClick -->
<script src="http://municipalidadalhue.cl/documentos/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="http://municipalidadalhue.cl/documentos/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="http://municipalidadalhue.cl/documentos/dist/js/demo.js"></script>
<script>$(function () {
    //Initialize Select2 Elements
    $(".select2").select2();

    //Datemask dd/mm/yyyy
    $("#datemask").inputmask("dd/mm/yyyy", {"placeholder": "dd/mm/yyyy"});
    //Datemask2 mm/dd/yyyy
    $("#datemask2").inputmask("mm/dd/yyyy", {"placeholder": "mm/dd/yyyy"});
    //Money Euro
    $("[data-mask]").inputmask();

    //Date range picker
    $('#reservation').daterangepicker();
    //Date range picker with time picker
    $('#reservationtime').daterangepicker({timePicker: true, timePickerIncrement: 30, format: 'MM/DD/YYYY h:mm A'});
    //Date range as a button
    $('#daterange-btn').daterangepicker(
        {
          ranges: {
            'Today': [moment(), moment()],
            'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
            'Last 7 Days': [moment().subtract(6, 'days'), moment()],
            'Last 30 Days': [moment().subtract(29, 'days'), moment()],
            'This Month': [moment().startOf('month'), moment().endOf('month')],
            'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
          },
          startDate: moment().subtract(29, 'days'),
          endDate: moment()
        },
        function (start, end) {
          $('#daterange-btn span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
        }
    );

    //Date picker
    $('#datepicker').datepicker({
      autoclose: true
    });

    //iCheck for checkbox and radio inputs
    $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
      checkboxClass: 'icheckbox_minimal-blue',
      radioClass: 'iradio_minimal-blue'
    });
    //Red color scheme for iCheck
    $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
      checkboxClass: 'icheckbox_minimal-red',
      radioClass: 'iradio_minimal-red'
    });
    //Flat red color scheme for iCheck
    $('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
      checkboxClass: 'icheckbox_flat-green',
      radioClass: 'iradio_flat-green'
    });

    //Colorpicker
    $(".my-colorpicker1").colorpicker();
    //color picker with addon
    $(".my-colorpicker2").colorpicker();

    //Timepicker
    $(".timepicker").timepicker({
      showInputs: false
    });
  });
</script>

<!-- jQuery 2.2.0 -->
<script src="http://municipalidadalhue.cl/documentos/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="http://municipalidadalhue.cl/documentos/bootstrap/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script src="http://municipalidadalhue.cl/documentos/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="http://municipalidadalhue.cl/documentos/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="http://municipalidadalhue.cl/documentos/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="http://municipalidadalhue.cl/documentos/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="http://municipalidadalhue.cl/documentos/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="http://municipalidadalhue.cl/documentos/dist/js/demo.js"></script>
<!-- page script -->
<script>
  $(function () {
    $("#example1").DataTable();
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false
    });
  });
</script>
</body>
</html>
