当前位置: 首页>>代码示例>>PHP>>正文


PHP delete_booking函数代码示例

本文整理汇总了PHP中delete_booking函数的典型用法代码示例。如果您正苦于以下问题:PHP delete_booking函数的具体用法?PHP delete_booking怎么用?PHP delete_booking使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了delete_booking函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_message

    if ($rec_id > 0) {
        show_message($_LANG['booking_rec_exist'], $_LANG['back_page_up'], '', 'error');
    }
    if (add_booking($booking)) {
        show_message($_LANG['booking_success'], $_LANG['back_booking_list'], 'user.php?act=booking_list', 'info');
    } else {
        $err->show($_LANG['booking_list_lnk'], 'user.php?act=booking_list');
    }
} elseif ($action == 'act_del_booking') {
    include_once ROOT_PATH . 'includes/lib_clips.php';
    $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
    if ($id == 0 || $user_id == 0) {
        ecs_header("Location: user.php?act=booking_list\n");
        exit;
    }
    $result = delete_booking($id, $user_id);
    if ($result) {
        ecs_header("Location: user.php?act=booking_list\n");
        exit;
    }
} elseif ($action == 'affirm_received') {
    include_once ROOT_PATH . 'includes/lib_transaction.php';
    $order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0;
    if (affirm_received($order_id, $user_id)) {
        ecs_header("Location: user.php?act=order_list\n");
        exit;
    } else {
        $err->show($_LANG['order_list_lnk'], 'user.php?act=order_list');
    }
} elseif ($action == 'account_raply') {
    $smarty->display('user_transaction.dwt');
开发者ID:BGCX261,项目名称:zishashop-svn-to-git,代码行数:31,代码来源:user.php

示例2: action_act_del_booking

function action_act_del_booking()
{
    $user = $GLOBALS['user'];
    $_CFG = $GLOBALS['_CFG'];
    $_LANG = $GLOBALS['_LANG'];
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    $user_id = $_SESSION['user_id'];
    include_once ROOT_PATH . 'includes/lib_clips.php';
    $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
    if ($id == 0 || $user_id == 0) {
        ecs_header("Location: user.php?act=booking_list\n");
        exit;
    }
    $result = delete_booking($id, $user_id);
    if ($result) {
        ecs_header("Location: user.php?act=booking_list\n");
        exit;
    }
}
开发者ID:seanguo166,项目名称:yinoos,代码行数:21,代码来源:user.php

示例3: empty

$jbt_sn = empty($_REQUEST['jbt_sn']) ? "" : intval($_REQUEST['jbt_sn']);
$jbi_sn = empty($_REQUEST['jbi_sn']) ? "" : intval($_REQUEST['jbi_sn']);
switch ($op) {
    /*---判斷動作請貼在下方---*/
    case "single_insert_booking":
        $jb_sn = insert_jill_booking(1);
        $jb_week[$jbt_sn] = date("w", strtotime($_POST['jb_date']));
        insert_jill_booking_week($jb_sn, $jbt_sn, 1, $jb_week);
        insert_jill_booking_date($jb_sn, 1, $jbi_sn);
        $icon = delete_booking_icon($jbt_sn - 1, $jb_week[$jbt_sn], $jbt_sn, $_POST['jb_date'], $jbi_sn);
        die($icon);
        break;
    case "delete_booking":
        if (is_date($_REQUEST['jb_date']) == 1) {
            //die($jbt_sn."==".$jbi_sn."==".$_REQUEST['jb_date']);
            delete_booking($jbt_sn, $_REQUEST['jb_date'], $jbi_sn);
            header("location: {$_SERVER['PHP_SELF']}?op=booking_table&jbi_sn={$jbi_sn}&getdate={$_REQUEST['jb_date']}");
        }
        break;
    case "jill_booking_form":
        if (is_date($_REQUEST['jb_date']) == 1) {
            jill_booking_form($jbt_sn, $_REQUEST['jb_date']);
        }
        break;
    case "booking_table":
        if (is_date($_REQUEST['getdate']) == 1) {
            booking_table($jbi_sn, $_REQUEST['getdate']);
        } else {
            booking_table($jbi_sn);
        }
        break;
开发者ID:mambax7,项目名称:jill_booking-1,代码行数:31,代码来源:index.php

示例4: sweet_alert

    include_once XOOPS_ROOT_PATH . "/modules/tadtools/sweet_alert.php";
    $sweet_alert = new sweet_alert();
    $delete_jill_booking_func = $sweet_alert->render('delete_jill_booking_func', "{$_SERVER['PHP_SELF']}?op=delete_jill_booking&primary=", "primary");
    $xoopsTpl->assign('delete_jill_booking_func', $delete_jill_booking_func);
}
/*-----------執行動作判斷區----------*/
include_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
$op = system_CleanVars($_REQUEST, 'op', '', 'string');
$jb_sn = system_CleanVars($_REQUEST, 'jb_sn', '', 'int');
$jbi_sn = system_CleanVars($_REQUEST, 'jbi_sn', '', 'int');
$primary = system_CleanVars($_REQUEST, 'primary', '', 'string');
switch ($op) {
    /*---判斷動作請貼在下方---*/
    case "delete_jill_booking":
        $primaryArr = explode("_", $primary);
        //jbi_sn=$primaryArr[0], jb_date=$primaryArr[1], jbt_sn=$primaryArr[2]
        delete_booking($primaryArr[2], $primaryArr[1], $primaryArr[0]);
        header("location: {$_SERVER['PHP_SELF']}");
        exit;
        break;
    default:
        jill_booking_list($jbi_sn);
        break;
        /*---判斷動作請貼在上方---*/
}
/*-----------秀出結果區--------------*/
$xoopsTpl->assign("toolbar", toolbar_bootstrap($interface_menu));
$xoopsTpl->assign("isAdmin", $isAdmin);
$xoopsTpl->assign("can_booking", $can_booking);
$xoopsTpl->assign("Isapproval", $Isapproval);
include_once XOOPS_ROOT_PATH . '/footer.php';
开发者ID:mambax7,项目名称:jill_booking-1,代码行数:31,代码来源:list.php

示例5: system_CleanVars

}
/*-----------執行動作判斷區----------*/
include_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
$op = system_CleanVars($_REQUEST, 'op', '', 'string');
$jb_sn = system_CleanVars($_REQUEST, 'jb_sn', '', 'int');
$jbi_sn = system_CleanVars($_REQUEST, 'jbi_sn', '', 'int');
$jbt_sn = system_CleanVars($_REQUEST, 'jbt_sn', '', 'int');
$jb_info = system_CleanVars($_REQUEST, 'jb_info', '', 'string');
switch ($op) {
    /*---判斷動作請貼在下方---*/
    case "update_jb_status":
        if (is_date($_REQUEST['jb_date']) == 1) {
            update_jb_status($jb_sn, $_REQUEST['jb_date'], $jbt_sn, $jbi_sn);
        }
        break;
    case "delete_booking":
        $infoArr = explode("_", $jb_info);
        $jbi_sn = delete_booking($infoArr[1], $infoArr[2], $infoArr[3]);
        header("location: {$_SERVER['PHP_SELF']}?jbi_sn={$jbi_sn}");
        break;
    default:
        jill_booking_approvallist($jbi_sn);
        break;
        /*---判斷動作請貼在上方---*/
}
/*-----------秀出結果區--------------*/
$xoopsTpl->assign("toolbar", toolbar_bootstrap($interface_menu));
$xoopsTpl->assign("isAdmin", $isAdmin);
$xoopsTpl->assign("can_booking", $can_booking);
$xoopsTpl->assign("Isapproval", $Isapproval);
include_once XOOPS_ROOT_PATH . '/footer.php';
开发者ID:mambax7,项目名称:jill_booking-1,代码行数:31,代码来源:listapproval.php

示例6: delete_actualisation

 /**
  * Standard aed_module delete actualiser.
  *
  * @param  ID_TEXT		The entry being deleted
  */
 function delete_actualisation($_id)
 {
     list($member_id, $i) = array_map('intval', explode('_', $_id, 2));
     $request = get_member_booking_request($member_id);
     foreach ($request[$i]['_rows'] as $row) {
         delete_booking($row['id']);
     }
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:13,代码来源:cms_booking.php


注:本文中的delete_booking函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。