当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminController::getLocationData方法代码示例

本文整理汇总了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';
        }
        ?>
 >
开发者ID:aniketbasu14,项目名称:snoozeover,代码行数:31,代码来源:add_edit_users.php

示例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'];
开发者ID:aniketbasu14,项目名称:snoozeover,代码行数:31,代码来源:districts.php

示例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'];
开发者ID:aniketbasu14,项目名称:snoozeover,代码行数:31,代码来源:cities.php

示例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'];
开发者ID:aniketbasu14,项目名称:snoozeover,代码行数:31,代码来源:states.php


注:本文中的AdminController::getLocationData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。