Duplicate create new table dialog (see RFE #808029).
This commit is contained in:
@@ -17,6 +17,7 @@ $Source$
|
|||||||
* tbl_addfield.php: Display tabs.
|
* tbl_addfield.php: Display tabs.
|
||||||
* mult_submits.inc.php, tbl_properties_structure.php: Allow index creating
|
* mult_submits.inc.php, tbl_properties_structure.php: Allow index creating
|
||||||
on multiple fields (RFE #990136).
|
on multiple fields (RFE #990136).
|
||||||
|
* db_operations.php: Duplicate create new table dialog (see RFE #808029).
|
||||||
|
|
||||||
2004-10-20 Marc Delisle <lem9@users.sourceforge.net>
|
2004-10-20 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/common.lib.php: there was already a tip icon in our collection,
|
* libraries/common.lib.php: there was already a tip icon in our collection,
|
||||||
|
@@ -72,7 +72,38 @@ if (empty($is_info)) {
|
|||||||
if (PMA_MYSQL_INT_VERSION >= 40101) {
|
if (PMA_MYSQL_INT_VERSION >= 40101) {
|
||||||
$db_collation = PMA_getDbCollation($db);
|
$db_collation = PMA_getDbCollation($db);
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<table border="0" cellpadding="2" cellspacing="0">
|
||||||
|
<!-- Create a new table -->
|
||||||
|
<form method="post" action="tbl_create.php" onsubmit="return (emptyFormElements(this, 'table') && checkFormElementInRange(this, 'num_fields', 1))">
|
||||||
|
<tr>
|
||||||
|
<td class="tblHeaders" colspan="3" nowrap="nowrap"><?php
|
||||||
|
echo PMA_generate_common_hidden_inputs($db);
|
||||||
|
if($cfg['PropertiesIconic']){ echo '<img src="' . $pmaThemeImage . 'b_newtbl.png" border="0" width="16" height="16" hspace="2" align="middle" />'; }
|
||||||
|
// if you want navigation:
|
||||||
|
$strDBLink = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url() . '&db=' . urlencode($GLOBALS['db']) . '">'
|
||||||
|
. htmlspecialchars($GLOBALS['db']) . '</a>';
|
||||||
|
// else use
|
||||||
|
// $strDBLink = htmlspecialchars($db);
|
||||||
|
echo ' ' . sprintf($strCreateNewTable, $strDBLink) . ': ' . "\n";
|
||||||
|
echo ' </td></tr>';
|
||||||
|
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||||
|
echo ' ' . $strName . ': ' . "\n";
|
||||||
|
echo ' </td>';
|
||||||
|
echo ' <td nowrap="nowrap">';
|
||||||
|
echo ' ' . '<input type="text" name="table" maxlength="64" size="30" class="textfield" />';
|
||||||
|
echo ' </td><td> </td></tr>';
|
||||||
|
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||||
|
echo ' ' . $strFields . ': ' . "\n";
|
||||||
|
echo ' </td>';
|
||||||
|
echo ' <td nowrap="nowrap">';
|
||||||
|
echo ' ' . '<input type="text" name="num_fields" size="2" class="textfield" />' . "\n";
|
||||||
|
echo ' </td>';
|
||||||
|
echo ' <td align="right">';
|
||||||
|
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||||
|
echo ' </td> </tr>';
|
||||||
|
echo ' </form>';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Settings for relations stuff
|
* Settings for relations stuff
|
||||||
|
Reference in New Issue
Block a user