当前位置: 首页>>代码示例>>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;未经允许,请勿转载。