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


PHP Driver::getName方法代码示例

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


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

示例1: Driver

											<a href="#" title="Next Page">Next »</a><a href="#" title="Last Page">Last »</a>
										</div> <!-- End .pagination -->
										<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 -->

                   
开发者ID:rusty1909,项目名称:Navigator,代码行数:29,代码来源:index.php

示例2: Vehicle

?>
		</div>
		<div id="content" style="float:right;width:85%;">
			<table>
				<tr><td style="width:200px;">Vehicle Type</td>
					<td style="width:200px;">Model</td>
					<td style="width:200px;">Vehicle Number</td>
					<td style="width:200px;">Current Job</td>
					<td style="width:200px;">Current Driver</td>
					<td style="width:200px;">Action</td>
				</tr>
				<?php 
for ($i = 0; $i < sizeof($mVehicleList); $i++) {
    $mVehicle = new Vehicle($mVehicleList[$i]);
    $mJob = new Job($mVehicle->getCurrentJob());
    $mDriver = new Driver($mJob->getDriver());
    echo "<tr>";
    echo "<td>" . $mVehicle->getType() . "</td>";
    echo "<td>" . $mVehicle->getModel() . "</td>";
    echo "<td>" . $mVehicle->getVehicleNumber() . "</td>";
    echo "<td>" . $mJob->getCode() . "</td>";
    echo "<td>" . $mDriver->getName() . "</td>";
    echo "<td><input type='submit' value='Assign'><input type='submit' value='Track'></td>";
    echo "</tr>";
}
?>
			</table>
		<div>
	</div>
	
</body> 
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:index2.php

示例3: Vehicle

					<td><select name="vehicle" id="vehicle"><option> --- Select Vehicle --- </option>
					<?php 
for ($i = 0; $i < sizeof($mVehicleList); $i++) {
    $mVehicle = new Vehicle($mVehicleList[$i]);
    if ($mVehicle->getCurrentJob() == "") {
        echo "<option value=" . $mVehicleList[$i] . ">" . $mVehicle->getVehicleNumber() . "</option>";
    }
}
?>
					</select></td></tr>
				<tr><td>Driver</td>
					<td><select name="driver" id="driver"><option> --- Select Driver --- </option>
					<?php 
for ($i = 0; $i < sizeof($mDriverList); $i++) {
    $mDriver = new Driver($mDriverList[$i]);
    if ($mDriver->getCurrentJob() == "") {
        echo "<option value=" . $mDriverList[$i] . ">" . $mDriver->getName() . "</option>";
    }
}
?>
					</select></td></tr>
				<tr><td>Destination</td><td><textarea name="destination" id="destination" ></textarea></td></tr>
				<tr><td>Start Date</td><td><input type="text" name="start_date" id="start_date"></td></tr>
				<tr><td>Description</td><td><textarea name="description" id="description" ></textarea></td></tr>
				<tr><td><input type="submit" value="Add Order"></td></tr>
			</table>
			</form>
		<div>
	</div>
	
</body> 
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:edit.php

示例4: Expense

						
							<table id="noti_table">
							<thead>
							<tr></tr>
							</thead>
							<tbody style="border-bottom:0px" id="bill_body">
							<?php 
