// You should have received a copy of the GNU General Public License // along with Pastèque. If not, see <http://www.gnu.org/licenses/>. // categories action namespace BaseCurrencies; $message = NULL; $error = NULL; $currSrv = new \Pasteque\CurrenciesService(); if (isset($_POST['delete-currency'])) { if ($currSrv->delete($_POST['delete-currency'])) { $message = \i18n("Changes saved"); } else { $error = \i18n("Unable to save changes"); } } $currencies = $currSrv->getAll(); ?> <h1><?php \pi18n("Currencies", PLUGIN_NAME); ?> </h1> <?php \Pasteque\tpl_msg_box($message, $error); ?> <?php \Pasteque\tpl_btn('btn', \Pasteque\get_module_url_action(PLUGIN_NAME, "currency_edit"), \i18n('Add a currency', PLUGIN_NAME), 'img/btn_add.png'); ?> <table cellpadding="0" cellspacing="0">