Skip to content

Adminer plugin for quickly filtering tables, works only with custom themes where table list is floated

License

Notifications You must be signed in to change notification settings

zhgabor/adminer-table-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

adminer-table-filter

Adminer plugin for quickly filtering tables, works only with custom themes where table list holds floated items

Uses localStorage to hold the filter across url changes

Screenshot

Fresh Installation

  • Download plugin.php to /plugins directory
  • Copy quickfilter.php to /plugins directory
  • Adminer should be renamed to adminer.php
  • Create index.php and paste this
<?php
function adminer_object() {
    // required to run any plugin
    include_once "./plugins/plugin.php";
    
    // autoloader
    foreach (glob("plugins/*.php") as $filename) {
        include_once "./$filename";
    }
    
    $plugins = array(
        // specify enabled plugins here
        new AdminerQuickFilterTables,
    );
    
    /* It is possible to combine customization and plugins:
    class AdminerCustomization extends AdminerPlugin {
    }
    return new AdminerCustomization($plugins);
    */
    
    return new AdminerPlugin($plugins);
}

// include original Adminer or Adminer Editor
include "./adminer.php";
?>
  • Add new AdminerQuickFilterTables to index.php $plugins array
  • Download Theme to adminer.css

Dependencies

  • localStorage capable browser
  • Adminer theme, where the table list items are floated elements

About

Adminer plugin for quickly filtering tables, works only with custom themes where table list is floated

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages