本文整理匯總了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