Esempio n. 1
0
<?php

/* * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Gerenciamento de consultório médico/odontológico  */
/*       Desenvolvido por: Reinaldo Silveira         */
/* * * * * * * * * * * * * * * * * * * * * * * * * * */
include_once "../header.php";
include_once "../../model/class.servicos.php";
include_once "../../controller/class.servicos.php";
$servico = new Servico();
$servicos = $servico->buscar();
$cont = count($servicos);
?>

    <script type="text/javascript" src="/view/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="/view/js/jquery-DT-pagination.js"></script>
    
    <script type="text/javascript">
    /* Table initialisation */
    $(document).ready(function() {
      $('#listagem').dataTable( {
              "bSort": false,      // Disable sorting
        "iDisplayLength": 10,   //records per page
          "sDom": "t<'row'<'col-md-6'i><'col-md-6'p>>",
          "sPaginationType": "bootstrap"
        });
      });
    </script>
    
    <style>
    .pagination {