E:
/
home
/
kbcomunicacao1
/
Web
/
innterage
/
includes
/
Upload File
HOME
<?php session_start(); // Recuperando informações $ultimo = (int) $_POST['ultimo']; require 'conexao/funcao.inc.php'; require 'conexao/config.php'; require 'conexao/conn.php'; require 'conexao/function.php'; ?> <table class="footable table table-stripped" data-page-size="40000" data-filter=#filter> <tbody> <?php $query = "SELECT * FROM cw_cliente WHERE id_cliente > {$ultimo} ORDER BY razao_cliente LIMIT 0,30"; $link = DBConnect(); $result = @mysqli_query($link, $query) or die(mysqli_error($link)); $row = mysqli_num_rows($result); while($res = mysqli_fetch_assoc($result)){ ?> <tr lang='<?php echo $res['id_cliente']; ?>'> <td> <a href="#" title="Excluir" id="<?php echo $res['id_cliente']; ?>" class="deletarcliente" ><i class="fa fa-trash"> </i></a> </td> <td><a href="./?pag=cliente&id=<?php echo $res['id_cliente']; ?>" class="client-link"><?php echo $res['codigo_cliente']; ?></a></td> <td><a href="./?pag=cliente&id=<?php echo $res['id_cliente']; ?>" class="client-link"><?php echo $res['razao_cliente']; ?></a></td> <td width="15%"><?php echo $res['cnpj_cliente']; ?></td> <td width="15%"><i class="fa fa-phone-square"> </i> <?php echo $res['telefone_cliente']; ?></td> <td width="2%" class="client-status"> <?php if($res['status_cliente']==0){ ?> <a href="#" title="Alterar Status" id="<?php echo $res['id_cliente']; ?>" class="desativarcli"> <span class="label label-primary">Ativo</span> </a> <?php }else{ ?> <a href="#" title="Alterar Status" id="<?php echo $res['id_cliente']; ?>" class="ativarcli"> <span class="label label-danger">Desativada</span> </a> <?php } ?> </td> <td class="project-actions"> <a href="./?pag=cliente&id=<?php echo $res['id_cliente']; ?>" class="btn btn-white btn-sm"><i class="fa fa-folder"></i> Visualizar </a> </td> </tr> <?php } ?> </tbody> </table>