* Add owner everywhere
* Cancel/<Action> buttons everywhere
* pg_dump feature!!!
+* reports - unindexed fk's
+ - slow indexes
+
* English language file for phpPgAdmin. Use this as a basis
* for new translations.
*
- * $Id: english.php,v 1.93 2003/08/06 07:04:45 chriskl Exp $
+ * $Id: english.php,v 1.94 2003/08/07 06:19:26 chriskl Exp $
*/
// Language and character set
$lang['strconfdeleterow'] = 'Are you sure you want to delete this row?';
$lang['strrowdeleted'] = 'Row deleted.';
$lang['strrowdeletedbad'] = 'Row deletion failed.';
- $lang['strsaveandrepeat'] = 'Save & Repeat';
+ $lang['strsaveandrepeat'] = 'Insert & Repeat';
$lang['strfield'] = 'Field';
$lang['strfields'] = 'Fields';
$lang['strnumfields'] = 'Num. Of Fields';
$lang['strfieldneedsname'] = 'You must name your field';
$lang['strselectneedscol'] = 'You must show at least one column';
$lang['straltercolumn'] = 'Alter Column';
- $lang['strcolumnaltered'] = 'Column Altered.';
+ $lang['strcolumnaltered'] = 'Column altered.';
$lang['strcolumnalteredbad'] = 'Column altering failed.';
$lang['strconfdropcolumn'] = 'Are you sure you want to drop column "%s" from table "%s"?';
$lang['strcolumndropped'] = 'Column dropped.';
$lang['strdatabase'] = 'Database';
$lang['strdatabases'] = 'Databases';
$lang['strshowalldatabases'] = 'Show all databases';
- $lang['strnodatabase'] = 'No Database found.';
- $lang['strnodatabases'] = 'No Databases found.';
+ $lang['strnodatabase'] = 'No database found.';
+ $lang['strnodatabases'] = 'No databases found.';
$lang['strcreatedatabase'] = 'Create database';
$lang['strdatabasename'] = 'Database name';
$lang['strdatabaseneedsname'] = 'You must give a name for your database.';
* English language file for phpPgAdmin. Use this as a basis
* for new translations.
*
- * $Id: english.php,v 1.45 2003/08/06 07:04:46 chriskl Exp $
+ * $Id: english.php,v 1.46 2003/08/07 06:19:26 chriskl Exp $
*/
// Language and character set
$lang['strconfdeleterow'] = 'Are you sure you want to delete this row?';
$lang['strrowdeleted'] = 'Row deleted.';
$lang['strrowdeletedbad'] = 'Row deletion failed.';
- $lang['strsaveandrepeat'] = 'Save & Repeat';
+ $lang['strsaveandrepeat'] = 'Insert & Repeat';
$lang['strfield'] = 'Field';
$lang['strfields'] = 'Fields';
$lang['strnumfields'] = 'Num. Of Fields';
$lang['strfieldneedsname'] = 'You must name your field';
$lang['strselectneedscol'] = 'You must show at least one column';
$lang['straltercolumn'] = 'Alter Column';
- $lang['strcolumnaltered'] = 'Column Altered.';
+ $lang['strcolumnaltered'] = 'Column altered.';
$lang['strcolumnalteredbad'] = 'Column altering failed.';
$lang['strconfdropcolumn'] = 'Are you sure you want to drop column "%s" from table "%s"?';
$lang['strcolumndropped'] = 'Column dropped.';
$lang['strdatabase'] = 'Database';
$lang['strdatabases'] = 'Databases';
$lang['strshowalldatabases'] = 'Show all databases';
- $lang['strnodatabase'] = 'No Database found.';
- $lang['strnodatabases'] = 'No Databases found.';
+ $lang['strnodatabase'] = 'No database found.';
+ $lang['strnodatabases'] = 'No databases found.';
$lang['strcreatedatabase'] = 'Create database';
$lang['strdatabasename'] = 'Database name';
$lang['strdatabaseneedsname'] = 'You must give a name for your database.';
/**
* List tables in a database
*
- * $Id: tables.php,v 1.29 2003/08/06 07:04:43 chriskl Exp $
+ * $Id: tables.php,v 1.30 2003/08/07 06:19:25 chriskl Exp $
*/
// Include application functions
echo "<input type=\"hidden\" name=\"stage\" value=\"2\" />\n";
echo $misc->form;
echo "<input type=\"submit\" value=\"{$lang['strnext']}\" />\n";
- echo "<input type=\"reset\" value=\"{$lang['strreset']}\" /></p>\n";
+ echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
break;
case 2:
echo "<input type=\"hidden\" name=\"withoutoids\" value=\"on\" />\n";
}
echo "<input type=\"submit\" value=\"{$lang['strcreate']}\" />\n";
- echo "<input type=\"reset\" value=\"{$lang['strreset']}\" /></p>\n";
+ echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
break;
global $lang;
echo "<p>{$lang['strinvalidparam']}</p>\n";
}
-
- echo "<p><a class=\"navlink\" href=\"$PHP_SELF?{$misc->href}\">{$lang['strshowalltables']}</a></p>\n";
}
/**
echo "<input type=\"hidden\" name=\"action\" value=\"insertrow\" />\n";
echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\" />\n";
echo $misc->form;
- echo "<p><input type=\"submit\" name=\"save\" value=\"{$lang['strsave']}\" />\n";
+ echo "<p><input type=\"submit\" name=\"save\" value=\"{$lang['strinsert']}\" />\n";
echo "<input type=\"submit\" name=\"saveandrepeat\" value=\"{$lang['strsaveandrepeat']}\" />\n";
echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
echo "<input type=hidden name=action value=empty>\n";
echo "<input type=hidden name=table value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
echo $misc->form;
- echo "<input type=submit name=yes value=\"{$lang['stryes']}\"> <input type=submit name=no value=\"{$lang['strno']}\">\n";
+ echo "<input type=submit name=empty value=\"{$lang['strempty']}\"> <input type=submit name=cancel value=\"{$lang['strcancel']}\">\n";
echo "</form>\n";
}
else {
if ($localData->hasDropBehavior()) {
echo "<p><input type=\"checkbox\" name=\"cascade\"> {$lang['strcascade']}</p>\n";
}
- echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\">\n";
+ echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\">\n";
+ echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\">\n";
echo "</form>\n";
}
else {
switch ($action) {
case 'create':
- doCreate();
+ if (isset($_POST['cancel'])) doDefault();
+ else doCreate();
break;
case 'selectrows':
if (!isset($_POST['cancel'])) doSelectRows(false);
doInsertRow(true);
break;
case 'empty':
- if (isset($_POST['yes'])) doEmpty(false);
+ if (isset($_POST['empty'])) doEmpty(false);
else doDefault();
break;
case 'confirm_empty':
doEmpty(true);
break;
case 'drop':
- if (isset($_POST['yes'])) doDrop(false);
+ if (isset($_POST['drop'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
/**
* List tables in a database
*
- * $Id: tblproperties.php,v 1.18 2003/08/06 02:09:25 chriskl Exp $
+ * $Id: tblproperties.php,v 1.19 2003/08/07 06:19:25 chriskl Exp $
*/
// Include application functions
// Fetch all available types
$types = &$localData->getTypes(true);
- $misc->printTableNav();
echo "<h2>", $misc->printVal($_REQUEST['database']), ": ",
$misc->printVal($_REQUEST['table']), ": {$lang['straddcolumn']}</h2>\n";
$misc->printMsg($msg);
echo "<input type=\"hidden\" name=\"stage\" value=\"2\" />\n";
echo $misc->form;
echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
- echo "<p><input type=\"submit\" value=\"{$lang['stradd']}\" /> <input type=\"reset\" value=\"{$lang['strreset']}\" /></p>\n";
+ echo "<p><input type=\"submit\" value=\"{$lang['stradd']}\" />\n";
+ echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
break;
case 1:
global $lang;
- $misc->printTableNav();
echo "<h2>", $misc->printVal($_REQUEST['database']), ": {$lang['strtables']}: {$lang['straltercolumn']}: ",
$misc->printVal($_REQUEST['column']), "</h2>\n";
$misc->printMsg($msg);
htmlspecialchars($_REQUEST['default']), "\" /></td>";
echo "</table>\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"properties\" />\n";
+ echo "<p><input type=\"hidden\" name=\"action\" value=\"properties\" />\n";
echo "<input type=\"hidden\" name=\"stage\" value=\"2\" />\n";
echo $misc->form;
echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\" />\n";
echo "<input type=\"hidden\" name=\"column\" value=\"", htmlspecialchars($_REQUEST['column']), "\" />\n";
echo "<input type=\"hidden\" name=\"olddefault\" value=\"", htmlspecialchars($_REQUEST['olddefault']), "\" />\n";
- echo "<input type=\"submit\" value=\"{$lang['stralter']}\" /> <input type=\"reset\" value=\"{$lang['strreset']}\" />\n";
+ echo "<input type=\"submit\" value=\"{$lang['stralter']}\" />\n";
+ echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
break;
if ($localData->hasDropBehavior()) {
echo "<p><input type=\"checkbox\" name=\"cascade\"> {$lang['strcascade']}</p>\n";
}
- echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />\n";
+ echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
+ echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
echo "</form>\n";
}
else {
echo "<td class=\"data{$id}\">", ($attrs->f['attnotnull'] ? 'NOT NULL' : ''), "</td>\n";
echo "<td class=\"data{$id}\">", $misc->printVal($attrs->f['adsrc']), "</td>\n";
echo "<td class=\"opbutton{$id}\"><a href=\"{$PHP_SELF}?{$misc->href}&table=", urlencode($_REQUEST['table']),
- "&column=", urlencode($attrs->f['attname']), "&action=properties\">{$lang['strproperties']}</a></td>\n";
+ "&column=", urlencode($attrs->f['attname']), "&action=properties\">{$lang['stralter']}</a></td>\n";
if ($data->hasDropColumn()) {
echo "<td class=\"opbutton{$id}\"><a href=\"{$PHP_SELF}?{$misc->href}&table=", urlencode($_REQUEST['table']),
"&column=", urlencode($attrs->f['attname']), "&action=confirm_drop\">{$lang['strdrop']}</a></td>\n";
doExport();
break;
case 'add_column':
- doAddColumn();
+ if (isset($_POST['cancel'])) doDefault();
+ else doAddColumn();
break;
case 'properties':
- doProperties();
+ if (isset($_POST['cancel'])) doDefault();
+ else doProperties();
break;
case 'drop':
- if (isset($_POST['yes'])) doDrop(false);
+ if (isset($_POST['drop'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':