本文整理汇总了PHP中AdminController::getLocationData方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::getLocationData方法的具体用法?PHP AdminController::getLocationData怎么用?PHP AdminController::getLocationData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::getLocationData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
<input placeholder="Enter contact detail" name="txtContact" id="txtContact" class="form-control" value="<?php
echo $data['contact'];
?>
" required>
<input type="hidden" value="<?php
echo $hdnContact;
?>
" id = "hdnContact" name="hdnContact" />
<span class='error-contact'></span>
</div>
<div class="form-group">
<label>Country</label>
<select class="form-control ddlCountry" name="ddlCountry" id="ddlCountry" required>
<option value="">-select-</option>
<?php
$dataCountries = $adminController->getLocationData("countries");
if (!empty($dataCountries)) {
$cnt = 1;
$country_id = '';
while ($row = mysql_fetch_array($dataCountries)) {
?>
<option value="<?php
echo $row['id'];
?>
" <?php
if ($data['country_id'] == $row['id']) {
$country_id = $data['country_id'];
echo 'selected';
}
?>
>
示例2: AdminController
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Sl No.</th>
<th>Name</th>
<th>City</th>
<th>State</th>
<th>Country</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$adminController = new AdminController();
$data = $adminController->getLocationData("districts");
if (!empty($data)) {
$cnt = 1;
while ($row = mysql_fetch_array($data)) {
?>
<tr>
<td><?php
echo $cnt;
?>
</td>
<td><?php
echo $row['name'];
?>
</td>
<td><?php
echo $row['city_name'];
示例3: AdminController
?>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Sl No.</th>
<th>Name</th>
<th>State</th>
<th>Country</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$adminController = new AdminController();
$data = $adminController->getLocationData("cities");
if (!empty($data)) {
$cnt = 1;
while ($row = mysql_fetch_array($data)) {
?>
<tr>
<td><?php
echo $cnt;
?>
</td>
<td><?php
echo $row['name'];
?>
</td>
<td><?php
echo $row['states'];
示例4: AdminController
echo $msg ? '<div class="alert alert-' . $class . '">' . $msg . '</div>' : '';
?>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Sl No.</th>
<th>Name</th>
<th>Country</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$adminController = new AdminController();
$data = $adminController->getLocationData("states");
if (!empty($data)) {
$cnt = 1;
while ($row = mysql_fetch_array($data)) {
?>
<tr>
<td><?php
echo $cnt;
?>
</td>
<td><?php
echo $row['name'];
?>
</td>
<td><?php
echo $row['country'];