if (count($guests) > 0) { $smarty->assign('tpl_step', '91'); $smarty->assign('tpl_result', $guests); $smarty->assign('tpl_selected', $selected); $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 {