datatable correction
This commit is contained in:
@@ -862,6 +862,7 @@ Request.JSONF = function(options){//oke
|
|||||||
opsi.ajax = {
|
opsi.ajax = {
|
||||||
url: vars.url,
|
url: vars.url,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
cache: false,
|
||||||
data: post_data,
|
data: post_data,
|
||||||
dataFilter: function(data){
|
dataFilter: function(data){
|
||||||
var json = jQuery.parseJSON(data), jsono = {};
|
var json = jQuery.parseJSON(data), jsono = {};
|
||||||
|
|||||||
+2
-1
@@ -237,7 +237,7 @@ final class Table {
|
|||||||
$id_draw = intval($this->__cpa->Get("draw", 0));
|
$id_draw = intval($this->__cpa->Get("draw", 0));
|
||||||
$i_start = intval($this->__cpa->Get("start", 0));
|
$i_start = intval($this->__cpa->Get("start", 0));
|
||||||
$i_length = intval($this->__cpa->Get("length", 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) {
|
if ($id_draw > 0) {
|
||||||
$t_order = "ASC";
|
$t_order = "ASC";
|
||||||
@@ -257,6 +257,7 @@ final class Table {
|
|||||||
|
|
||||||
$adata['data'] = [];
|
$adata['data'] = [];
|
||||||
$this->__cdb->Query("SELECT ".$this->__tfield." FROM ".$this->__ttable.$this->__twhere.$sql_order.$sql_limit);
|
$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()) {
|
while ($this->__cdb->Next()) {
|
||||||
$abaris = [];
|
$abaris = [];
|
||||||
$aoption = ['button'=>[]];
|
$aoption = ['button'=>[]];
|
||||||
|
|||||||
Reference in New Issue
Block a user