add multiple dump feature (Feature #424176)

This commit is contained in:
Armel Fauveau
2001-06-09 03:20:06 +00:00
parent f5a52be9d5
commit 0523745dd6
3 changed files with 54 additions and 20 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-06-09 Armel Fauveau <armel.fauveau@globalis-ms.com>
* add multiple dump feature (Feature #424176)
2001-06-08 Marc Delisle <lem9@users.sourceforge.net> 2001-06-08 Marc Delisle <lem9@users.sourceforge.net>
* add hostname in title bar * add hostname in title bar

View File

@@ -96,6 +96,26 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
<li><a href="tbl_qbe.php3<?php echo $query;?>"><?php echo $strQBE;?></a> <li><a href="tbl_qbe.php3<?php echo $query;?>"><?php echo $strQBE;?></a>
<li><form method="post" action="db_dump.php3"><?php echo $strViewDumpDB;?><br> <li><form method="post" action="db_dump.php3"><?php echo $strViewDumpDB;?><br>
<table> <table>
<?php
$tables = mysql_list_tables($db);
$num_tables = @mysql_numrows($tables);
if($num_tables>1) {
print "<tr>\n";
print "\t<td colspan=\"2\">\n";
print "\t\t<select name=\"table_select[]\" size=\"5\" multiple>\n";
$i=0;
while($i < $num_tables) {
$table = mysql_tablename($tables, $i);
echo "\t\t\t<option value=\"".$table."\">".$table."</option>\n";
$i++;
}
echo "\t\t</select>\n";
echo "\t</td>\n";
echo "</tr>\n";
}
?>
<tr> <tr>
<td> <td>
<input type="radio" name="what" value="structure" checked><?php echo $strStrucOnly;?> <input type="radio" name="what" value="structure" checked><?php echo $strStrucOnly;?>

View File

@@ -78,10 +78,20 @@ else
} }
print " $strDatabase: $db$crlf"; print " $strDatabase: $db$crlf";
if (isset($table_select)) {
$tmp_select=implode($table_select,"|");
$tmp_select="|".$tmp_select."|";
echo $tmp_select;
}
while($i < $num_tables) while($i < $num_tables)
{ {
$table = mysql_tablename($tables, $i); $table = mysql_tablename($tables, $i);
if(isset($tmp_select) && is_int(strpos($tmp_select,"|".$table."|"))==false)
$i++;
else {
if($what != "dataonly") if($what != "dataonly")
{ {
print $crlf; print $crlf;
@@ -106,6 +116,7 @@ else
$i++; $i++;
} }
} }
}
if(empty($asfile)) if(empty($asfile))
{ {