當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Guest::saveupdateguest方法代碼示例

本文整理匯總了PHP中Guest::saveupdateguest方法的典型用法代碼示例。如果您正苦於以下問題:PHP Guest::saveupdateguest方法的具體用法?PHP Guest::saveupdateguest怎麽用?PHP Guest::saveupdateguest使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Guest的用法示例。


在下文中一共展示了Guest::saveupdateguest方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Guest

$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'guestclass.inc.php';
$guest = new Guest();
$smarty->assign("tpl_title", "Gast bearbeiten");
$smarty->assign('tpl_nav', 'showgast');
$smarty->assign('tpl_subnav', 'hauptgast');
$smarty->assign('tpl_type', 'showgast');
// select Countries
$smarty->assign("tpl_countries", $guest->GetCountries());
// select salutation
$smarty->assign("tpl_salutation", $guest->getSalutation());
if ($request->GetVar('edit', 'get') !== $request->undefined) {
    $smarty->assign('tpl_editmode', true);
}
if ($request->GetVar('guestid', 'get') !== $request->undefined) {
    $smarty->assign('tpl_gast', $guest->getGuest($request->GetVar('guestid', 'get')));
} elseif ($request->GetVar('frm_guestid', 'post') !== $request->undefined) {
    $guestid = $guest->saveupdateguest();
    $smarty->assign('tpl_gast', $guest->getGuest($guestid));
}
/*
} elseif ($request -> GetVar('frm_gastid', 'post') !== $request -> undefined) {
    $check = $guest -> saveupdateguest();
    if ($check) {
        header("Location: $wwwroot");
        exit;
    } 
} */
$smarty->display('guestdetail.tpl');
開發者ID:BackupTheBerlios,項目名稱:zvs,代碼行數:31,代碼來源:guestdetail.php

示例2: array

         $smarty->assign("tpl_salutation", $guest->getSalutation());
     } else {
         $smarty->assign('tpl_notfound', 'true');
         $smarty->assign("tpl_salutation", $guest->getSalutation());
         $smarty->assign('tpl_step', '90');
     }
 } else {
     if ($request->GetVar('frm_step', 'post') == "92") {
         $guestids = array();
         $guestids = $request->GetVar('frm_addguestid', 'post');
         for ($i = 0; $i < count($guestids); $i++) {
             $booking->addAdditionalGuest($request->GetVar('frm_bookingdetailid', 'post'), $guestids[$i]);
         }
     } else {
         if ($request->GetVar('frm_step', 'post') == "93") {
             $additionalguestid = $guest->saveupdateguest();
             $booking->addAdditionalGuest($request->GetVar('frm_bookingdetailid', 'post'), $additionalguestid);
             if ($request->GetVar('frm_keepaddress', 'post') == "true") {
                 $booking->linkGuestAddress($request->GetVar('frm_guestid', 'post'), $additionalguestid);
             }
         } else {
             if ($request->GetVar('frm_step', 'post') == "delescort") {
                 $booking->delAdditionalGuest($request->GetVar('frm_bookingdetailid', 'post'), $request->GetVar('frm_delescortid', 'post'));
             } else {
                 if ($request->GetVar('frm_step', 'post') == "addPosEscort") {
                     $booking->addAdditionalGuest($request->GetVar('frm_bookingdetailid', 'post'), $request->GetVar('frm_addPosEscortid', 'post'));
                 } else {
                     if ($request->GetVar('frm_step', 'post') == "checkin") {
                         $checkin->checkbookingin($bookid);
                         $smarty->assign('tpl_checkedin', 'true');
                     } else {
開發者ID:BackupTheBerlios,項目名稱:zvs,代碼行數:31,代碼來源:editbook.php


注:本文中的Guest::saveupdateguest方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。