本文整理汇总了PHP中AZLib::closePopup方法的典型用法代码示例。如果您正苦于以下问题:PHP AZLib::closePopup方法的具体用法?PHP AZLib::closePopup怎么用?PHP AZLib::closePopup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AZLib
的用法示例。
在下文中一共展示了AZLib::closePopup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FooterEdit
function FooterEdit($row)
{
Module::Module($row);
if (User::is_admin()) {
require_once 'forms/FooterEdit.php';
$this->add_form(new FooterEditForm());
} else {
AZLib::closePopup();
}
}
示例2: OnlineSupportEdit
function OnlineSupportEdit($row)
{
Module::Module($row);
if (User::is_admin()) {
require_once 'forms/OnlineSupportEdit.php';
$this->add_form(new OnlineSupportEditForm());
} else {
AZLib::closePopup();
}
}
示例3: CartPrint
function CartPrint($row)
{
Module::Module($row);
CGlobal::$website_title = "in đơn hàng";
$id = URL::get('id', 0);
if ($id) {
CartPrint::$cart = DB::select("cart", "id={$id}");
if (CartPrint::$cart && (User::have_permit(ADMIN_ITEM) || CartPrint::$cart['user_id'] == User::id() || CartPrint::$cart['session'] == CGlobal::$cart_sess_id)) {
$re = DB::query("SELECT * FROM cart_item WHERE cart_id=" . CartPrint::$cart['id'] . " ORDER BY id DESC");
$cart_item_del = '';
$item_ids = '';
if ($re) {
while ($cart_item = mysql_fetch_assoc($re)) {
$item_ids .= ($item_ids != '' ? ',' : '') . $cart_item['item_id'];
CartPrint::$cart_items[$cart_item['id']] = $cart_item;
}
}
if ($item_ids != '') {
$re = DB::query("SELECT * FROM item WHERE id IN(" . $item_ids . ") AND status=1 AND price>0");
if ($re) {
while ($item = mysql_fetch_assoc($re)) {
$item['price'] = number_format(AZLib::convertCurrency($item['price'], $item['currency_id']), null, null, '.');
CartPrint::$items[$item['id']] = $item;
}
}
}
$cart_item_del = '';
foreach (CartPrint::$cart_items as $cart_item) {
if (isset(CartPrint::$items[$cart_item['item_id']])) {
if ($cart_item['price'] != CartPrint::$items[$cart_item['item_id']]['price'] || $cart_item['sku'] != CartPrint::$items[$cart_item['item_id']]['sku']) {
$cart_item['price'] = CartPrint::$items[$cart_item['item_id']]['price'];
$cart_item['sku'] = CartPrint::$items[$cart_item['item_id']]['sku'];
DB::update('cart_item', array('price' => $cart_item['price'], 'sku' => $cart_item['sku']), "id={$cart_item['id']}");
}
CartPrint::$cart_items[$cart_item['id']] = $cart_item;
} else {
$cart_item_del .= ($cart_item_del != '' ? ',' : '') . $cart_item['id'];
}
}
if ($cart_item_del != '') {
DB::delete('cart_item', "id IN({$cart_item_del})");
}
} else {
AZLib::closePopup();
exit;
}
}
if (!CartPrint::$cart) {
AZLib::closePopup();
exit;
}
require_once 'forms/CartPrint.php';
$this->add_form(new CartPrintForm());
}