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


PHP Driver::getAddress方法代码示例

本文整理汇总了PHP中Driver::getAddress方法的典型用法代码示例。如果您正苦于以下问题:PHP Driver::getAddress方法的具体用法?PHP Driver::getAddress怎么用?PHP Driver::getAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Driver的用法示例。


在下文中一共展示了Driver::getAddress方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Driver

										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
								<?php 
    $mDriverList = $mPreviousDriverList;
    for ($i = 0; $i < sizeof($mDriverList); $i++) {
        $mDriver = new Driver($mDriverList[$i]);
        $mJob = new Job($mDriver->getCurrentJob());
        $mVehicle = new Vehicle($mDriver->getCurrentVehicle());
        echo "<tr>";
        echo "<td><img height='15' width='15' src='../../../images/driver_icon.png'>&nbsp;&nbsp;<b><a href='detail.php?id=" . $mDriver->getId() . "' style='text-transform:uppercase;' >" . $mDriver->getName() . "</a></b></td>";
        echo "<td>" . $mDriver->getPhone() . "</td>";
        echo "<td>" . $mDriver->getAddress() . "</td>";
        echo "\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t<!-- Icons -->\n\t\t\t\t\t\t\t\t\t\t <a href='#' title='Edit'><img src='../../../images/pencil.png' alt='Edit'></a>\n\t\t\t\t\t\t\t\t\t\t <a href='#' title='Delete' onClick='onDelete(" . $mDriver->getId() . ")'><img src='../../../images/cross.png' alt='Delete'></a>&nbsp;&nbsp;\n\t\t\t\t\t\t\t\t\t\t <a href='#' title='Edit Meta'><img src='../../../images/hammer_screwdriver.png' alt='Edit Meta'></a>\n\t\t\t\t\t\t\t\t\t</td>";
        echo "</tr>";
    }
    ?>
							</tbody>
							
						</table>
						<?php 
}
?>
					</div> <!-- End #prev -->

                   
				</div> <!-- End .content-box-content -->
				
开发者ID:rusty1909,项目名称:Navigator,代码行数:30,代码来源:index.php

示例2:

				<div  class="content-box-content-detail" style="width:58%;height:88%;float:left;overflow-y:auto">

					
					<div id="personal_info" style="margin:15px 5px 20px 10px">
						<img id="type" height="35" width="35" src="../../res/driver_icon.png" > <span style="vertical-align:10px;"><b style="font-size:25px;"><?php 
echo $mDriver->getName();
?>
 </b>	</span>	
						<br><br><input class="button" type='button' value='Edit'> &nbsp;&nbsp;&nbsp; 
						<br><br><br>
					
						<div id="address_info">
							<img id="address_icon" height="20" width="20" src="../../res/address.png" title="Address" alt="Address">&nbsp;
							<b><span id="address_view" style='vertical-align:2px;'>
								<?php 
echo $mDriver->getAddress();
?>
								</span>
							
						</div>
						<br><br>
						<div id="contact_info">
							<img id="contact_icon" height="20" width="20" src="../../res/phone_icon.png" title="Phone" alt="Phone">&nbsp;
							<b><span id="address_view" style='vertical-align:2px;'>
								<?php 
echo $mDriver->getPhone();
?>
								</span>
							
						</div>
						<br><br>
开发者ID:rusty1909,项目名称:Navigator,代码行数:31,代码来源:detail2.php


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