@@ 1069-1088 (lines=20) @@ | ||
1066 | } |
|
1067 | ||
1068 | if ($confirm) { |
|
1069 | if (isset($_REQUEST['ma'])) { |
|
1070 | $this->printTrail('schema'); |
|
1071 | $this->printTitle($lang['strempty'], 'pg.table.empty'); |
|
1072 | ||
1073 | echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n"; |
|
1074 | foreach ($_REQUEST['ma'] as $v) { |
|
1075 | $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES)); |
|
1076 | echo '<p>', sprintf($lang['strconfemptytable'], $misc->printVal($a['table'])), "</p>\n"; |
|
1077 | printf('<input type="hidden" name="table[]" value="%s" />', htmlspecialchars($a['table'])); |
|
1078 | } |
|
1079 | } // END mutli empty |
|
1080 | else { |
|
1081 | $this->printTrail('table'); |
|
1082 | $this->printTitle($lang['strempty'], 'pg.table.empty'); |
|
1083 | ||
1084 | echo '<p>', sprintf($lang['strconfemptytable'], $misc->printVal($_REQUEST['table'])), "</p>\n"; |
|
1085 | ||
1086 | echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n"; |
|
1087 | echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n"; |
|
1088 | } // END not mutli empty |
|
1089 | ||
1090 | echo "<input type=\"hidden\" name=\"action\" value=\"empty\" />\n"; |
|
1091 | echo $misc->form; |
|
@@ 1138-1158 (lines=21) @@ | ||
1135 | ||
1136 | if ($confirm) { |
|
1137 | //If multi drop |
|
1138 | if (isset($_REQUEST['ma'])) { |
|
1139 | $this->printTrail('schema'); |
|
1140 | $this->printTitle($lang['strdrop'], 'pg.table.drop'); |
|
1141 | ||
1142 | echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n"; |
|
1143 | foreach ($_REQUEST['ma'] as $v) { |
|
1144 | $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES)); |
|
1145 | echo '<p>', sprintf($lang['strconfdroptable'], $misc->printVal($a['table'])), "</p>\n"; |
|
1146 | printf('<input type="hidden" name="table[]" value="%s" />', htmlspecialchars($a['table'])); |
|
1147 | } |
|
1148 | } else { |
|
1149 | $this->printTrail('table'); |
|
1150 | $this->printTitle($lang['strdrop'], 'pg.table.drop'); |
|
1151 | ||
1152 | echo '<p>', sprintf($lang['strconfdroptable'], $misc->printVal($_REQUEST['table'])), "</p>\n"; |
|
1153 | ||
1154 | echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n"; |
|
1155 | echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n"; |
|
1156 | } // END if multi drop |
|
1157 | ||
1158 | echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n"; |
|
1159 | echo $misc->form; |
|
1160 | echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n"; |
|
1161 | echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n"; |