home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / db_details_export.php < prev    next >
Encoding:
PHP Script  |  2003-11-26  |  1.9 KB  |  66 lines

  1. <?php
  2. /* $Id: db_details_export.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5.  
  6. /**
  7.  * Gets some core libraries
  8.  */
  9. $sub_part  = '_export';
  10. require('./db_details_common.php');
  11. $url_query .= '&goto=db_details_export.php';
  12. require('./db_details_db_info.php');
  13.  
  14. /**
  15.  * Displays the form
  16.  */
  17. ?>
  18. <h2>
  19.     <?php echo $strViewDumpDB . "\n"; ?>
  20. </h2>
  21.  
  22. <?php
  23. $multi_values = '';
  24. if ($num_tables > 1) {
  25.  
  26.     $multi_values = '<div align="center"><select name="table_select[]" size="6" multiple="multiple">';
  27.     $multi_values .= "\n";
  28.  
  29.     $i = 0;
  30.     while ($i < $num_tables) {
  31.         $table   = $tables[$i]['Name'];
  32.         if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|'))) {
  33.             $is_selected = ' selected="selected"';
  34.         } else {
  35.             $is_selected = '';
  36.         }
  37.         $table   = htmlspecialchars($table);
  38.         $multi_values .= '                <option value="' . $table . '"' . $is_selected . '>' . $table . '</option>' . "\n";
  39.         $i++;
  40.     } // end while
  41.     $multi_values .= "\n";
  42.     $multi_values .= '</select></div>';
  43.  
  44.     $checkall_url = 'db_details_export.php?'
  45.                   . PMA_generate_common_url($db)
  46.                   . '&goto=db_details_export.php';
  47.  
  48.     $multi_values .= '<br />
  49.             <a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
  50.              / 
  51.             <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>
  52.             <br /><br />';
  53. } elseif ($num_tables == 0) {
  54.     echo $strDatabaseNoTable;
  55.     require_once('./footer.inc.php');
  56. } // end if
  57.  
  58. $export_type = 'database';
  59. require_once('./libraries/display_export.lib.php');
  60.  
  61. /**
  62.  * Displays the footer
  63.  */
  64. require_once('./footer.inc.php');
  65. ?>
  66.