PHP Classes

File: api/view/cliente_listagem.php

Recommend this page to a friend!
  Classes of adriano123456   PHP CRUD API Example   api/view/cliente_listagem.php   Download  
File: api/view/cliente_listagem.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP CRUD API Example
Example API to manipulate database table records
Author: By
Last change:
Date: 1 year ago
Size: 1,197 bytes
 

Contents

Class file image Download
<table id="lista_clientes" class="table table-sm table-hover table-bordered">
    <thead>
        <tr>
            <th scope="col">#</th>
            <th scope="col">ID</th>
            <th scope="col">NOME</th>
            <th scope="col">EMAIL</th>
            <th scope="col">ACAO</th>
        </tr>
    </thead>
    <tbody>
    <?php foreach($clientes as $cliente): ?>
<tr>
            <td><input type="checkbox" name="cadastro[]"></td>
            <td><?= $cliente['id' ] ?></td>
            <td><a href="#" id="<?= $cliente['id'] ?>" onClick="edit_row(this.id)" alt="clique alterar" title="clique alterar"><?= $cliente['nome' ] ?></a></td>
            <td><?= $cliente['email'] ?></td>
            <td>
                <!--<input type="button" class="btn btn-primary " id="<?= $cliente['id'] ?>" value="E" onClick="edit_row(this.id)">-->
                <input type="button" class="btn btn-danger" id="<?= $cliente['id'] ?>" value="Excluir" onClick="del_row(this.id,this)">
            </td>
        </tr>
    <?php endforeach;?>
</tbody>
    <tfoot>
        <tr><td colspan="5"><input type="button" class="btn btn-danger" value="Excluir itens"></td></tr>
    </tfoot>
</table>