// (at your option) any later version. // // Pastèque is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Pastèque. If not, see <http://www.gnu.org/licenses/>. namespace ProductTariffAreas; $message = null; $error = null; $srv = new \Pasteque\TariffAreasService(); if (isset($_POST['delete-area'])) { if ($srv->delete($_POST['delete-area'])) { $message = \i18n("Changes saved"); } else { $error = \i18n("Unable to save changes"); } } $areas = $srv->getAll(); ?> <h1><?php \pi18n("Tariff areas", PLUGIN_NAME); ?> </h1> <?php \Pasteque\tpl_msg_box($message, $error); ?>