-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@27 7c3ca157-0c34-0410-bff1-cbf682f78f5c
- Loading branch information
jakubvrana
committed
Jul 4, 2007
1 parent
77dfca8
commit 88e1daf
Showing
4 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
$index_types = array("PRIMARY", "UNIQUE", "INDEX", "FULLTEXT"); | ||
if ($_POST) { | ||
} | ||
|
||
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"])); | ||
echo "<h2>" . lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]) . "</h2>\n"; | ||
|
||
if ($_POST) { | ||
echo "<p class='error'>" . lang('Unable to operate indexes') . ": " . htmlspecialchars($error) . "</p>\n"; | ||
$row = $_POST; | ||
} else { | ||
$row = array("indexes" => indexes($_GET["indexes"])); | ||
} | ||
?> | ||
<form action="" method="post"> | ||
<table border="0" cellspacing="0" cellpadding="2"> | ||
<?php | ||
$fields = array_keys(fields($_GET["indexes"])); | ||
$j = 0; | ||
foreach ($row["indexes"] as $type => $index) { | ||
foreach ($index as $columns) { | ||
echo "<tr><td><select name='indexes[$j][type]'><option></option>" . optionlist($index_types, $type, "not_vals") . "</select></td><td>"; | ||
sort($columns); | ||
foreach ($columns as $i => $column) { | ||
echo "<select name='indexes[$j][columns][$i]'><option></option>" . optionlist($fields, $column, "not_vals") . "</select>"; | ||
} | ||
echo "<select name='indexes[$j][columns][" . ($i+1) . "]'><option></option>" . optionlist($fields, array(), "not_vals") . "</select>"; | ||
echo "</td></tr>\n"; | ||
$j++; | ||
} | ||
} | ||
//! JavaScript for adding more indexes and columns | ||
?> | ||
<tr><td><select name="indexes[<?php echo $j; ?>][type]"><option></option><?php echo optionlist($index_types, array(), "not_vals"); ?></select></td><td><select name="indexes[<?php echo $j; ?>][columns][1]"><option></option><?php echo optionlist($fields, array(), "not_vals"); ?></select></td></tr> | ||
</table> | ||
<p><input type="submit" value="<?php echo lang('Alter indexes'); ?>" /></p> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters