本文整理汇总了PHP中oledrion_utils::deliveryHtmlSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP oledrion_utils::deliveryHtmlSelect方法的具体用法?PHP oledrion_utils::deliveryHtmlSelect怎么用?PHP oledrion_utils::deliveryHtmlSelect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oledrion_utils
的用法示例。
在下文中一共展示了oledrion_utils::deliveryHtmlSelect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: listCart
}
// Check checkout level
if ($checkout_level == 1) {
oledrion_utils::redirect(_OLEDRION_FINAL_CHECKOUT, OLEDRION_URL . 'checkout.php?op=confirm&commend_id=' . $commend_id, 1);
}
listCart();
$commande = $h_oledrion_commands->get($commend_id);
$location_id = $commande->getVar('cmd_location_id');
$deliveres = $h_oledrion_delivery->getThisLocationDelivery($location_id);
$sform = new XoopsThemeForm(_OLEDRION_DELIVERY_FORM, "informationfrm", OLEDRION_URL . 'checkout.php', 'post');
$sform->addElement(new XoopsFormHidden('op', 'save'));
$sform->addElement(new XoopsFormHidden('action', 'delivery'));
$sform->addElement(new XoopsFormHidden('commend_id', $commend_id));
$delivery_options = new XoopsFormRadio(_OLEDRION_SELECT_DELIVERY, 'delivery_id');
foreach ($deliveres as $delivery) {
$delivery_options->addOption($delivery['delivery_id'], oledrion_utils::deliveryHtmlSelect($delivery));
}
$sform->addElement($delivery_options, true);
$sform->addElement(new XoopsFormButton('', 'post', _OLEDRION_SAVE_NEXT, 'submit'));
$sform = oledrion_utils::formMarkRequiredFields($sform);
$xoopsTpl->assign('form', $sform->render());
// texte à afficher
$registry = new oledrion_registryfile();
$text = $registry->getfile(OLEDRION_TEXTFILE6);
$xoopsTpl->assign('text', xoops_trim($text));
break;
case 'payment':
if ($h_oledrion_caddy->isCartEmpty()) {
oledrion_utils::redirect(_OLEDRION_CART_IS_EMPTY, OLEDRION_URL, 4);
}
if ($commend_id == 0) {