E:
/
home
/
kbcomunicacao1
/
Web
/
sysmex-news
/
adm
/
controlers
/
Upload File
HOME
<style type="text/css"> .html5buttons{float: right !important;} .dataTables_info{display: none !important} </style> <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-lg-10"><!--topo cliente --> <h2>Analytics</h2> <ol class="breadcrumb"> <li> <button data-toggle="modal" data-target="#ModalLogin" type="button" class="btn btn-primary btn-sm">Novo</button> </li> </ol> </div> <div class="col-lg-2"> </div> </div><!-- topo clientes --> <div class="wrapper wrapper-content animated fadeInRight"><!-- clientes--> <div class="row"> <div class="col-sm-12"> <div class="ibox"> <div class="ibox-content"> <div class="clients-list"> <div class="tab-content"> <div id="tab-1" class="tab-pane active"> <div class="full-height-scroll"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover dataTables-example" > <thead> <tr> <th>Notícia</th> <th>Português</th> <th>Espanho</th> <th>Total</th> </tr> </thead> <tbody> <?php $query = "SELECT * FROM cw_blog ORDER BY posicao_blog"; $link = DBConnect(); $result = @mysqli_query($link, $query) or die(mysqli_error($link)); while($res = mysqli_fetch_assoc($result)){ ?> <tr class="gradeX"> <td><?php echo $res['titulo_blog']; ?></td> </td> <td class="center"> <?php $querypropt = "SELECT noticia_cliques FROM cw_cliques WHERE noticia_cliques='$res[id_blog]' AND idioma_cliques='0'"; $resultpropt = DBExecute($querypropt); $respropt = mysqli_fetch_assoc($resultpropt); $rowpropt = mysqli_num_rows($resultpropt); echo $rowpropt; ?> </td> <td class="center"> <?php $queryproes = "SELECT noticia_cliques FROM cw_cliques WHERE noticia_cliques='$res[id_blog]' AND idioma_cliques='1'"; $resultproes = DBExecute($queryproes); $resproes = mysqli_fetch_assoc($resultproes); $rowproes = mysqli_num_rows($resultproes); echo $rowproes; ?> </td> <td class="center"> <?php echo $rowpropt+$rowproes; ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <div class="col-sm-5"> <div class="ibox "> </div> </div> </div> </div><!-- clientes--> <script> $(document).ready(function(){ $('.dataTables-example').DataTable({ pageLength: 25, responsive: true, dom: '<"html5buttons"B>lTfgitp', buttons: [ { extend: 'copy'}, {extend: 'excel', title: 'ExampleFile'}, {extend: 'pdf', title: 'ExampleFile'}, {extend: 'print', customize: function (win){ $(win.document.body).addClass('white-bg'); $(win.document.body).css('font-size', '10px'); $(win.document.body).find('table') .addClass('compact') .css('font-size', 'inherit'); } } ] }); }); </script>