From 452d7456bd47472cfd285c0935ffdc95568d6cd0 Mon Sep 17 00:00:00 2001 From: ioguix Date: Thu, 21 Feb 2008 18:32:11 +0000 Subject: [PATCH] minor fix in create table like page to select the wanted table if already given in a previous post --- tables.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tables.php b/tables.php index 24d0c660..8c68e881 100644 --- a/tables.php +++ b/tables.php @@ -3,7 +3,7 @@ /** * List tables in a database * - * $Id: tables.php,v 1.110 2008/02/20 21:06:18 ioguix Exp $ + * $Id: tables.php,v 1.111 2008/02/21 18:32:11 ioguix Exp $ */ // Include application functions @@ -260,10 +260,13 @@ $tbltmp = $tbltmp->getArray(); $tables = array(); + $tblsel = ''; foreach ($tbltmp as $a) { $data->fieldClean($a['nspname']); $data->fieldClean($a['relname']); $tables["\"{$a['nspname']}\".\"{$a['relname']}\""] = serialize(array('schema' => $a['nspname'], 'table' => $a['relname'])); + if ($_REQUEST['like'] == $tables["\"{$a['nspname']}\".\"{$a['relname']}\""]) + $tblsel = htmlspecialchars($tables["\"{$a['nspname']}\".\"{$a['relname']}\""]); } unset($tbltmp); @@ -273,7 +276,7 @@ echo "\t\t_maxNameLen}\" value=\"", htmlspecialchars($_REQUEST['name']), "\" />\n\t\n"; echo "\t\n\t\t{$lang['strcreatetablelikeparent']}\n"; echo "\t\t"; - echo GUI::printCombo($tables, 'like', true, $_REQUEST['like'], false); + echo GUI::printCombo($tables, 'like', true, $tblsel, false); echo "\n\t\n"; if ($data->hasTablespaces()) { $tblsp_ = $data->getTablespaces(); -- 2.39.5