本文整理汇总了PHP中Guest::checkAddress方法的典型用法代码示例。如果您正苦于以下问题:PHP Guest::checkAddress方法的具体用法?PHP Guest::checkAddress怎么用?PHP Guest::checkAddress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Guest
的用法示例。
在下文中一共展示了Guest::checkAddress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
}
}
}
}
}
}
}
}
}
}
}
$bookdata = $booking->get($bookingdetailid);
// check room capacity
if ($bookdata[persons] + $bookdata[children0] + $bookdata[children] + $bookdata[children2] + $bookdata[children3] > $bookdata[capacity]) {
$smarty->assign('tpl_overload', 'true');
} else {
$smarty->assign('tpl_overload', 'false');
}
if (count($bookdata[additionalguests]) . "guests " > $bookdata[persons] + $bookdata[children] + $bookdata[children2] + $bookdata[children3]) {
$smarty->assign('tpl_addoverload', 'true');
} else {
$smarty->assign('tpl_addoverload', 'false');
}
if ($guest->checkAddress($bookdata[gastid])) {
$smarty->assign('tpl_checkaddress', 'true');
} else {
$smarty->assign('tpl_checkaddress', 'false');
}
$smarty->assign('tpl_posEscorts', $booking->showPossibleEscorts($bookingdetailid, $bookdata[gastid]));
$smarty->assign('tpl_bookdata', $bookdata);
$smarty->display('editbook.tpl');