datatable correction

This commit is contained in:
2023-10-17 17:17:44 +07:00
parent d4d9b6c6e7
commit d7644da5a9
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -862,6 +862,7 @@ Request.JSONF = function(options){//oke
opsi.ajax = {
url: vars.url,
type: 'POST',
cache: false,
data: post_data,
dataFilter: function(data){
var json = jQuery.parseJSON(data), jsono = {};
+2 -1
View File
@@ -237,7 +237,7 @@ final class Table {
$id_draw = intval($this->__cpa->Get("draw", 0));
$i_start = intval($this->__cpa->Get("start", 0));
$i_length = intval($this->__cpa->Get("length", 0));
$i_order = intval($this->__cpa->Get("order", 0));
$i_order = $this->__cpa->Get("order", 0);
if ($id_draw > 0) {
$t_order = "ASC";
@@ -257,6 +257,7 @@ final class Table {
$adata['data'] = [];
$this->__cdb->Query("SELECT ".$this->__tfield." FROM ".$this->__ttable.$this->__twhere.$sql_order.$sql_limit);
$adata['sql'] = "SELECT ".$this->__tfield." FROM ".$this->__ttable.$this->__twhere.$sql_order.$sql_limit;
while ($this->__cdb->Next()) {
$abaris = [];
$aoption = ['button'=>[]];