Skip to content

Commit

Permalink
Implemented sorting of tables by clicking on table headers. Only work…
Browse files Browse the repository at this point in the history
…s for remote mode so far.
  • Loading branch information
arnemorken committed Feb 5, 2022
1 parent 1c5f957 commit 8ab0fad
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 3 deletions.
2 changes: 2 additions & 0 deletions data/anyTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ protected function dbSearchList(&$data,$skipOwnId=false,$flat=false,$simple=fals
return true; // We do not have subusers (user table does not have parent_id field) TODO! Neccessary?
// Build and execute the full statement
if (Parameters::get("order"))
$this->mOrderBy = ltrim(Parameters::get("order"));
$partial_stmt = $this->dbPrepareSearchListStmt($skipOwnId);
$limit = $this->findLimit();
$stmt = $partial_stmt.$limit;
Expand Down
2 changes: 2 additions & 0 deletions data/plugins/document/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
require_once gDataSource;
$gViewArea = "any_content";
Parameters::set("type","document");
Parameters::set("from","0");
Parameters::set("num","20");
$the_data = anyGetData();
?>
<div id="<?php print $gViewArea;?>"/>
Expand Down
2 changes: 2 additions & 0 deletions data/plugins/event/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
require_once gDataSource;
$gViewArea = "any_content";
Parameters::set("type","event");
Parameters::set("from","0");
Parameters::set("num","20");
$the_data = anyGetData();
?>
<div id="<?php print $gViewArea;?>"/>
Expand Down
2 changes: 2 additions & 0 deletions data/plugins/group/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
require_once gDataSource;
$gViewArea = "any_content";
Parameters::set("type","group");
Parameters::set("from","0");
Parameters::set("num","20");
$the_data = anyGetData();
?>
<div id="<?php print $gViewArea;?>"/>
Expand Down
2 changes: 2 additions & 0 deletions data/plugins/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
require_once gDataSource;
$gViewArea = "any_content";
Parameters::set("type","user");
Parameters::set("from","0");
Parameters::set("num","20");
$the_data = anyGetData();
?>
<div id="<?php print $gViewArea;?>"/>
Expand Down
5 changes: 4 additions & 1 deletion view/anyModel.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 60 additions & 2 deletions view/anyView.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ab0fad

Please sign in to comment.