<?php $access_level = 9; require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; include CLASS_GIFT_CARDS; $biz = new handleBusiness(); $gcard = new handleGiftCards(); $gcard->id = $biz->rec["record_id"]; $preload_restrictions = pullTemplates("standard.restrictions.giftcards.php"); if (isset($_POST["submit"])) { if (trim($_POST["fields"]["name"]) != "") { $gcard->createGiftCards(); } header("location:" . $_SERVER["PHP_SELF"] . "?id=" . $biz->rec["record_id"] . "&m=1"); exit; } if (isset($_GET["m"])) { $mess[1] = "1 Gift Cards have been created."; $message = $mess[$_GET["m"]]; } ?> <?php getHeader("admin"); ?> <script type="text/javascript" src="<?php echo PATHTOHTML . PATHTOADMIN; ?>