Posted by bahman2216 on December 13, 2012 at 7:42pm
Hi
i have 2 submission form created with my hand writing module.
I insert sent data into 2 tables separately and want to create a list of them.
For example, a list contain name and email and some custom field from tables, pagination and filter list.
Exactly I do not know how can work with grid modules in drupal or it needs grid or Drupal can handle it.
Comments
If you are developing a
If you are developing a custom module for your needs, you can generate grids with tables. Use theme_table to do it.
To add pagination you have to extend your query object to use pager. For example:
<?php$query = $query->extend('PagerDefault')->limit(30);
?>
then add pagination output to your page. For example:
<?phpreturn theme_table($variables) . theme('pager', array('tags' => array()));
?>
---
Vahid Sebto
great and perfect answer
great and perfect answer Vahid jan!