/**
* Manage databases within a server
*
- * $Id: all_db.php,v 1.11 2003/04/18 09:15:55 chriskl Exp $
+ * $Id: all_db.php,v 1.12 2003/04/18 11:08:26 chriskl Exp $
*/
// Include application functions
echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
echo "<input type=hidden name=action value=drop>\n";
echo "<input type=hidden name=database value=\"", htmlspecialchars($_REQUEST['database']), "\">\n";
- echo "<input type=submit name=choice value=\"{$lang['stryes']}\"> <input type=submit name=choice value=\"{$lang['strno']}\">\n";
+ echo "<input type=submit name=yes value=\"{$lang['stryes']}\"> <input type=submit name=no value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
doCreate();
break;
case 'drop':
- if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_REQUEST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
/**
* Manage groups in a database cluster
*
- * $Id: groups.php,v 1.6 2003/03/19 03:29:51 chriskl Exp $
+ * $Id: groups.php,v 1.7 2003/04/18 11:08:26 chriskl Exp $
*/
// Include application functions
echo "<form action=\"{$PHP_SELF}\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
echo "<input type=\"hidden\" name=\"groname\" value=\"", htmlspecialchars($_REQUEST['groname']), "\" />\n";
- echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\" />\n";
+ echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />\n";
echo "</form>\n";
}
else {
doCreate();
break;
case 'drop':
- if ($_REQUEST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_REQUEST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
/**
* List indexes on a table
*
- * $Id: indexes.php,v 1.9 2003/03/25 00:26:27 chriskl Exp $
+ * $Id: indexes.php,v 1.10 2003/04/18 11:08:26 chriskl Exp $
*/
// Include application functions
echo "<input type=hidden name=table value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
echo "<input type=hidden name=index value=\"", htmlspecialchars($_REQUEST['index']), "\">\n";
echo $misc->form;
- echo "<input type=submit name=choice value=\"{$lang['stryes']}\"> <input type=submit name=choice value=\"{$lang['strno']}\">\n";
+ echo "<input type=submit name=yes value=\"{$lang['stryes']}\"> <input type=submit name=no value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
doCreateIndex();
break;
case 'drop_index':
- if ($_POST['choice'] == $lang['stryes']) doDropIndex(false);
+ if (isset($_POST['yes'])) doDropIndex(false);
else doDefault();
break;
case 'confirm_drop_index':
/**
* List reports in a database
*
- * $Id: reports.php,v 1.9 2003/04/09 20:11:44 slubek Exp $
+ * $Id: reports.php,v 1.10 2003/04/18 11:08:26 chriskl Exp $
*/
// Include application functions
echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"drop\">\n";
echo "<input type=\"hidden\" name=\"report_id\" value=\"", htmlspecialchars($_REQUEST['report_id']), "\">\n";
- echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\">\n";
+ echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
doCreate();
break;
case 'drop':
- if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_POST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
$misc->printFooter();
-?>
+?>
\ No newline at end of file
/**
* List rules on a table
*
- * $Id: rules.php,v 1.8 2003/03/26 01:23:55 chriskl Exp $
+ * $Id: rules.php,v 1.9 2003/04/18 11:08:27 chriskl Exp $
*/
// Include application functions
echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
echo "<input type=\"hidden\" name=\"rule\" value=\"", htmlspecialchars($_REQUEST['rule']), "\">\n";
echo $misc->form;
- echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\">\n";
+ echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
else createRule(false);
break;
case 'drop':
- if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_POST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
/**
* Manage sequences in a database
*
- * $Id: sequences.php,v 1.8 2003/03/23 03:13:57 chriskl Exp $
+ * $Id: sequences.php,v 1.9 2003/04/18 11:08:27 chriskl Exp $
*/
// Include application functions
echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
echo "<input type=\"hidden\" name=\"sequence\" value=\"", htmlspecialchars($_REQUEST['sequence']), "\" />\n";
echo $misc->form;
- echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\" />\n";
+ echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />\n";
echo "</form>\n";
}
else {
doProperties();
break;
case 'drop':
- if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_POST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
/**
* List tables in a database
*
- * $Id: tables.php,v 1.14 2003/04/18 09:15:55 chriskl Exp $
+ * $Id: tables.php,v 1.15 2003/04/18 11:08:27 chriskl Exp $
*/
// Include application functions
echo "<p><input type=hidden name=action value=selectrows>\n";
echo "<input type=hidden name=table value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
echo $misc->form;
- echo "<input type=submit name=choice value=\"{$lang['strselect']}\">\n";
- echo "<input type=submit name=choice value=\"{$lang['strcancel']}\"></p>\n";
+ echo "<input type=submit name=select value=\"{$lang['strselect']}\">\n";
+ echo "<input type=submit name=cancel value=\"{$lang['strcancel']}\"></p>\n";
echo "</form>\n";
}
else {
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=choice value=\"{$lang['strsave']}\">\n";
- echo "<input type=submit name=choice value=\"{$lang['strsaveandrepeat']}\">\n";
- echo "<input type=submit name=choice value=\"{$lang['strcancel']}\"></p>\n";
+ echo "<p><input type=submit name=save value=\"{$lang['strsave']}\">\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";
}
else {
$status = $localData->insertRow($_POST['table'], $_POST['values'], $_POST['nulls']);
if ($status == 0) {
- // @@ This test seems a bit dodgy - comparing against the button name!
- if ($_POST['choice'] == $lang['strsave'])
+ if (isset($_POST['save']))
doDefault($lang['strrowinserted']);
else {
$_REQUEST['values'] = array();
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=choice value=\"{$lang['stryes']}\"> <input type=submit name=choice value=\"{$lang['strno']}\">\n";
+ echo "<input type=submit name=yes value=\"{$lang['stryes']}\"> <input type=submit name=no value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
echo "<input type=hidden name=action value=drop>\n";
echo "<input type=hidden name=table value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
echo $misc->form;
- echo "<input type=submit name=choice value=\"{$lang['stryes']}\"> <input type=submit name=choice value=\"{$lang['strno']}\">\n";
+ echo "<input type=submit name=yes value=\"{$lang['stryes']}\"> <input type=submit name=no value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
echo "<input type=hidden name=page value=\"", htmlspecialchars($_REQUEST['page']), "\">\n";
echo "<input type=hidden name=sortkey value=\"", htmlspecialchars($_REQUEST['sortkey']), "\">\n";
echo "<input type=hidden name=key value=\"", htmlspecialchars(serialize($key)), "\">\n";
- echo "<p><input type=submit name=choice value=\"{$lang['strsave']}\"> <input type=submit name=choice value=\"{$lang['strcancel']}\"></p>\n";
+ echo "<p><input type=submit name=save value=\"{$lang['strsave']}\"> <input type=submit name=cancel value=\"{$lang['strcancel']}\"></p>\n";
echo "</form>\n";
}
else {
echo "<input type=hidden name=page value=\"", htmlspecialchars($_REQUEST['page']), "\">\n";
echo "<input type=hidden name=sortkey value=\"", htmlspecialchars($_REQUEST['sortkey']), "\">\n";
echo "<input type=hidden name=key value=\"", htmlspecialchars(serialize($_REQUEST['key'])), "\">\n";
- echo "<input type=submit name=choice value=\"{$lang['stryes']}\"> <input type=submit name=choice value=\"{$lang['strno']}\">\n";
+ echo "<input type=submit name=yes value=\"{$lang['stryes']}\"> <input type=submit name=no value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
doCreate();
break;
case 'selectrows':
- if ($_POST['choice'] != $lang['strcancel']) doSelectRows(false);
+ if (!isset($_POST['cancel'])) doSelectRows(false);
else doDefault();
break;
case 'confselectrows':
doSelectRows(true);
break;
case 'insertrow':
- if ($_POST['choice'] != $lang['strcancel']) doInsertRow(false);
+ if (!isset($_POST['cancel'])) doInsertRow(false);
else doDefault();
break;
case 'confinsertrow':
doInsertRow(true);
break;
case 'empty':
- if ($_POST['choice'] == $lang['stryes']) doEmpty(false);
+ if (isset($_POST['yes'])) doEmpty(false);
else doDefault();
break;
case 'confirm_empty':
doEmpty(true);
break;
case 'drop':
- if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_POST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':
doDrop(true);
break;
case 'editrow':
- if ($_POST['choice'] == $lang['strsave']) doEditRow(false);
+ if (isset($_POST['save'])) doEditRow(false);
else doBrowse();
break;
case 'confeditrow':
doEditRow(true);
break;
case 'delrow':
- if ($_POST['choice'] == $lang['stryes']) doDelRow(false);
+ if (isset($_POST['yes'])) doDelRow(false);
else doBrowse();
break;
case 'confdelrow':
/**
* List triggers on a table
*
- * $Id: triggers.php,v 1.10 2003/03/26 02:14:03 chriskl Exp $
+ * $Id: triggers.php,v 1.11 2003/04/18 11:08:27 chriskl Exp $
*/
// Include application functions
echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\">\n";
echo "<input type=\"hidden\" name=\"trigger\" value=\"", htmlspecialchars($_REQUEST['trigger']), "\">\n";
echo $misc->form;
- echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\">\n";
+ echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\"> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\">\n";
echo "</form>\n";
}
else {
doCreate();
break;
case 'drop':
- if ($_POST['choice'] == $lang['stryes']) doDrop(false);
+ if (isset($_POST['yes'])) doDrop(false);
else doDefault();
break;
case 'confirm_drop':