for ($i = 0; $i < sizeof($mPendingExpenseList); $i++) {
    $mExpense = new Expense($mPendingExpenseList[$i]);
    $vehicleId = $mExpense->getVehicle();
    $mVehicle = new Vehicle($vehicleId);
    $driverId = $mExpense->getDriver();
    $mDriver = new Driver($driverId);
    $reason = $mExpense->getReason();
    $amount = $mExpense->getAmount();
    echo "<tr onMouseOver='this.bgColor='#EEEEEE''>\n\t\t\t\t\t\t\t\t\t\t\t<td style='width:30%'><b><a href='../vehicle/detail.php?id=" . $mVehicle->getId() . "'>" . $mVehicle->getVehicleNumber() . "</a></b></td>\n\t\t\t\t\t\t\t\t\t\t\t<td style='width:30%'><b><a href='../driver/detail.php?id=" . $mDriver->getId() . "'>" . $mDriver->getName() . "</a></b></td>\n\t\t\t\t\t\t\t\t\t\t\t<td>" . $reason . "</td>\n\t\t\t\t\t\t\t\t\t\t\t<td><b>Rs." . $amount . "</b></td>\n\t\t\t\t\t\t\t\t\t\t\t<td><a class='js-open-modal' href='#' data-modal-id='bill_popup' onClick='fetchBillDetails(" . $mExpense->getId() . ")'><img src='../../res/more_detail.png' width=20 height=20 style='cursor:hand;'/></a></td>\n\t\t\t\t\t\t\t\t\t\t</tr>";
}
?>
							</tbody>
							</table>
						</div>      
					
					</div> <!-- End .content-box-content -->			
				</div> <!-- End .content-box -->
				<!----------------- REMINDER TAB -------------------------------------------------------------------------------------
				<div class="content-box column-right" style="width:49%;height:50%">				
					<div class="content-box-header">					
						<h3 style="cursor: s-resize;">Reminders</h3>
						<a href="#" style="color:#57a000; float:right;padding:15px 10px 0 0 !important"><b>Add Reminder</b></a>		
					</div> 
					
开发者ID:rusty1909,项目名称:Navigator,代码行数:29,代码来源:index.php

示例5: sizeof

	<div id="header">
	<?php 
include '../header.php';
?>
	</div>
	<div id="container">
		<div id="sidebar" style="float:left;width:15%;">
		<?php 
include 'sidebar.php';
?>
		</div>
		<div id="content" style="float:right;width:85%;">
			<?php 
echo "Code : " . $mJob->getCode() . "<br>";
echo "Vehicle : " . $mVehicle->getVehicleNumber() . "<br>";
echo "Driver : " . $mDriver->getName() . "<br>";
echo "Location : " . $locationId . "<br>";
echo "No of orders : " . sizeof($orderList) . "<br>";
//echo $mJob->getStatus();
//if($mJob->getStatus() == '0') {
?>
			<input type="submit" value="Complete" onClick="setCompleted()">
			<?php 
//}
?>
			<hr>
			<table>
				<tr><td style="width:200px;">Order Code</td>
					<td style="width:200px;">Title</td>
					<td style="width:200px;">Client</td>
					<td style="width:200px;">Destination</td>
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:detail.php

示例6: getResource

 function getResource()
 {
     $resArray = array();
     $resArray['id'] = $this->id;
     $mUser = new User();
     $addedById = $this->addedBy;
     $mAddedBy = new User($addedById);
     switch ($this->type) {
         case "vehicle_addition":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $resArray['image'] = "vehicle_icon";
             if ($this->action == '1') {
                 $resArray['string'] = "<a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a> was added by ";
             } else {
                 $resArray['string'] = "<a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a> was removed by ";
             }
             break;
         case "driver_addition":
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['image'] = "driver_icon";
             if ($this->action == '1') {
                 $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a> was added by ";
             } else {
                 $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a> was removed by ";
             }
             break;
         case "driver_allotment":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['image'] = "allotment_icon";
             if ($this->action == '1') {
                 $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a> was assigned to <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a> by ";
             } else {
                 $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a> was removed from <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a> by ";
             }
             break;
         case "staff_addition":
             $employeeId = $this->employee;
             $mEmployee = new User($employeeId);
             $resArray['image'] = "staff_icon";
             if ($this->action == '1') {
                 $resArray['string'] = "<a href='#'><b>" . $mEmployee->getFullName() . "</b></a> was added by ";
             } else {
                 $resArray['string'] = "<a href='#'><b>" . $mEmployee->getFullName() . "</b></a> was removed by ";
             }
             break;
         case "driver_update":
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['image'] = "driver_icon";
             $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a>'s info was updated by ";
             break;
         default:
             $resArray['string'] = "Qwerty";
             $resArray['image'] = "alert_ok";
             break;
     }
     if ($mUser == $mAddedBy) {
         $resAddedBy = "<a href='/navigator/ui/setting'><b>you</b></a>";
     } else {
         $resAddedBy = "<a href='#'><b>" . $mAddedBy->getFullName() . "</b></a>";
     }
     $resArray['string'] .= $resAddedBy;
     $date = $this->dateAdded;
     $resArray['time'] = date("d-m-Y H:i:s", strtotime($date));
     $resArray['type'] = $this->type;
     return $resArray;
 }
