本文整理汇总了PHP中Checkout::getLocation方法的典型用法代码示例。如果您正苦于以下问题:PHP Checkout::getLocation方法的具体用法?PHP Checkout::getLocation怎么用?PHP Checkout::getLocation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Checkout
的用法示例。
在下文中一共展示了Checkout::getLocation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPersonName
<div class="col-sm-8 col-sm-offset-2">
<?php
echo "<a href='checkouts.php'><span class='glyphicon glyphicon-chevron-left'></span> Back to Checkouts</a>";
?>
<br /><br />
<div class="panel panel-default">
<div class="panel-heading text-center">Checkout Details</div>
<div class="panel-body text-center">
<p>
<?php
printf("<strong>Checkout ID:</strong> %s<br /><br />", $checkout->getID());
printf("<strong>Description:</strong> %s<br /><br />", $checkout->getDescription());
if (!empty($checkout->getDRNumber())) {
echo "<strong>DR:</strong> " . $checkout->getDRNumber() . "<br /><br />";
}
if (!empty($checkout->getLocation())) {
echo "<strong>Location:</strong> " . $checkout->getLocation() . "<br /><br />";
}
$personName = getPersonName($checkout->getPerson());
printf("<strong>Person:</strong> %s<br /><br />", $personName);
$co_start = new DateTime($checkout->getStart());
$co_end = new DateTime($checkout->getEnd());
printf("<strong>Start Time:</strong> %s<br /><br />", $co_start->format('m-d-y g:iA'));
printf("<strong>End Time:</strong> %s<br /><br />", $co_end->format('m-d-y g:iA'));
if ($checkout->getReturned()) {
$retDate = new DateTime($checkout->getReturned());
echo "<strong>Returned:</strong> " . $retDate->format('m-d-y g:iA') . "<br /><br />";
}
if ($loggedInUser->checkPermission(array(2)) || $loggedInUser->user_id == $checkout->getPerson()) {
echo "<form id='retForm' role='form' action='" . htmlspecialchars($_SERVER["PHP_SELF"]) . "' method='POST'>";
echo "<input type='hidden' name='co_id' value='" . $co_id . "' />";
示例2:
<input type="text" class="form-control" name="title" value="<?php
echo $co->getTitle();
?>
">
</div>
<div class="form-group"> <!-- DESC -->
<label class="control-label" for="description">Description:</label>
<textarea class="form-control" name="description" rows="3"><?php
echo $co->getDescription();
?>
</textarea>
</div>
<div class="form-group"> <!-- LOCATION -->
<label class="control-label" for="location">Location:</label>
<input type="text" class="form-control" name="location" value="<?php
echo $co->getLocation();
?>
">
</div>
<div class="form-group"> <!-- DR NUMBER -->
<label class="control-label" for="dr_number">DR Number:</label>
<input type="text" class="form-control" name="dr_number" value="<?php
echo $co->getDRNumber();
?>
">
</div>
<div class="alert alert-warning">
Changing the date of a checkout may change what gear is available for checkout.
</div>
<!-- new dateTime input -->