Documentation TYPO3 par Ameos

db_details_export.php

00001 <?php
00002 /* $Id: db_details_export.php,v 2.4 2005/02/16 16:05:48 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00009 $sub_part  = '_export';
00010 require('./db_details_common.php');
00011 $url_query .= '&amp;goto=db_details_export.php';
00012 require('./db_details_db_info.php');
00013 ?>
00014 <!-- Dump of Database -->
00015 <?php
00019 $export_page_title = $strViewDumpDB;
00020 
00021 $multi_values = '';
00022 if ($num_tables > 1) {
00023 
00024     $multi_values = '<div align="center"><select name="table_select[]" size="6" multiple="multiple">';
00025     $multi_values .= "\n";
00026 
00027     for ($i = 0; $i < $num_tables; $i++) {
00028         if (PMA_MYSQL_INT_VERSION >= 50000 && is_null($tables[$i]['Engine'])) {
00029             // Don't offer to export views yet.
00030             continue;
00031         }
00032         $table   = $tables[$i]['Name'];
00033         if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|'))) {
00034             $is_selected = ' selected="selected"';
00035         } else {
00036             $is_selected = '';
00037         }
00038         $table   = htmlspecialchars($table);
00039         $multi_values .= '                <option value="' . $table . '"' . $is_selected . '>' . $table . '</option>' . "\n";
00040     } // end for
00041     $multi_values .= "\n";
00042     $multi_values .= '</select></div>';
00043 
00044     $checkall_url = 'db_details_export.php?'
00045                   . PMA_generate_common_url($db)
00046                   . '&amp;goto=db_details_export.php';
00047 
00048     $multi_values .= '<br />
00049             <a href="' . $checkall_url . '&amp;selectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
00050             &nbsp;/&nbsp;
00051             <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>';
00052 } elseif ($num_tables == 0) {
00053     echo $strDatabaseNoTable;
00054     require_once('./footer.inc.php');
00055 } // end if
00056 
00057 $export_type = 'database';
00058 require_once('./libraries/display_export.lib.php');
00059 
00063 require_once('./footer.inc.php');
00064 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6