@@ 1081-1100 (lines=20) @@ | ||
1078 | } |
|
1079 | ||
1080 | if ($confirm) { |
|
1081 | if (isset($_REQUEST['ma'])) { |
|
1082 | $this->printTrail('schema'); |
|
1083 | $this->printTitle($lang['strempty'], 'pg.table.empty'); |
|
1084 | ||
1085 | echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n"; |
|
1086 | foreach ($_REQUEST['ma'] as $v) { |
|
1087 | $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES)); |
|
1088 | echo '<p>', sprintf($lang['strconfemptytable'], $misc->printVal($a['table'])), "</p>\n"; |
|
1089 | printf('<input type="hidden" name="table[]" value="%s" />', htmlspecialchars($a['table'])); |
|
1090 | } |
|
1091 | } // END mutli empty |
|
1092 | else { |
|
1093 | $this->printTrail('table'); |
|
1094 | $this->printTitle($lang['strempty'], 'pg.table.empty'); |
|
1095 | ||
1096 | echo '<p>', sprintf($lang['strconfemptytable'], $misc->printVal($_REQUEST['table'])), "</p>\n"; |
|
1097 | ||
1098 | echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n"; |
|
1099 | echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n"; |
|
1100 | } // END not mutli empty |
|
1101 | ||
1102 | echo "<input type=\"hidden\" name=\"action\" value=\"empty\" />\n"; |
|
1103 | echo $misc->form; |
|
@@ 1151-1171 (lines=21) @@ | ||
1148 | ||
1149 | if ($confirm) { |
|
1150 | //If multi drop |
|
1151 | if (isset($_REQUEST['ma'])) { |
|
1152 | $this->printTrail('schema'); |
|
1153 | $this->printTitle($lang['strdrop'], 'pg.table.drop'); |
|
1154 | ||
1155 | echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n"; |
|
1156 | foreach ($_REQUEST['ma'] as $v) { |
|
1157 | $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES)); |
|
1158 | echo '<p>', sprintf($lang['strconfdroptable'], $misc->printVal($a['table'])), "</p>\n"; |
|
1159 | printf('<input type="hidden" name="table[]" value="%s" />', htmlspecialchars($a['table'])); |
|
1160 | } |
|
1161 | } else { |
|
1162 | $this->printTrail('table'); |
|
1163 | $this->printTitle($lang['strdrop'], 'pg.table.drop'); |
|
1164 | ||
1165 | echo '<p>', sprintf($lang['strconfdroptable'], $misc->printVal($_REQUEST['table'])), "</p>\n"; |
|
1166 | ||
1167 | echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n"; |
|
1168 | echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n"; |
|
1169 | } // END if multi drop |
|
1170 | ||
1171 | echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n"; |
|
1172 | echo $misc->form; |
|
1173 | echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n"; |
|
1174 | echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n"; |