" data-halign="center" data-sortable="true"> address </th> <th data-field="<?php echo tpl_university::active(); ?> " data-halign="center" data-formatter="operate<?php echo tpl_university::active(); ?> " data-sortable="true">active </th> <th data-field="<?php echo tpl_university::date_in(); ?> " data-halign="center" data-sortable="true"> date_in </th> <th data-field="operate" data-formatter="operateFormatter" data-events="operateEvents" data-align="center">Action </th> </tr> </thead> </table> </div> </div> </div> </div> <script type="text/javascript">
public function ajax_students() { $db = new data_base(tpl_university::university(), array(tpl_university::id(), tpl_university::active(), tpl_university::address(), tpl_university::date_in(), tpl_university::name(), tpl_university::phone(), data_base::select_multiple_table(tpl_students::students(), tpl_students::students() . '.' . tpl_students::id_university(), tpl_university::university() . '.' . tpl_university::id(), 'COUNT(' . tpl_students::id() . ')', tpl_students::students() . '_' . tpl_students::id()))); echo json_encode($db->get()); }