本文整理匯總了PHP中Alert::send方法的典型用法代碼示例。如果您正苦於以下問題:PHP Alert::send方法的具體用法?PHP Alert::send怎麽用?PHP Alert::send使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Alert
的用法示例。
在下文中一共展示了Alert::send方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Order
<?php
if (isset($_GET['id'])) {
$id = (int) $_GET['id'];
$obj = new Order($id);
}
if (Tools::isSubmit('orderStatusUpdate')) {
$obj->id_order_status = (int) Tools::getRequest('id_order_status');
if (strlen(trim(Tools::getRequest('track_number'))) > 0) {
$obj->track_number = Tools::getRequest('track_number');
Alert::send($obj->id_user, "Your order:#" . sprintf("%09d", intval($obj->id)) . " has been shipped.");
}
$obj->update();
$obj->order_status = new OrderStatus((int) $obj->id_order_status);
}
$breadcrumb = new UIAdminBreadcrumb();
$breadcrumb->home();
$breadcrumb->add(array('title' => '定單 #' . sprintf("%09d", $id), 'active' => true));
$bread = $breadcrumb->draw();
$btn_group = array(array('type' => 'button', 'title' => '提交到定單係統', 'id' => 'send-to-order-system', 'class' => 'btn-success', 'icon' => 'wrench'), array('type' => 'a', 'title' => '預覽', 'href' => 'index.php?rule=order_view&id=' . $obj->id, 'class' => 'btn-warning', 'icon' => 'eye-open'), array('type' => 'a', 'title' => '返回', 'href' => 'index.php?rule=order', 'class' => 'btn-primary', 'icon' => 'level-up'));
echo UIViewBlock::area(array('bread' => $bread, 'btn_groups' => $btn_group), 'breadcrumb');
?>
<div class="order_base_info">
<div style="width: 49%; float:left;">
<fieldset class="small">
<legend><img src="<?php
echo $_tmconfig['ico_dir'];
?>
tab-customers.gif">用戶</legend>
<span style="font-weight: bold; font-size: 14px;"><a href="index.php?rule=user_edit&id=<?php