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


PHP Restaurant::get_phone方法代碼示例

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


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

示例1: Restaurant

 // send email to user to confirm reservation
 $restaurant = new Restaurant();
 $restaurant->find($fields['restaurant_id']);
 $mail = Mail::getInstance();
 $mailto = $_POST['user_email'];
 $subject = 'FineTable - Restaurant Reservation Confirmation!';
 if (isset($_POST['guest_reservation']) && $_POST['guest_reservation'] == 'true') {
     $body = '
     <div class="mail-body" style="padding: 20px; border: 5px solid rgb(254, 127, 65); border-radius: 4px; margin: 0 auto; width: 90%;">
         <p>Hello ' . $_POST['guest_fullname'] . ',</p>
         <p>Congratulations!</p>
         <p>You have made a reservation with restaurant: ' . $restaurant->get_restaurant_name() . '.</p>
         <p>' . $restaurant->get_full_address() . '</p>
         <p><b>Date: </b>' . $_POST['date'] . '</p>
         <p><b>Time: </b>' . $_POST['time'] . '</p>
         <p>If you need to make a change with the reservation, please contact the restaurant at: ' . $restaurant->get_phone() . '</p>
         <p>Thank you!</p>
         <p>FineTable team</p>
     </div>
     ';
 } else {
     $body = '
     <div class="mail-body" style="padding: 20px; border: 5px solid rgb(254, 127, 65); border-radius: 4px; margin: 0 auto; width: 90%;">
         <p>Hello ' . $_COOKIE["login_user_firstname"] . ',</p>
         <p>Congratulations!</p>
         <p>You have made a reservation with restaurant: ' . $restaurant->get_restaurant_name() . '.</p>
         <p>' . $restaurant->get_full_address() . '</p>
         <p><b>Date: </b>' . $_POST['date'] . '</p>
         <p><b>Time: </b>' . $_POST['time'] . '</p>
         <p>If you need to make a change with the reservation, please contact the restaurant at: ' . $restaurant->get_phone() . '</p>
         <p>Thank you!</p>
開發者ID:HuiSF,項目名稱:FineTable-Class-Project,代碼行數:31,代碼來源:make-reservation.logic.php


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