2017 © Pedro Peláez
 

library parvus-html-table

Create HTML tables for Datables with Bootstrap 3.

image

adrianobnu/parvus-html-table

Create HTML tables for Datables with Bootstrap 3.

  • Tuesday, February 27, 2018
  • by adrianobnu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 359 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Parvus HTML Table

Create HTML tables for Datables with Bootstrap 3., (*1)

$table = new \Parvus\HTMLTable();

$table->orderby(array('Nome', 'Celular' => 'desc'))

$table->th('Nome');
$table->th('E-mail');
$table->th('Celular',115,TABLE_ALIGN_CENTER,'telefone');
$table->th('Telefone',115,TABLE_ALIGN_CENTER,'telefone');
$table->th('Ação',100,TABLE_ALIGN_CENTER,NULL,false);

foreach (\Model\Usuario::orderby('nome')->get() as $item)
{

    $table->td(array (
        $item->nome,
        $item->email,
        array (
            'label' => '(44) 9999-9999',
            'value' => '44999999'
        ),
        $item->telefone,
        $table->button('Editar','usuario/form?id='.$item->id)
    ));

}

$aHTML = $table->html();

print ($aHTML['html']);

<script>

    print ($aHTML['javascript']);

</script>

The Versions

27/02 2018

dev-master

9999999-dev

Create HTML tables for Datables with Bootstrap 3.

  Sources   Download

MIT

The Requires

 

jquery table datables