Example #1
0
<?php

require_once 'eTable.php';
require_once 'pagehelper.php';
$table = new ETable();
$results = $table->get();
//die(json_encode($results));
$headers = $results['headers'];
$body = $results['body'];
//
// Paging
//
$total = $results['total'];
$page = $results['page'];
$pagesize = $results['pagesize'];
$pagecount = ceil($total / $pagesize);
//
// Searching
//
$hasSearch = false;
foreach ($headers as $header) {
    if ($header['cfg']['searchable'] == true) {
        $hasSearch = true;
        break;
    }
}
//
// Sorting
//
function get_sorting_class($header)
{
Example #2
0
<?php

require_once 'eTable.php';
$table = new ETable();
$results = $table->get_all_tables();
//die(json_encode($results));
?>

<ul>
	<?php 
foreach ($results as $table => $cfg) {
    ?>
	<li><a href="?t=<?php 
    echo $table;
    ?>
"><?php 
    echo $table;
    ?>
</a></li>
	<?php 
}
?>
</ul>