开发者ID:rusty1909,项目名称:Navigator,代码行数:72,代码来源:Timeline.php

示例7: Driver

					
				</div>

				<!-- End .content-box-content -->
              
        	<div id="popup" class="modal-box">  
	  <header>
		<h3>Select Driver</h3>
	  </header>
	  <div class="modal-body" id="item-list">
	  
		<table><tbody>
			<?php 
for ($i = 0; $i < sizeof($mDriverList); $i++) {
    $mDriver = new Driver($mDriverList[$i]);
    echo "<tr><td><img height='15' width='15' src='../../../images/driver_icon.png'>&nbsp;&nbsp;<b><a href='#' style='text-transform:uppercase;vertical-align:2px;' class='js-modal-close' onClick='setDriver(" . $mVehicle->getId() . "," . $mDriver->getId() . ")'>" . $mDriver->getName() . "</a><span style='float:right;'><img height='20' width='20' src='../../../images/phone_icon.png'><span style='vertical-align:5px;'>+91-" . $mDriver->getPhone() . "</span></span></b></td></tr>";
}
?>
		</tbody></table>
		
	  </div>
	  <footer>
		<a href="#" class="js-modal-close" style="color:#D3402B"><b>CANCEL</b></a>
	  </footer>
	</div>

<?php 
require_once "../../master/footerhome.php";
?>
      
开发者ID:rusty1909,项目名称:Navigator,代码行数:28,代码来源:detail.php

示例8: Driver

									<b> Current Driver : </b><br><br>
                                    <?php 
//echo $mVehicle->getCurrentDriver();
if ($mVehicle->getCurrentDriver() == 0) {
    ?>
                                            <div id="driver_view">
                                            No Driver Set!!!
                                            </div><br>
                                            <a href="#" style="font-size:11px">Assign driver</a>
                                    <?php 
} else {
    $mDriver = new Driver($mVehicle->getCurrentDriver());
    ?>
                                            <div id="driver_view">
                                             <?php 
    echo $mDriver->getName();
    ?>
                                            </div><br>
                                            <a href="action.php?action=removedriver&id=<?php 
    echo $mVehicle->getId();
    ?>
" style="font-size:11px">Remove Driver</a>
                                    <?php 
}
?>

								</div>        
								
							</div>
						</div>
						
开发者ID:rustydev19,项目名称:Navigator,代码行数:30,代码来源:detail.php

示例9: Job

		<?php 
include 'sidebar.php';
?>
		</div>
		<div id="content" style="float:right;width:85%;">
			<table>
				<tr><td style="width:200px;">Job</td>
					<td style="width:200px;">Title</td>
					<td style="width:200px;">Vehicle</td>
					<td style="width:200px;">Driver</td>
					<td style="width:200px;">Action</td>
				</tr>
				<?php 
for ($i = 0; $i < sizeof($mJobList); $i++) {
    $mJob = new Job($mJobList[$i]);
    $mVehicle = new Vehicle($mJob->getVehicle());
    $mDriver = new Driver($mJob->getDriver());
    echo "<tr>";
    echo "<td><a href='detail.php?id=" . $mJob->getId() . "'>" . $mJob->getCode() . "</a></td>";
    echo "<td>" . $mJob->getTitle() . "</td>";
    echo "<td><a href='../vehicle/detail.php?id=" . $mVehicle->getId() . "'>" . $mVehicle->getVehicleNumber() . "</a></td>";
    echo "<td><a href='../driver/detail.php?id=" . $mDriver->getId() . "'>" . $mDriver->getName() . "</a></td>";
    echo "<td><input type='submit' value='Assign'><input type='submit' value='Track'></td>";
    echo "</tr>";
}
?>
			</table>
		<div>
	</div>
	
