<?php
$result = pager_query("SELECT module, delta, theme FROM {blocks}",5);
$header = array(array('data'=>t('Module'),'field'=>'module','sort'=>asc), t('Delta'), t('Theme'));
while ($res = db_fetch_object($result)) {
$rows[] = array($res->module,$res->delta,$res->theme);
}
$output .= theme('table', $header, $rows);
$output .= theme('pager',5,NULL);
print $output;
?>
$result = pager_query("SELECT module, delta, theme FROM {blocks}",5);
$header = array(array('data'=>t('Module'),'field'=>'module','sort'=>asc), t('Delta'), t('Theme'));
while ($res = db_fetch_object($result)) {
$rows[] = array($res->module,$res->delta,$res->theme);
}
$output .= theme('table', $header, $rows);
$output .= theme('pager',5,NULL);
print $output;
?>
Nice drupal table creation.
ReplyDelete