本文整理汇总了PHP中country::countryName方法的典型用法代码示例。如果您正苦于以下问题:PHP country::countryName方法的具体用法?PHP country::countryName怎么用?PHP country::countryName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类country
的用法示例。
在下文中一共展示了country::countryName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: echo
<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
<a target="_blank" href="<?php echo HTTP_PATH; ?>terms_and_conditions.php">terms and conditions</a>.
示例2:
?>
</td>
</tr>
<tr style="background-color:#414141; border-bottom:solid 1px #fff;">
<td width="35%" height="30" style="color:#fff; padding-left:10px;">City</td>
<td style="padding-left:2px;">:</td>
<td style="padding-left:10px;"><?php
echo $bookingclient->city();
?>
</td>
</tr>
<tr style="background-color:#e3e3e3; border-bottom:solid 1px #fff;">
<td height="30" style="color:#000000; padding-left:10px;">Country</td>
<td style="padding-left:2px;">:</td>
<td style="padding-left:10px;"><?php
echo $country->countryName();
?>
</td>
</tr>
<tr style="background-color:#414141; border-bottom:solid 1px #fff;">
<td width="35%" height="30" style="color:#fff; padding-left:10px;">Property</td>
<td style="padding-left:2px;">:</td>
<td style="padding-left:10px;"><a href="http://roomista.com/<?php
echo $hotel_url;
?>
.html" target="_blank" style="text-decoration: underline; color:#808080 "><?php
echo $hotel_name;
?>
</a></td>
</tr>
<tr style="background-color:#e3e3e3; border-bottom:solid 1px #fff;">