*/ ?> <style> #mm-dialog-container { height:100%; width:100%; border-collapse:collapse; } .mm-dialog-button-bar { width:100%; height:40px; text-align:right; } </style> <table id="mm-dialog-container"> <tr><td valign="top"> <div> <?php $product = new MM_Product($p->productId); if ($product->isValid()) { $context = new MM_Context(); $context->setProduct($product); echo MM_SmartTagUtil::processContent($product->getPurchaseConfirmationMessage(), $context); } else { echo "Invalid product ID '{$p->productId}'"; } ?> </div> </td></tr> <tr><td valign="bottom" class="mm-dialog-button-bar"> <a href="javascript:pymtutils_js.placeOrderCardOnFile(<?php echo $p->userId; ?> , <?php echo $p->productId; ?> , 'user', '<?php
/** * This function executes a [MM_..._Decision] SmartTag * @param String $smartTagName the new of the SmartTag to execute * @param Array $attributes an associative array of name/value pairs to pass to the SmartTag * @return Boolean returns the result of executing the SmartTag with the attributes passed */ function executeDecisionSmartTag($smartTagName, $attributes) { if (is_array($attributes)) { $smartTag = "[{$smartTagName}"; foreach ($attributes as $name => $value) { $smartTag .= " {$name}='{$value}'"; } $smartTag .= "]success[/{$smartTagName}]"; $context = new MM_Context(); $result = MM_SmartTagUtil::processContent($smartTag, $context); return $result == "success" ? true : false; } else { return false; } }