本文整理匯總了PHP中Driver::getCurrentJob方法的典型用法代碼示例。如果您正苦於以下問題:PHP Driver::getCurrentJob方法的具體用法?PHP Driver::getCurrentJob怎麽用?PHP Driver::getCurrentJob使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Driver
的用法示例。
在下文中一共展示了Driver::getCurrentJob方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Driver
<a href="#" class="number" title="2">2</a>
<a href="#" class="number current" title="3">3</a>
<a href="#" class="number" title="4">4</a>
<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>" . $mDriver->getName() . "</td>";
echo "<td>" . $mDriver->getPhone() . "</td>";
echo "<td><a href='../vehicle/detail.php?id=" . $mVehicle->getId() . "'>" . $mVehicle->getVehicleNumber() . "</a></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='../../res/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='../../res/cross.png' alt='Delete'></a> \n\t\t\t\t\t\t\t\t\t\t <a href='#' title='Edit Meta'><img src='../../res/hammer_screwdriver.png' alt='Edit Meta'></a>\n\t\t\t\t\t\t\t\t\t</td>";
echo "</tr>";
}
?>
</tbody>
</table>
<?php
}
?>
示例2: 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>