<form id="NewCategory"> <div class="row"> <h2 class="page-header text-center"> Cadastrar nova categoria </h2> </div> <div class="row"> <div class="row"> <button type="submit" class="btn btn-lg btn-success pull-right btn-cad">Cadastrar</button> </div> <div class="row"> <?php echo MicroBordo::getContent('form-category'); ?> </div> <div class="row"> <button type="submit" class="btn btn-lg btn-success pull-right btn-cad">Cadastrar</button> </div> </div> </form> <script type="text/javascript"> $("#NewCategory").submit(function(){ $.ajax({ url: 'core/ajax.php?action=newProductCategory', data: $("#NewCategory").serialize(),
<?php /* Copyright (C) 2015 Lenilson Jr. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ require_once 'core/core.php'; $microbordo = new MicroBordo(); $microbordo->getHeader(); $microbordo->getContent(); $microbordo->getFooter();
<?php /* Copyright (C) 2015 Lenilson Jr. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ require_once $_SERVER["DOCUMENT_ROOT"] . '/core/core.php'; ?> <div class="modalLoad"></div> <div id="modalAlertDiv"> <?php MicroBordo::getContent('modal-messages'); ?> </div> </body> </html>