From 537dfb882e246761a93ac6166f7e478cef47cc3a Mon Sep 17 00:00:00 2001 From: wangyuting Date: Wed, 6 Mar 2024 16:38:28 +0800 Subject: [PATCH] * Add old datatable. --- module/common/view/datatable.fix.html.php | 14 +- module/common/view/datatable.html.php | 2 +- module/common/view/dtable.html.php | 2 +- module/datatable/control.php | 113 ++++++++++ module/datatable/model.php | 162 ++++++++++++++ module/datatable/view/ajaxoldcustom.html.php | 215 +++++++++++++++++++ module/index/config.php | 1 + 7 files changed, 500 insertions(+), 9 deletions(-) create mode 100644 module/datatable/view/ajaxoldcustom.html.php diff --git a/module/common/view/datatable.fix.html.php b/module/common/view/datatable.fix.html.php index f3a19be1ac..d51baa0e5e 100644 --- a/module/common/view/datatable.fix.html.php +++ b/module/common/view/datatable.fix.html.php @@ -34,19 +34,19 @@ $(function() var $dropmenu = $(''); if(typeof(storyType) != 'undefined' && storyType == 'requirement') { - $dropmenu.append("
  • ' data-toggle='modal' data-type='ajax'>datatable->custom?>
  • "); + $dropmenu.append("
  • ' data-toggle='modal' data-type='ajax'>datatable->custom?>
  • "); } else if(typeof(extra) != 'undefined' && extra == 'unsetStory') { - $dropmenu.append("
  • ' data-toggle='modal' data-type='ajax'>datatable->custom?>
  • "); + $dropmenu.append("
  • ' data-toggle='modal' data-type='ajax'>datatable->custom?>
  • "); } else if((currentModule == 'marketreport' || currentModule == 'marketresearch') && currentMethod == 'browse') { - $dropmenu.append("
  • ' data-toggle='modal' data-type='ajax'>datatable->custom?>
  • "); + $dropmenu.append("
  • ' data-toggle='modal' data-type='ajax'>datatable->custom?>
  • "); } else { - $dropmenu.append("
  • datatable->custom?>
  • "); + $dropmenu.append("
  • datatable->custom?>
  • "); } $dropmenu.append("
  • \", true);' id='switchToDatatable'>datatable->switchToDatatable : $lang->datatable->switchToTable;?>
  • "); @@ -83,7 +83,7 @@ $(function() currentMethod: currentMethod, }, success:function(){window.location.reload();}, - url: 'createLink('datatable', 'ajaxSave')?>' + url: 'createLink('datatable', 'ajaxOldSave')?>' }); }); @@ -99,7 +99,7 @@ $(function() dataType: 'json', data: {target: datatableId, name: name, value: value, global: global}, success:function(e){if(reload) window.location.reload();}, - url: 'createLink('datatable', 'ajaxSave')?>' + url: 'createLink('datatable', 'ajaxOldSave')?>' }); $.get(createLink('score', 'ajax', "method=switchToDataTable")); }; @@ -114,7 +114,7 @@ $(function()