本文整理汇总了PHP中email::mailorder方法的典型用法代码示例。如果您正苦于以下问题:PHP email::mailorder方法的具体用法?PHP email::mailorder怎么用?PHP email::mailorder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类email
的用法示例。
在下文中一共展示了email::mailorder方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Orders
JRequest::setvar('task', "orders");
$tmp = new Orders();
$tmp->removeOrders($cid);
$mainframe->redirect("index.php?option=com_caddy&action=orders&task=show&field={$field}&order={$order}&search={$search}", JText::_('SC_ORDERDELETED'));
break;
case "export":
$order = new order();
$csvline = $order->ordertostring($cid);
JRequest::setvar('task', "about");
display::showExport();
break;
case "email":
printf("<pre>%s</pre>", print_r($_REQUEST, 1));
$oid = JRequest::getVar("oid");
$email = new email();
$email->mailorder($oid);
$mainframe->redirect("index.php?option=com_caddy&action=orders&task=edit&id={$oid}&field={$field}&order={$order}&search={$search}", JText::_('SC_EMAIL_SENT'));
break;
case "viewarchive":
JRequest::setvar('task', "orders");
$a = new Orders();
$alist = $a->getAllOrders($field, $order, null, $search, 1);
display::ShowOrders($alist, $field, $order);
break;
case "show":
default:
// JRequest::setvar('task', "orders");
$a = new Orders();
$alist = $a->getAllOrders($field, $order, null, $search);
display::header();
display::ShowOrders($alist, $field, $order);
示例2: file
$pgfile = $pgpath . DS . $gateway . ".class.php";
// filename should look like "scpaypal.class.php"
if (!file_exists($pgfile)) {
echo "The classname you provided in the configuration does not correspond to a known file ({$pgfile})";
break;
}
require_once $pgfile;
}
$checkout = new $gateway();
$checkout->checkout($orderid, $ship);
}
}
$result = true;
if ($cfg->get("email_customer") == 1) {
$mail = new email();
$result = $mail->mailorder($orderid);
// should be 1 for successful email
}
if ($result == 1) {
display::ThanksForOrder();
} else {
display::ThanksForOrderNoMail($result);
}
$cart = new cart2();
$cart->destroyCart();
// emoty all session vars of the cart, no visual return
} else {
$fields = new fields();
$fieldlist = $fields->getPublishedFields();
$fielddata = $_REQUEST;
// get everything back