You should have received a copy of the GNU General Public License along with Certificates. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include ('../../../inc/includes.php'); if (!isset($_GET["id"])) $_GET["id"] = ""; if (!isset($_GET["withtemplate"])) $_GET["withtemplate"] = ""; $certif=new PluginCertificatesCertificate(); $certif_item=new PluginCertificatesCertificate_Item(); if (isset($_POST["add"])) { $certif->check(-1,CREATE,$_POST); $newID=$certif->add($_POST); Html::back(); } else if (isset($_POST["delete"])) { $certif->check($_POST['id'],DELETE); $certif->delete($_POST); $certif->redirectToList(); } else if (isset($_POST["restore"])) { $certif->check($_POST['id'],PURGE); $certif->restore($_POST); $certif->redirectToList();
You should have received a copy of the GNU General Public License along with Certificates. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; if (!isset($_GET["id"])) { $_GET["id"] = ""; } if (!isset($_GET["withtemplate"])) { $_GET["withtemplate"] = ""; } $certif = new PluginCertificatesCertificate(); $certif_item = new PluginCertificatesCertificate_Item(); if (isset($_POST["add"])) { $certif->check(-1, 'w', $_POST); $newID = $certif->add($_POST); Html::back(); } else { if (isset($_POST["delete"])) { $certif->check($_POST['id'], 'w'); $certif->delete($_POST); $certif->redirectToList(); } else { if (isset($_POST["restore"])) { $certif->check($_POST['id'], 'w'); $certif->restore($_POST); $certif->redirectToList(); } else { if (isset($_POST["purge"])) { $certif->check($_POST['id'], 'w');