public function find($id) { $db = new data_base(tpl_trainer::trainer(), array("*"), array(tpl_trainer::trainer() => $id)); $results = $db->get_where(); if (!empty($results)) { return $results; } else { return false; } }
" data-cache="false" data-height="400" data-show-refresh="true" data-show-toggle="true" data-show-columns="true" data-pagination="true" data-page-list="[5, 10, 20, 50, 100, 200]" data-search="true" data-flat="true" data-toolbar="#toolbar"> <thead> <tr> <th data-field="<?php echo tpl_trainer::id(); ?> " data-halign="center" data-sortable="true"> id</th> <th data-field="<?php echo tpl_trainer::name(); ?> " data-formatter="operate<?php echo tpl_trainer::trainer(); ?> " data-halign="center" data-sortable="true"> name </th> <th data-field="<?php echo tpl_companies::companies() . '_' . tpl_companies::id(); ?> " data-halign="center" data-sortable="true"> companies </th> <th data-field="<?php echo tpl_university::address(); ?> " data-halign="center" data-sortable="true"> address