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


PHP country::extractor方法代碼示例

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


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

示例1: echo

                <label for="phone_number">Contact Number <span style="color: red;">*</span></label>
                <input type="text" name="contactno" id="contactno" class="send_data"/>
                <label for="address_line1">Address Line 1 <span style="color: red;">*</span></label>
                <input type="text" name="address1" id="address1" class="send_data"/>
            </div>
            <div class="input-right">
                <label for="address_line2">Address Line 2</label>
                <input type="text" name="address2" id="address2" class="send_data"/>
                <label for="country">Country <span style="color: red;">*</span></label>
                <div class="select-wrapper" style="width: 94%;">
                    <select name="country" id="country" class="send_data" style="width: 100%; background-position: 97% center;">
                        <option value="">Select the Country</option>
                        <?php
                            $country_count = $country->getAllCountry();
                            for ($i = 0; $i < count($country_count); $i++) {
                                $country->extractor($country_count, $i); ?>
                                <option value="<?php echo($country->countryId()); ?>"><?php echo($country->countryName()); ?></option>
                            <?php } ?>
                    </select>
                </div>
                <label for="city">City <span style="color: red;">*</span></label>
                <input type="text" name="city" id="city" class="send_data"/>
                <label for="state_county">State/ Province</label>
                <input type="text" name="state" id="state" class="send_data"/>
                <label for="zip_postcode">Postal/ Zip</label>
                <input type="text" name="zipcode" id="zipcode" class="send_data" style="margin-bottom: 25px;"/>
            </div>
            <label for="special_requirements" style="display:block; ">Special Requirments</label>
            <textarea name="message" id="message" rows="10" class="send_data"></textarea>

            <p class="terms"><input type="checkbox" name="terms" id="terms"/> I have read and accept the
開發者ID:jcodesdotme,項目名稱:pp,代碼行數:31,代碼來源:room_reservation.php

示例2: date

$reservations->setReservationId($merchantReferenceNo);
$pay_data = $reservations->getReservationsFromId();
$reservations->extractor($pay_data);
$reservation_link_id = $reservations->reservationFromBookingLink();
$reservations_status = $reservations->reservationPaymentStatus();
$hotels->setHotelId($reservations->reservationHotelId());
$hotels->extractor($hotels->getHotelFromId());
$date = date("Y-m-d");
// current date
$new_date = strtotime(date("Y-m-d", strtotime($date)) . " +3 month");
$expire_date = date("Y-m-d", $new_date);
$bookingclient->setId($reservations->reservationClientId());
$bookingclient->extractor($bookingclient->getClientsFromId());
$country = new country();
$country->setCountryId($bookingclient->country());
$country->extractor($country->getCountryFromId());
$rooms->setRoomTypeId($reservations->reservationHotelRoomTypeId());
$rooms->extractor($rooms->getHotelRoomTypeFromId());
$client_name = $bookingclient->name();
$client_mobile = $bookingclient->contactno();
$client_email = $bookingclient->email();
$client_message = $bookingclient->message();
$hotel_name = $hotels->hotelName();
$hotel_url = $hotels->hotelSeoUrl();
$room_type = $rooms->roomTypeName();
if ($reservations->reservationBedType() == "sgl") {
    $bed_type = "Single Bed";
}
if ($reservations->reservationBedType() == "dbl") {
    $bed_type = "Double Bed";
}
開發者ID:jcodesdotme,項目名稱:pp,代碼行數:31,代碼來源:voucher_template_unpaid.php


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