Index: quicktabs.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quicktabs/quicktabs.module,v
retrieving revision 1.10.2.62
diff -u -p -r1.10.2.62 quicktabs.module
--- quicktabs.module	21 Mar 2009 02:34:16 -0000	1.10.2.62
+++ quicktabs.module	16 Apr 2009 16:29:14 -0000
@@ -7,6 +7,7 @@
 function quicktabs_help($path, $arg) {
   switch ($path) {
     case 'admin/build/quicktabs':
+      return '';
       return t('<p>The Quick Tabs module allows you to create blocks of tabbed content. Clicking on the tabs makes the corresponding content display instantly (it uses jQuery). The content for each tabbed section can be either a node, view, block or another quicktab. It is an ideal way to do something like the Most Popular / Most Emailed stories tabs you see on many news websites.</p>
 <p>Once created, the quicktab block show up in your block listing, ready to be configured and enabled like other blocks. Multiple quicktabs can be placed on a single page.</p>
 <p>Visit the <a href="@configuration">configuration page</a> to see the available styles and select the default style for your quicktabs.</p>', array('@configuration' => url('admin/settings/quicktabs')));
@@ -19,7 +20,15 @@ function quicktabs_help($path, $arg) {
  * Implementation of hook_theme().
  */
 function quicktabs_theme() {
+  $path = drupal_get_path('module', 'quicktabs');
+  require_once "./$path/includes/admin.inc";
+
   return array(
+    // list quicktabs
+    'quicktabs_list' => array(
+      'template' => 'quicktabs-list',
+      'path' => "$path/theme",
+    ),
     'quicktabs_settings' => array(
       'arguments' => array('form' => NULL),
       'file' => 'includes/admin.inc',
Index: includes/admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/quicktabs/includes/Attic/admin.inc,v
retrieving revision 1.1.2.45
diff -u -p -r1.1.2.45 admin.inc
--- includes/admin.inc	30 Mar 2009 19:41:23 -0000	1.1.2.45
+++ includes/admin.inc	14 Apr 2009 20:57:13 -0000
@@ -1,32 +1,63 @@
 <?php
 // $Id: admin.inc,v 1.1.2.45 2009/03/30 19:41:23 pasqualle Exp $
+/**
+ * @file admin.inc
+ * Provides the Quick Tabs' administrative interface.
+ */
 
 /**
- * Page callback for quicktabs admin landing page.
+ * Page callback to list quicktabs in the system.
  */
 function quicktabs_list() {
-  $result = db_query('SELECT qtid, title FROM {quicktabs} ORDER BY title');
-  $header = array(
-    array('data' => t('Quicktab')),
-    array('data' => t('Operations'), 'colspan' => 3),
-  );
-  $rows = array();
-  while ($row = db_fetch_object($result)) {
-    $tablerow = array(
-      array('data' => $row->title),
-      array('data' => l('Edit', 'admin/build/quicktabs/'. $row->qtid .'/edit')),
-      array('data' => l('Clone', 'admin/build/quicktabs/'. $row->qtid .'/clone')),
-      array('data' => l('Delete', 'admin/build/quicktabs/'. $row->qtid .'/delete')),
-    );
-    $rows[] = $tablerow;
+  return theme('quicktabs_list');
+}
+
+function quicktabs_get_all_quicktabs() {
+  $quicktabs = array();
+
+  $result = db_query('SELECT qtid FROM {quicktabs} ORDER BY title');
+  while ($qtid = db_result($result)) {
+    $quicktab = quicktabs_load($qtid);
+    if (isset($quicktab)) {
+      $quicktabs[$qtid] = (object)$quicktab;
+    }
   }
-  if (!empty($rows)) {
-    $output = theme('table', $header, $rows, array('id' => 'quicktabs'));
+  return $quicktabs;
+};
+
+/**
+ * Preprocess the quicktabs list theme
+ */
+function template_preprocess_quicktabs_list(&$vars) {
+  $quicktabs = quicktabs_get_all_quicktabs();
+  $vars['quicktabs'] = array();
+
+  foreach ($quicktabs as $quicktab) {
+    $item = new stdClass();
+    $item->ops = array();
+    $item->ops[] = l(t('Edit'), "admin/build/quicktabs/$quicktab->qtid/edit");
+    //$item->ops[] = l(t('Export'), "admin/build/quicktabs/$quicktab->qtid/export");
+    $item->ops[] = l(t('Clone'), "admin/build/quicktabs/$quicktab->qtid/clone");
+    $item->ops[] = l(t('Delete'), "admin/build/quicktabs/$quicktab->qtid/delete");
+    $item->ops = implode(' | ', $item->ops);
+
+    $item->title = $quicktab->title;
+    $item->style = $quicktab->style;
+    $item->ajax = $quicktab->ajax;
+    $item->tabs = $quicktab->tabs;
+
+    $item->classes = 'quicktab-enabled';
+
+    $vars['quicktabs'][$quicktab->qtid] = $item;
   }
-  else {
-    $output = '<p>'. t('Click on the "New QT block" tab to get started.') .'</p>';
+  drupal_add_css(drupal_get_path('module', 'quicktabs') .'/css/quicktabs-list.css');
+
+  $getting_started = theme('advanced_help_topic', 'quicktabs', 'getting-started', 'title');
+  if (!$getting_started) {
+    $getting_started = t('Install the advanced help module for the getting started');
   }
-  return $output;
+
+  $vars['help'] = t('Not sure what to do? Try the "!getting-started" page.', array('!getting-started' => $getting_started));
 }
 
 /**
