本文整理匯總了PHP中Driver::getId方法的典型用法代碼示例。如果您正苦於以下問題:PHP Driver::getId方法的具體用法?PHP Driver::getId怎麽用?PHP Driver::getId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Driver
的用法示例。
在下文中一共展示了Driver::getId方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Driver
</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
}
?>
</div> <!-- End #prev -->
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box -->
示例2: 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>
示例3: 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'> <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> \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 -->
示例4: Vehicle
<?php
$mVehicleList = $mDeployedVehicleList;
for ($i = 0; $i < sizeof($mVehicleList); $i++) {
$mVehicle = new Vehicle($mVehicleList[$i]);
$mJob = new Job($mVehicle->getCurrentJob());
$mDriver = new Driver($mVehicle->getDriver());
$vehType = $mVehicle->getType();
if (empty($vehType)) {
$vehType = 'Truck';
}
echo "<tr>";
echo "<td><img id='type' height='20' width='20' src='../../../images/vehicle_types/" . $vehType . ".png' title=" . $vehType . " alt=" . $vehType . " style='vertical-align:-5px;'></td>";
echo "<td>" . $mVehicle->getModel() . "</td>";
echo "<td><b><a style='text-transform:uppercase;' href='detail.php?id=" . $mVehicle->getId() . "'>" . $mVehicle->getVehicleNumber() . "</a></b></td>";
if ($mVehicle->getDriver() != "0") {
echo "<td><img height='15' width='15' src='../../../images/driver_icon.png'> <b><a href='../driver/detail.php?id=" . $mDriver->getId() . "' style='text-transform:uppercase;vertical-align:2px;'>" . $mDriver->getName() . "</a></b></td>";
} else {
echo "<td></td>";
}
echo "</tr>";
}
?>
</tbody>
</table>
<?php
}
}
?>
</div> <!-- End #deployed -->
示例5: 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'> <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";
?>
示例6:
</div> <!-- End .content-box-content -->
</div>
</div>
<!-- //////////////// POP UP Box for adding employee-->
<div id="edit-popup" class="modal-box" style="width:50%;">
<header>
<h3><?php
echo $mDriver->getName();
?>
</h3>
</header>
<div class="modal-body" id="item-list">
<form action="../../../utility/helper/Driver/DriverActionHelper.php?action=update" method="POST">
<input hidden type="text" value="<?php
echo $mDriver->getId();
?>
" name="id">
<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
<p class="column-left">
<label>Name</label>
<input class="text-input medium-input" id="name" name="name" disabled value="<?php
echo $mDriver->getName();
?>
" type="text" required placeholder='Rudra XYZ'>
</p>
<p class="column-right">
<label>Phone</label>
<b>+91- </b><input class="text-input medium-input" name="phone" value="<?php
示例7: 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>
示例8: 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;
}