本文整理汇总了PHP中Vehicle::getModel方法的典型用法代码示例。如果您正苦于以下问题:PHP Vehicle::getModel方法的具体用法?PHP Vehicle::getModel怎么用?PHP Vehicle::getModel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vehicle
的用法示例。
在下文中一共展示了Vehicle::getModel方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
} else {
//echo $mVehicle->getAddress();
?>
<div id="googleMap" style="width:70%;height:100%;float:left;"></div>
<?php
}
}
?>
<div class="content-box-content-detail" style="width:30%;height:100%;float:right;overflow-y:auto">
<div id="vehicle_details" style="margin:15px 5px 20px 10px">
<img id="type" height="45" width="45" src="../../../images/vehicle_types/<?php
echo $mVehicle->getType();
?>
.png" title="<?php
echo $mVehicle->getType() . " : " . $mVehicle->getModel();
?>
" alt="<?php
echo $mVehicle->getType();
?>
"> <span style="vertical-align:12px;"><b style="font-size:30px;"><?php
echo $mVehicle->getVehicleNumber();
?>
</b> </span>
<br><br><input class="button" type='button' value='View full details'>
<br><br><br>
<div id="location_info">
<table>
<tr><td><img id="location_icon" height="15" width="15" src="../../../images/location_icon.png" title="Location" alt="Location"> </td>
<td><b><span id="address_view" style='vertical-align:2px;'>
Locating...
示例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>
示例3: Vehicle
if ($vehicleId == null) {
$setup['setup']['result'] = "fail_vehicle";
} else {
$mVehicle = new Vehicle($vehicleId);
if ($mVehicle->getType() != $type) {
$setup['setup']['result'] = "fail_type";
//echo "fail_type";
} else {
if ($mVehicle->isDeployed() == 1) {
$setup['setup']['result'] = "already";
//echo "already";
} else {
if ($mVehicle->deploy()) {
$setup['setup']['result'] = "success";
$companyId = $mVehicle->getCompany();
$setup['setup']['model'] = $mVehicle->getModel();
$setup['setup']['type'] = $mVehicle->getType();
$setup['setup']['number'] = $mVehicle->getVehicleNumber();
$mCompany = new Company($companyId);
$setup['setup']['company_name'] = $mCompany->getName();
$setup['setup']['owner'] = $mCompany->getAdmin();
$setup['setup']['contact'] = $mCompany->getPhone();
//echo "success";
} else {
$setup['setup']['result'] = "fail";
//echo "fail";
}
}
}
}
echo json_encode($setup);