assign('VAL_ERROR', $errorMsg); $gift_cert->parse('gift_cert.error'); } $gift_cert->assign("LANG_TITLE", $lang['giftCert']['gift_certificate']); $gift_cert->assign("LANG_DESC", $lang['giftCert']['desc']); $gift_cert->assign("LANG_BUY_CERT", $lang['giftCert']['buy_gift_cert']); $gift_cert->assign("LANG_AMOUNT", $lang['giftCert']['amount']); $gift_cert->assign("LANG_MIN_MAX", sprintf($lang['giftCert']['min_max'], priceFormat($gc['min'], true), priceFormat($gc['max'], true))); $gift_cert->assign("LANG_RECIP_NAME",$lang['giftCert']['recip_name']); $gift_cert->assign("LANG_RECIP_EMAIL",$lang['giftCert']['recip_email']); $gift_cert->assign("LANG_MESSAGE",$lang['giftCert']['message']); $gift_cert->assign("LANG_METHOD",$lang['giftCert']['method']); $gift_cert->assign("LANG_EMAIL",$lang['giftCert']['email']); $gift_cert->assign("LANG_MAIL",$lang['giftCert']['mail']); $gift_cert->assign("LANG_ADD_TO_BASKET",$lang['giftCert']['add_basket']); $gift_cert->assign("VALUE_AMOUNT",sanitizeVar($_POST['gc']['amount'])); $gift_cert->assign("VALUE_RECIPNAME",sanitizeVar($_POST['gc']['recipName'])); $gift_cert->assign("VALUE_EMAIL",sanitizeVar($_POST['gc']['recipEmail'])); $gift_cert->assign("VALUE_MESSAGE",sanitizeVar($_POST['gc']['message'])); if (sanitizeVar($_POST['gc']['delivery'])=="e") { $gift_cert->assign("VAL_DELIVERY_E","selected='selected'"); } else { $gift_cert->assign("VAL_DELIVERY_M","selected='selected'"); } if($gc['delivery']==1){ $gift_cert->parse("gift_cert.email_opts"); } elseif($gc['delivery']==2){ $gift_cert->parse("gift_cert.mail_opts"); } elseif($gc['delivery']==3) { $gift_cert->parse("gift_cert.email_opts"); $gift_cert->parse("gift_cert.mail_opts"); } $gift_cert->parse("gift_cert"); $page_content = $gift_cert->text("gift_cert"); if ($config['seftags']) { $meta['sefSiteTitle'] = $gc['doc_metatitle']; $meta['sefSiteDesc'] = $gc['doc_metadesc']; $meta['sefSiteKeywords'] = $gc['doc_metakeywords']; } ?>