Index: dba.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dba/dba.module,v
retrieving revision 1.62
diff -u -p -r1.62 dba.module
--- dba.module	11 Dec 2008 02:52:55 -0000	1.62
+++ dba.module	11 Dec 2008 02:59:29 -0000
@@ -455,18 +455,15 @@ function theme_dba_database_overview_for
   drupal_set_title(t('View database %database', array('%database' => $database)));
 
   // It'd be great to use the pager and tablesort, but doesn't appear possible.
-  $header = array('', t('Tables'), t('Rows'));
+  $header = array(theme('table_select_header_cell'), t('Tables'), t('Rows'));
   $tables = dba_get_tables();
   foreach ($tables as $table) {
     $count = dba_get_row_count($table);
     $checkbox = drupal_render($form['tables'][$table]);
     $rows[] = array($checkbox, l($table, "admin/build/database/table/$table/view"), $count);
   }
-  $output .= dba_select_all_js();
   $output .= theme('table', $header, $rows);
-  $output .= dba_select_all_js();
   $output .= drupal_render($form);
-  drupal_set_html_head(checkoff_head());
   return $output;
 }
 
@@ -525,16 +522,6 @@ function dba_database_overview_form_subm
   }
 }
 
-function dba_select_all_js() {
-  $output = "<a href=\"javascript:checkoff('dba-database-overview-form',1)\">";
-  $output .= t('select all');
-  $output .= "</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
-  $output .= "<a href=\"javascript:checkoff('dba-database-overview-form',0)\">";
-  $output .= t('clear all');
-  $output .= "</a><br>";
-  return $output;
-}
-
 function dba_delete_row($table, $key, $keyid) {
   $rows = array();
   $keyid = str_replace('__2F_', '/', $keyid);
@@ -1506,15 +1493,6 @@ function _is_mysql() {
 }
 
 /**
- * Adds the javascript for selecting all tables.
- * 
- * @todo Can be replaced by Checkall module.
- */
-function checkoff_head() {
-  return "<script type=\"text/javascript\">function checkoff(form,toggle){ var i=0;	frm=document.forms[form];	len = frm.elements.length;	for( i=0 ; i<len ; i++) {	if (frm.elements[i].type=='checkbox') {	frm.elements[i].checked=toggle;	}	}} </script>";
-}
-
-/**
  * Temporary mail handler class.
  * 
  * Define a mail class to send a message with an attachment. Eventually Drupal
