nframework

  • Introducction
  • Features
  • Getting started
  • Download
  • Base Components
  • Inputs
  • InputFiles
  • Datetime
  • Databinding
  • DataTable
  • Ajax
  • Ajax Databinding
  • Ajax DataTable
  • Backend Components
  • DataSession
  • User
  • Javas
  • Functions
  • Special vars
  • Cache/Imagen
  • Authors
CONTACT ME
Get in touch
  • +52 (844) 227-1515
  • kike.nlared.com
  • quique@nlared.com
  • Spanish, English
© 2019
Created with nframework 4
 Iniciar

    Iniciar sesión...

DataTable

Nuevo
TituloDescripcionOpciones

<?php
require 'common.php';
$datatable=new MetroDataTable();
$datatable->header='<th>Titulo</th><th>Descripcion</th><th>Opciones</th>';
foreach ($m->{$config['sitedb']}->exampledata->find() as $doc) {
    $datatable->data[]=[
        $doc['_id'],
        serialize($doc),
        '<a href="punto.php?_id='.$doc['_id'].'"><spam class="mif-pencil"></spam></a>'
        ];
}
?>
<div class="container p-5">
	<div class="bg-cyan fg-white p-3"><h4>DataTable</h4></div>
	<div class="bg-white p-3">
	<a href="prueba.php" class="button"><span class="mif-plus"></span> Nuevo</a>		
	<?=$datatable;?>
</div>
</div>