</body> 
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:index.php

示例10: Expense

     break;
 case "billdetail":
     if (!isset($_GET['id'])) {
         break;
     }
     $id = $_GET['id'];
     $mExpense = new Expense($id);
     $vehicleId = $mExpense->getVehicle();
     $mVehicle = new Vehicle($vehicleId);
     $vehicleDetail['id'] = $mVehicle->getId();
     $vehicleDetail['number'] = $mVehicle->getVehicleNumber();
     $vehicleDetail['type'] = $mVehicle->getType();
     $driverId = $mExpense->getDriver();
     $mDriver = new Driver($driverId);
     $driverDetail['id'] = $mDriver->getId();
     $driverDetail['name'] = $mDriver->getName();
     $detail['id'] = $mExpense->getId();
     $detail['vehicle'] = $vehicleDetail;
     $detail['driver'] = $driverDetail;
     $detail['reason'] = $mExpense->getReason();
     $detail['amount'] = $mExpense->getAmount();
     $detail['filename'] = $mExpense->getFilename();
     $detail['date_added'] = $mExpense->getDateAdded();
     $detail['location'] = $mExpense->getLocation();
     echo json_encode($detail);
     break;
 case "billapproval":
     if (!(isset($_GET['id']) && isset($_GET['approval']))) {
         break;
     }
     $id = $_GET['id'];
开发者ID:rusty1909,项目名称:Navigator,代码行数:31,代码来源:UserActionHelper.php

示例11: getResource

 function getResource()
 {
     $resArray = array();
     $resArray['id'] = $this->id;
     switch ($this->type) {
         case "search":
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $item = $this->searchItem;
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a> searched for <b>" . $item . "</b> from <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a>";
             break;
         case "location":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $city = $this->city;
             $resArray['string'] = "<a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a> reached <b>" . $city . "</b>";
             break;
         case "expenses":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $receiptId = $this->receipt;
             $mExpense = new Expense($receiptId);
             $expenseAmount = $mExpense->getAmount();
             $expenseReason = $mExpense->getReason();
             $resArray['string'] = "<a href=\"/navigator/ui/driver/detail.php?id=" . $driverId . "\"><b>" . $mDriver->getName() . "</b></a> uploaded bill of <b>Rs." . $expenseAmount . "</b> for <b>" . $expenseReason . "</b> from <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a>";
             break;
         case "power_battery_low":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['string'] = "<b>Low Battery</b> reported for <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a>";
             break;
         case "power_shutdown":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['string'] = "<b>Device shutdown</b> reported for <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a>";
             break;
         case "power_battery_unplugged":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['string'] = "<b>Power Unplugged</b> reported for <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a>";
             break;
         case "power_battery_plugged":
             $vehicleId = $this->vehicle;
             $mVehicle = new Vehicle($vehicleId);
             $driverId = $this->driver;
             $mDriver = new Driver($driverId);
             $resArray['string'] = "Power is back on <a href=\"/navigator/ui/vehicle/detail.php?id=" . $vehicleId . "\"><b>" . $mVehicle->getVehicleNumber() . "</b></a>";
             break;
         default:
             $resArray['string'] = "";
             break;
     }
     //echo $resArray['string']."<br>";
     $date = $this->dateAdded;
     $resArray['time'] = date("d-m-Y H:i:s", strtotime($date));
     $resArray['lat'] = $this->latitude;
     $resArray['long'] = $this->longitude;
     $resArray['priority'] = $this->priority;
     $resArray['type'] = $this->type;
     return $resArray;
 }
开发者ID:rusty1909,项目名称:Navigator,代码行数:71,代码来源:Notification.php


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