How to create user like drop-down filters for a custom module in admin side Drupal 7 admin panel, when clicked on people, a form with drop-down filters is visible.

user filters http://www.imagesup.net/?di=914041271981

How can we create above filters in our custom modules ?

I have tried goggling, but when searched filter in Drupal, it returns text filters which replaces text.

I have a custom module in which list of items are show, I want to filter items based on different fields.

Any help would be appreciated, thanks !!
Well you have 2 options:


Declare your custom tables with Views. This can be tricky, and take some trial and error, but gives more flexibility going forward.
Declare a custom page in your module (using hook_menu). Then just build a form with the search options you want and build a query. See the Examples modules if you're not sure how to build a page.