コード例 #1
0
ファイル: user.php プロジェクト: BGCX261/zishashop-svn-to-git
    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');
コード例 #2
0
ファイル: user.php プロジェクト: seanguo166/yinoos
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;
    }
}
コード例 #3
0
ファイル: index.php プロジェクト: mambax7/jill_booking-1
$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;
コード例 #4
0
ファイル: list.php プロジェクト: mambax7/jill_booking-1
    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';
コード例 #5
0
}
/*-----------執行動作判斷區----------*/
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';
コード例 #6
0
ファイル: cms_booking.php プロジェクト: erico-deh/ocPortal
 /**
  * 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']);
     }
 }