<?php
if (!is_array($tables)) {
echo "<BODY onLoad='opener.location.reload(); parent.close()'>";
exit(1);
}
define("PAGE_ID","deletedatabase");
define("PAGE_TITLE","Delete Selected Databases ?");
require_once("includes/main.inc.php");
include_once("html_wrap/head.inc.php");
$rowcolor = "dataOdd";
$message = "";
$action = (isset($action)) ? @strtolower($action) : "";
#
if ($action == "yes" && is_array($tables)) {
if ($result = $Plugin->ClearTables($tables)) {
#$message = "<font color=\"#00AA00\">All objects were sucessfuly cleared.</font>";
echo "<BODY onLoad='opener.location.reload(); parent.close()'>";
exit;
} else
$message = "<font color=\"#FF2222\">Error clearing objects from tables.</font>";
}
?>
<br>
<div align="center">
<form action="<?=$PHP_SELF?>" method="POST">
<?
for ($i=0; $i<count($tables); $i++)
echo "<input type=\"hidden\" name=\"tables[$i]\" value=\"$tables[$i]\">\n";
?>
<table cellpadding="2" cellspacing="4" border="0">
<tr class="<?=$rowcolor?>">
<td align="center">
<input type="submit" name="action" value="Yes">
</td>
<td align="center">
<input type="submit" name="action" value="No" onclick="parent.close('');">
</td>
</tr>
</table>
</form>
</div>
<?
include_once("html_wrap/tail.inc.php");
?>