本文整理汇总了PHP中Appointment::retrieveAppointments方法的典型用法代码示例。如果您正苦于以下问题:PHP Appointment::retrieveAppointments方法的具体用法?PHP Appointment::retrieveAppointments怎么用?PHP Appointment::retrieveAppointments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Appointment
的用法示例。
在下文中一共展示了Appointment::retrieveAppointments方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Appointment
include_once "class/User.class.php";
include_once "class/Rating.class.php";
$appointment = new Appointment();
$captain = new Captain();
$user = new User();
$appList = array();
$captList = array();
$userList = array();
//*************************** UPCOMING APPOINTMENTS ****************************************************
echo "<div class='container'> ";
echo "<h1>My Appointments</h1>";
echo "<h2>Upcoming Appointments</h2>";
echo "<ul class='list-group'>";
$userList = $user->retrieveUserFromId($userId);
$userEmail = $userList[0]->getEmail();
$appList = $appointment->retrieveAppointments($userType, $userEmail, "upcoming");
$aa = $appList[0]->getCaptainId();
for ($i = 0; $i < count($appList); $i++) {
$captain_id = $appList[$i]->getCaptainId();
$captList = $captain->retrieveCaptainFromBook($captain_id);
//$userList = $user->retrieveUserFromId($appList[$i]->getUserId());
$captName = $captList[0]->getFirstName() . " " . $captList[0]->getLastName();
//$userName = $userList[0]->getFirstName() . " " . $userList[0]->getLastName();
$app_id = $appList[$i]->getAppointmentId();
echo "<li class='list-group-item'>Appointment with Captain " . $captName . " at " . $appList[$i]->getAppointmentDate();
/*
echo "<div class='col-md-2 col-xs-6'>";
echo "<form action='reschedule-appointment.php' method='POST'> <button type='submit' class='btn btn-warning'>Reschedule</button></form>";
echo "</div>";