You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-23 18:29:15 +03:00
Multicolumn sorting feature request(1507)
This patch completely implements the feature requested and it modifies 4 existing files and adds one extra Javascript file. The existing system for one column sorting has been refactored to be used for multicolumn sort. Files messages.php and makegrid.js where modified to add the tool tip. File sql.php was modified to add the import statement for the newly added JS file. The newly added columndelete.js is responsible for shift deleting the columns. It gets the url of the link that was shift clicked and removes the name of the column which we want to remove from the order by clause. Finally, most of the crux of this feature request is implemented through changes to the DisplayResult.class.php. 4 methods of this class have been refactored to accomodate the required change. getsortparams() which process the order by clause text remains the same, just the output parameters have been turned into a array for each order by clause column. isInSort() has been modified to check multiple order by clauses. The smart ordering feature in to form a new function makeURL, which makes the url for multiple sorted table's header's button's targets. Signed-off-by: Aditya Sastry <ganeshaditya1@gmail.com>
This commit is contained in:
1
sql.php
1
sql.php
@@ -26,6 +26,7 @@ $scripts->addFile('jquery/jquery-ui-timepicker-addon.js');
|
||||
$scripts->addFile('tbl_change.js');
|
||||
$scripts->addFile('indexes.js');
|
||||
$scripts->addFile('gis_data_editor.js');
|
||||
$scripts->addFile('columndelete.js');
|
||||
|
||||
/**
|
||||
* Set ajax_reload in the response if it was already set
|
||||
|
||||
Reference in New Issue
Block a user