本文整理汇总了PHP中country::select方法的典型用法代码示例。如果您正苦于以下问题:PHP country::select方法的具体用法?PHP country::select怎么用?PHP country::select使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类country
的用法示例。
在下文中一共展示了country::select方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: country
});
}
</script>
<div id="results"></div>
<div id="customer">
<fieldset>
<p><b>The customer mail is new, so you may proceed to create the new customer also:</b></p>
<label for="name">Full Name:</label><br><br>
<input type="text" id="name" name="name" /><br><br>
<label for="city">City:</label><br><br>
<input type="text" id="city" name="city" /><br><br>
<label for="country">Country:</label><br><br>
<select name="country">
<?php
$country = new country();
$country->select();
?>
</select><br><br>
<label for="phone">Phone:</label><br><br>
<input type="text" id="phone" name="phone" /><br><br>
</fieldset>
</div>
<br><br>
<div id="button"></div>
</form>
</fieldset>
</div>
<?php
//theme footer
include_once 'themes/' . THEME . '/footer.php';
示例2: category
<tr id="disp">
<th >* Sales Person Name :</th>
<td><input type="text" name="sales_name" id="sales_name"></td>
</table>
</div>
<div class="company_header">
<h4>Company Details</h4>
</div>
<div class="company_body">
<?php
include_once '../config/category.php';
include_once '../config/country.php';
$ob = new category();
$res = $ob->select();
$ob1 = new country();
$res1 = $ob1->select();
?>
<table width="647" border="0">
<tr>
<th width="342" height="37">* Company Name :</th>
<td width="240"><input type="text" name="company_name" id="company_name"></td>
</tr>
<tr>
<th height="79">* Industry:</th>
<td><select name="industry[]" size="7" multiple id="industry">
<?php
while ($r = mysqli_fetch_array($res)) {
?>
<option value="<?php
echo $r['Id'];
?>